Using the design support library version 23.0.1 , the menu items in NavigationView show default ripple animation when selected. However, when upgrading to support library support 23.1.0 ripple animation seems lost. This is mistake? Has anyone else noticed this as well and can reproduce it? And better yet, does anyone have a solution?
I first discovered this problem when using NavigationView through the design support library version 23.4.0 and noticed that there was no ripple effect on menu items. However, it was only after I followed this NavigationView tutorial provided by AndroidForDevs that I was able to put the blame on the version of the development support library 23.1.0 .
To replicate and reproduce this problem, check out this sample code sample that uses the 22.2.0 version of the design support library and throw the 23.1.0 version into the 23.1.0 application . Then you will notice that the menu items do not pulsate when selected. However, if you 22.2.0 to version 22.2.0 or 23.0.1 , you will notice that the elements will pulsate when selected.
For reference, here is a link to the support library changelog. Although it mentions an update that allows you to create custom views in NavigationView , I can't think about why this could remove the ripple effect by default, as it seems to be disconnected. Below is a description of the word for word description
Added support for custom views to the NavigationView class using the app:actionLayout attribute app:actionLayout or MenuItemCompat.setActionView() Method.
Note. This problem is most easily visualized when the drawer cannot be closed when selecting a menu item. This can be achieved by commenting on this line.
android navigation-drawer navigationview rippledrawable
Forrest bice
source share