Android Fragments - why are they so useful?

I've heard a lot of advice about using fragments in actions, but why? I know snippets can be used when composing screen layouts for small and large device screens. Is there something more useful for snippets? Can they automatically save and restore state when rotating? Or something else?

+3


source to share


1 answer


You should read a little more about Fragments, here: http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html



You can also look at the available methods to see what you can do, but I personally don't use fragments in simple apps, tablet events and fragments are like "divs" from html, they just block / containers

+2


source







All Articles