jascontact.blogg.se

Android studio icon for bottom bar
Android studio icon for bottom bar











android studio icon for bottom bar

The problem is not with the view state-based animations – using AnimatedStateListDrawable for the icon drawable in MenuItems will animate according to the view states triggered by user interaction with the BottomNavigationView:

android studio icon for bottom bar

I am indebted to my colleague at Babylon Health Maxime Mazzone from whom I learned of this issue – you have him to thank for the investigations which prompted this article. This is easy enough to implement when using these Drawables within standard ImageView, but they do not work quite as expected when using them within BottomNavigationView.

android studio icon for bottom bar

The first are achieved by using an AnimatedStateListDrawable, and the second are implemented using AnimatedVectorDrawable and need to be started and stopped manually (as seen here). There are two distinct types of animated icons that we’ve covered in the Animated Icons series: Those that animate based on changing view state (such as the strikethru animation on the left), and those that are ongoing repeating animations such as the LoadingV2 animation.













Android studio icon for bottom bar