This is not a duplicate. How to use fragments, now that TabActivity is out of date?
After some research, the conclussion is that TabActivity is deprecated, because now we have to use fragments. And the reason for this, as far as I read, is that fragments work better with the action bar, and with the support of the compatibility library it can also be implemented starting from Android 2.1
But I still do not understand why it is out of date. Why not just make the action bar work with actions as well? Why are fragments preferable?
I also read that fragments have better performance ... is that the reason?
Actions, at least, are pure separated objects, which is something positive. Now I don’t have enough understanding of fragments to understand why they are better.
Thanks in advance...
source
share