Я пытаюсь добавить два вида ресайклеров в один макет, который находится в Fragment
. Но все, что я вижу, это первый RecyclerView
. Можно ли добавить два вида ресайклеров, как на изображении выше (оба должны быть видны одновременно), или есть какое-то ограничение в андроиде, которое можно добавить только один просмотр ресайклеров на один полный экран?Множественный просмотр в одном фрагменте, видимом одновременно
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/test_recycle1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="#FFCC00"
android:dividerHeight="4px"
android:background="#e0e0e0"/>
</LinearLayout>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/test_recycle2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="#FFCC00"
android:dividerHeight="4px"
android:background="#e0e0e0"/>
</LinearLayout>
</LinearLayout>
Покажите свой XML. Это можно сделать с помощью LinearLayout и весов. – yennsarah
добавлено макет – user3477811