android - Proper Use Of Fragments -


i want know if using fragments here...

my application contains 6 activities. wanted add navigation drawer in process of converting each of these activities fragments. when select option drawer, appropriate fragment appear. fragments "stand alone" meaning each fragment self contained , not interacting other fragments, example calendar displays date.

enter image description here

this same on every device, whether tablet or phone. every tutorial have seen fragments has multiple fragments interacting 1 another. mine not. question is, design perspective, ok use fragments in manner? or should use activities instead? thank you.

if drawer, proper design use fragments. should using fragments whenever it's possible, makes code easier maintain , control. communication between fragments easier communicating between activities.

in addition, activities expensive operate. activities created not implicitly destroy previous activities.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -