Vote count:
0
I implemented a ReceylerView and I can't figure out how to get touch feedback (the ripple effect from it).
Here is what i did for the onClickListener:
holder.itemView.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
//start Intent
}
});
And I added both clickable & focusable to my XML
<RelativeLayout xmlns:android="http://ift.tt/nIICcg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:padding="4dp" >
asked 1 min ago
How to get touch feedback from RecyclerView?
Aucun commentaire:
Enregistrer un commentaire