title: How I can show the number of items in recyclerview?
body: <p>In recyclerview, I want only 3 items to show, </p>
  
  <p>so I set the width and height with recyclerview but,</p>
  
  <p>another test device it show 3.2 items to show.</p>
  
  <p>in main activity,</p>
  
  <pre><code>&lt;android.support.v7.widget.RecyclerView
                          android:id="@+id/main_activity_recyclerview"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"&gt;
  
                      &lt;/android.support.v7.widget.RecyclerView&gt;
  </code></pre>
  
  <p>and in main_activity_recyclerviews view.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" **android:layout_width="90dp"**
      android:layout_height="match_parent"
      android:layout_gravity="center_horizontal"
      android:gravity="center_horizontal"
      &gt;
  
  &lt;TextView&gt; ...
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In main_activity_recyclerviews view, I change the width and test in A device, it show just 3 items, but test in B device, it shows 3.2items.</p>
  
  <p>It occurs looks like device display size.</p>
  
  <p>How I can show the recyclerview items of appoint size?</p>
  
  <p>----------------------update---------------------------</p>
  
  <pre><code>@Override
          public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
              View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.recyclerview_main,parent,false);
  
              view.getLayoutParams().height = changeX;
  
              return new MyViewHolder(view);
          }
  </code></pre>
  
  <p>oncreateviewholder</p>