Issue
when I use default background on button, I click button, the button's background will be dark gray.
But when I change button background (custom image) , the default click effect(dark gray) is disappeared.
how to keep default click effect when I change button background in android?
Solution
Use this attribute
android:foreground="?attr/selectableItemBackgroundBorderless"
Answered By - Milind Chaudhary
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.