android - Fragment management with drawer layout -


i have app using slider drawer layout used in applications such youtube. have setup such there 1 main activity in main view cycles through multiple fragments attach onto activity. there 3 main fragments in navigation drawer user can switch to. within each of 3 main fragments more fragments user can go clicking button in main fragment. wondering best way manage these fragments while preserving backstack , minimizing need reload of them if user revists fragment.

ex flow:

main             subfragment 1. contacts   -> contact details when contact clicked 2. clientlist -> client details when client selected 3. infopage   -> info each developer 

after reading question, suggest in drawerlayout, can create main list containing selection of contacts, clientlist, , infopage. selection of any, can display related info in lets detailfragment. example, selection contacts drawerlayout, contacts displayed in detailfragment. now, clicking of contact detailfragment open / replace current detailfragment , show contact details in fragment.

in recent project, followed recommended way. putting demo link here : nestedfragment

i hope can out.

update

kindly add actionbarsherlock library reference project demo.

thanks.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -