android - Adding the effects of a RippleDrawable and a StateListDrawable to a RecyclerView -
i'm working on app uses dual-pane layout on larger devices similar what's detailed here . summary of layout; 1 pane contains list of options while other display detailed information on option selected other pane. right when option selected there ripple effect that's seen when selecting other elements (buttons, check boxes, etc) after animation completes element returns it's previous color. i'd retain highlight ripple after animation completes , i'm having trouble figuring out how accomplish this. this how ripple background looks. focus selector doesn't - couldn't figure out how give elements focus. i've tried using selected selector happens immediately, overriding ripple. <?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:coloraccent"> <item android:id="@android:id/mask" androi...