+ 1
Activity && fragment
Can i use activity instead of fragment in tablayout or bottombar ? how ?
4 Answers
+ 4
Idk why you want to use activity instead of fragments because it makes the app heavier.
There is actually no way you could use activity in tablayout and bottombar but you can do one thing, using GestureDetector and OnSwipeTouchListener you can make your app immitate tablayout and bottombar's behaviour.
The code is a bit big and you can easily find it on google but if you want I can give you that code.
+ 2
yeah, you should use fragments coz its easier and doesn't eat too much of your ram.
+ 1
Serious :)?
So i prefer to use fragment
+ 1
but those are a bit hard