Adding Ripple Effect to RecyclerView item

前端 未结 6 1828
后悔当初
后悔当初 2020-11-28 02:17

I am trying to add Ripple Effect to RecyclerView\'s item. I had a look online, but could not find what I need. I assume it has to be a custom effect. I have tried android:ba

6条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 02:38

    Using a Button Style

    This has worked for me countlessly.

    Add the Borderless Button Style to the root element of your layout. There's no need for focusable or clickable attributes, the default styling encapsulates all that for you.

    
    

提交回复
热议问题