Ripple effect over imageview

后端 未结 5 1354
时光说笑
时光说笑 2021-01-11 10:30

To describe my problem i created small example.

I have linearlayout with imageview and textview. For linearlayout i\'ve set ripple drawable as background. But when i

5条回答
  •  生来不讨喜
    2021-01-11 10:40

    Add the ripple like this

    android:foreground="?android:attr/selectableItemBackground"
    

    based on this answer https://stackoverflow.com/a/35753159/2736039

提交回复
热议问题