Ripple effect over imageview

后端 未结 5 1379
时光说笑
时光说笑 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:36

    Simple use these two lines as attribute in that ImageView.

    android:background="?attr/selectableItemBackgroundBorderless"
    android:clickable="true"
    

提交回复
热议问题