I am trying to port some iOS functionality to Android.
I intent to create a table where on swipe to the left shows 2 button: Edit and Delete.
I have
I have a much simpler solution:
>
in onChildDraw(), just increase its width by the dX value.
int position = viewHolder.getAdapterPosition();
View v = recyclerView.getLayoutManager().findViewByPosition(position);
Button hidden = v.findViewById(R.id.hidden);
hidden.setLayoutParams(new LinearLayout.LayoutParams((int)-dX, -1));
Make sure not to call the default super.onChildDraw()