recyclerview no es apto para todos los tamaños de pantalla
Estoy usando reciclerview y gridlayout manager con vistas de tarjeta para cada fila, mi vista de fila (childview) no responde en absoluto.
Quiero mostrar 15 vistas de tarjeta de tal manera que en modo vertical todas mis 15 vistas de niño deberían ser visibles y mi vista de reciclador no debería ser desplazable, mientras que en modo horizontal debería actuar al revés (debería ser desplazable)
He intentado muchas almas sugeridas en SO pero parece que nada funciona.
l comportamiento actual en diferentes tamaños de pantalla es el siguiente
En la captura de pantalla adjunta anterior, la 3ra columna, 4ta y 5ta fila no son visibles
En la pantalla anterior, mi interfaz de usuario se ajusta perfectamente en modo vertical, pero en horizontal no puedo ver todas las vistas de tarjeta.
en la captura de pantalla adjunta arriba, la quinta fila no es visible y en el modo horizontal hay algunos errores de capacidad de respuesta. cardview.xml
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:cardview="http://schemas.android.com/apk/res-auto"
android:layout_width="127dp"
android:layout_height="118dp"
android:layout_margin="5dp"
cardview:cardCornerRadius="4dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/mReminder_Image_Id"
android:layout_width="match_parent"
android:layout_height="90dp"
android:scaleType="fitXY"
android:background="#ffffff"/>
<TextView
android:id="@+id/mReminder_Text_Id"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:textColor="#2d2d2d"
android:textSize="13sp"
android:text="Reminder texts"/>
</LinearLayout>
</android.support.v7.widget.CardView>
fragment_reminders.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".Fragments.Reminders">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/AppTheme.PopupOverlay">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Reminders"
android:textSize="20dp"
android:textStyle="bold"
android:textColor="@color/tab_background"
android:layout_gravity="center" />
</android.support.v7.widget.Toolbar>
<android.support.v7.widget.RecyclerView
android:id="@+id/mRecyclerView_id"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
¿Alguien puede guiarme para resolver esto? Gracias