I created a custom LayoutManager
and TouchHelper.Callback
to have a tinder-like card stack. I want my layout manager to allow only the first item to have a touch event. Firstly I override the isItemViewSwipeEnabled()
of ItemTouchHelper.Callback
to disable touch event for each child. As the last step, I need to allow the first item to have a touch event only. However, I am failed to do so. Is anybody know how to overcome it?
StackLayoutManager to create child views.
StackTouchHelperCallback to disallow default touch events.
StackView a custom RecyclerView.
This is the custom view hierarchy I developed. If anybody developed some kind of views, can them help me? Thanks in advance.