How to add ripple effect to preferences in android?
问题 I am working on adding ripple effect when the preference is touched (selected). I have customized my preference by extending the ListPreference . I have tried to set the ripple effect programmatically by using RippleDrawable but I don't see the animation. Here is my customized preference class public class CustomListPreference extends ListPreference { public CustomListPreference(Context context, AttributeSet attrs) { super(context, attrs); } public CustomListPreference(Context context) {