Navigation in the Ripple Lost In Support Library 23.1.0 Update

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.

+5
android navigation-drawer navigationview rippledrawable
source share

No one has answered this question yet.

See similar questions:

8
NavigationView + selector + ripple effect level selected does not work
5
Android NavigationView element ripple effect

or similar:

108
How to create a simple separator in a new navigation screen?
54
Change the color of the marked menu item in the navigation box
26
How to style NavigationView design support library?
3
How to listen to a long click on a navigation item?
2
Install Margins programmatically for the Navigationview Support Design Library
2
How to programmatically disable and activate items every time Android NavigationView is displayed
2
Android Design Library 23.1.0 NavigationView
one
Design support library, toolbar buttons crop ripples
one
Design support v.23.1.0 and v.23.1.1 broke the menu in NavigationView
0
Navigation and ripple effect

All Articles