
If someone has a solution to that, share your thoughts in the comments section. We tried to disable shiftMode for the bottomNavigationView and animate the icon, but no change.

Note: We have noticed that the android support library, bottom navigation view, is not letting AVD animate on devices with OS > 7.0. That’s it! Run the android application on your device and check the animation. Set this menu_bottom_nav.xml as menu for bottom navigation view.īottomNavigationView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:showAsAction="always|withText" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:elevation="0dp"/> " xmlns:app=" "> app:showAsAction="always" />.ģ.

Use this animated state list drawable as icon in the menu_bottom_nav.xml. " xmlns:android=" " tools:targetApi="lollipop"> android:state_checked="true"/> />Ģ. Check below for settings icon which is named as anim_settings.xml. Create an Animated State List Drawable for each of the icon in the bottom navigation view. P.S: Based on Nick Butcher’s suggestion we have updated the usage as below.ġ. Import the settings animated vector drawable from Step 2 into your Android Project from Android Studio and place it in src/res/drawable Once you are done with the animation, export it as animated vector drawable. Video edited by Giridhar Reddy Vennapusa.
We will simply rotate and change the colors of that vector to achieve the animation as seen below. For our settings icon animation example, we just require a single SVG, as we aren’t changing the shape. Even though we aren’t transforming the actual shape here, we are still able to use ShapeShifter to achieve the animation.Ĭreate two vectors in your favorite tool, such as SKETCH – one for the start state and the other for the end state of your desired animation.

This particular icon animation doesn’t exhibit shape shifting, we are just rotating a static shape to create an animated vector drawable and using it as the settings icon in the Android bottom navigation bar. Next, we will guide you through each step. Many thanks to Alex Lockwood for creating this tool, as it has eased the formerly painful process of animated vector drawable. Concept by Meghanath Ganjiįirst, you’ll want to become familiar with ShapeShifter, a fantastic tool created by Alex Lockwood to animate scalable vector graphics (SVG) from one shape to another (or one state to another) and then export the animation as an animated vector drawable. Bottom navigation bar with animated vector drawable.
