RecyclerView with fixed row count
<p>I want to have a recyclerView with fixed row count not scrollable and every row has a fixed height as well to fill all screen. For example, I had 4 rows so row height should be recyclerView height /4. </p>

<p>Row layout .xml</p>

<pre><code>&lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/border"
android:clickable="true"

&gt;
&lt;ImageView
    android:id="@+id/ivImage"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    android:scaleType="centerCrop"
    android:src="@drawable/carte_recto"
    app:layout_collapseMode="parallax"
    app:layout_collapseParallaxMultiplier="0.7"
    android:layout_margin="0dp"
    android:padding="0dp"
    android:background="@color/colorPrimary"/&gt;
</code></pre>

<p></p>

<p>RecyclerView: </p>

<pre><code>&lt;android.support.v7.widget.RecyclerView
    android:id="@+id/recyclerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="0dp"
    android:padding="0dp"
    android:scrollbars="none" /&gt;
</code></pre>

<p>java code :</p>

<pre><code> mRecyclerView.setHasFixedSize(true);
    GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(),1, LinearLayoutManager.VERTICAL, false);
    mRecyclerView.setLayoutManager(gridLayoutManager);
    mRecyclerView.addOnItemTouchListener(new RecyclerItemClickListener(getActivity(), onItemClickListener));
    mRecyclerView.setItemAnimator(new DefaultItemAnimator());
    mRecyclerView.setAdapter(storeAdapter);
    storeAdapter.notifyDataSetChanged();
</code></pre>

<p>Any ideas?</p>