java - Drawer, Fragment and Activities -


i have questions designing applications navigationdrawer.

i create application navigationdrawer composed of 1 activity , fragments. example have 4 fragments, , every fragment has actions.

which correct way implement that?

  1. adding actions activity?
  2. create other classes , call them mainactivity context/view?
  3. other?

any information these questions appreciated. need example or resource explaining correct way implement this.

anyone can help?

check google io 2014 source code idea of nav drawer implementation

https://github.com/google/iosched

all navigation , fragment transactions should done via main activity or activity holding fragments. kind of fragment - fragment communication should avoided. developer docs shows example of how handle fragment communication via activity using interfaces

http://developer.android.com/training/basics/fragments/communicating.html


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -