Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selectableItemBackground color change for pre-lollipop versions

Tags:

android

ripple

For Lollipop, ripple color can simply be modified using colorControlHighlight. But for pre-Lollipop (< API21), how can I change the color of pressed state achieved by setting the background to ?attr/selectableItemBackground

like image 404
Kamal Avatar asked Oct 31 '22 22:10

Kamal


1 Answers

You can simply use this:

<item name="colorControlHighlight">@color/yourColor</item>
like image 116
naonathan Avatar answered Nov 15 '22 04:11

naonathan