+ 1

Activity && fragment

Can i use activity instead of fragment in tablayout or bottombar ? how ?

20th Jan 2018, 9:49 AM
SunizPro
4 odpowiedzi
+ 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.
1st Feb 2018, 9:22 PM
Saminjay Goel
Saminjay Goel - avatar
+ 2
yeah, you should use fragments coz its easier and doesn't eat too much of your ram.
2nd Feb 2018, 5:37 AM
Saminjay Goel
Saminjay Goel - avatar
+ 1
Serious :)? So i prefer to use fragment
2nd Feb 2018, 5:04 AM
SunizPro
+ 1
but those are a bit hard
2nd Feb 2018, 5:39 AM
SunizPro