You can use animation when you use Navigation. It is to implement it. First, you need to create a new animation resource file. Right-click res folder, then click New and then New Android Resource File. You will see the following window. Specify the filename and choose Animation from the Resource type drop-down list. Click OK.
Open the animation resource file and create an animation. The following is a simple fade-in animation.
Now open the navigation layout and click on an action you want to have animation.
Now at the right panel, find the Transitions. You have four available transitions. Select the animation you have created before, from the transition’s drop-down list you want.
Now you can test the application. That was all!