RecyclerView in another RecyclerView

I am trying to create mixed elements in the parent RecyclerView, inside it, contains some CardViewswith another RecyclerViewinside it. If you still do not see it, imagine a few ListViewsinside RecyclerView(this ListViewswill be grouped by the header).

Here is the structure I drew to make it clearer:

RecyclerViewCeption

Above is the layout structure I'm trying to achieve. Please note that this is only planning. I'm not sure it's nice to have a RecyclerView in a RecyclerView.

ExpandableRecyclerView . , RecyclerView (, ) .

. - , ?

, RecyclerView CardView RecyclerView, , .

+4
1

RecyclerView RecyclerView . , RecyclerViews, , RecyclerView (Green Colored) RecyclerView. , https://github.com/serso/android-linear-layout-manager

RecyclerView, onTouchListener .

mRecyclerView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener {

    @Override
    public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
        return true;
    }

    @Override
    public void onTouchEvent(RecyclerView rv, MotionEvent e) {

    }

    @Override
    public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {

    }
});
+3

Source: https://habr.com/ru/post/1625492/


All Articles