Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom tabbar for android app with animation [closed]

I have to make a custom tabbar for my android app like image (tabbar for the same app in iphone)

enter image description here

and when i pass from tab to other it make an animation.

How can I do this?

like image 335
AITAALI_ABDERRAHMANE Avatar asked Nov 13 '22 01:11

AITAALI_ABDERRAHMANE


1 Answers

You can register a callback with the TabHost.onSetTabChangedListener() method., and trigger the animation from there. However, you should also keep in mind that TabHost is deprecated in Android, and you are trying to port very "iOS-ish" behavior to Android, which may not be very natural for your users.

like image 158
Nik Reiman Avatar answered Feb 26 '23 07:02

Nik Reiman