chthai64/SwipeRevealLayout

Show secondary layout while onclick RecyclerView item

Closed this issue · 1 comments

How can we show(as swipe animation) secondary item while onclick to recyclerView item.

@OverRide
public void onBindViewHolder(View_Holder holder, int position) {
holder.mRelativeLayoutShowSwipeElements.setTag(position);
holder.mRelativeLayoutShowSwipeElements.setOnClickListener(view -> {
switch (view.getId()) {
case R.id.relative_layout_show_swipe_elements:
holder.mSwipeRevealLayout.open(true);
break;
}
});
}