java - Drawer, Fragment and Activities -
i have questions designing applications navigationdrawer
.
i create application navigationdrawer
composed of 1 activity
, fragment
s. example have 4 fragment
s, , every fragment
has actions.
which correct way implement that?
- adding actions
activity
? - create other classes , call them
mainactivity
context/view? - 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
Post a Comment