I implemented simple Listener to swipe actions on RelativeLayout. But I want to use my onClick method, and I don't know how to fire selecting Layout, I mean this Layout has
android:background="?android:attr/selectableItemBackground"
this background value to see that someone clicked on this layout.
This is my Listener
public interface SwipeListener<T> {
boolean swipeLeft(T itemData);
boolean swipeRight(T itemData);
void onClick(ViewHolder holder);
void onLongClick(ViewHolder holder);
}
I am getting reference to RelativeLayout form ViewHolder which I implemented, but I don't know how to fire selecting this layout in order to see ripple effect ?