Creating library project and integrating into existing project in android

242 Views Asked by At

I have an application that has got two basic screens, a home page and a sliding drawer menu fragment to the left of home page like the facebook sliding drawer. Now I am planning to create another page to the right of the home page that appears by sliding to the other side. i would like to create this as a library project and just import it to the existing project. how can I do this. I need to display the the new menu drawer on sliding after adding the library project. How can I achieve this ? That is, I will be having a fragment in the library project that populates data by all necessary api calls from server, and I need to inflate the fragment by sliding in the main project.

2

There are 2 best solutions below

2
On

Saying all this in a paragraph is very simple.

First of all android does not provide Left and Right drawers. There is a custom project on github containing both left and right navigation drawers.

Now, you need to put some effort first, putting some code, some tutorials which you followed, and do you have a library project containing the right drawer ?

0
On

I find that vogella's site has some pretty good tutorials. For instance, this tutorial on Android library projects.

I hope this is what you're looking for ;)