Show secondary layout while onclick RecyclerView item
Closed this issue · 1 comments
Javohir6949 commented
How can we show(as swipe animation) secondary item while onclick to recyclerView item.
Javohir6949 commented
@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;
}
});
}