title: Only one item displayed in RecyclerView
body: <p>I am debugging and I get the correct number of items from Server. And It also calls onCreateViewholder and onBindViewHolder as many as the item size.</p>
  
  <p>However, my RecyclerView only show one item in the list.</p>
  
  <p>And most of the problem after my search was when the height of RecyclerView is <code>match_parent</code>. Mine was <code>match_parent</code> as well. So, I changed it to <code>wrap_content</code>. But It gets correct the number of items and correct item data. But can't display the all the times in the Recycler view.</p>
  
  <pre><code>public class MyAdapter extends RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt; {
      ArrayList&lt;MyData&gt; MyDataArrayList;
  
      public static class MyViewHolder extends RecyclerView.ViewHolder {
          TextView userId;
  
          MyViewHolder(View view) {
              super(view);
              Log.d(TAG, "created()");
              tvUserID = view.findViewById(R.id.textview_myitem);
          }
      }
  
      public MyAdapter (ArrayList&lt;MyData&gt; myDataArrayList) {
          Log.d(TAG, "new MyAdapter instance created");
          this.myDataArrayList = myDataArrayList;
      }
  
      @Override
      public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          Log.d(TAG, "onCreateViewHolder()");
          View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.my_item, parent, false);
  
          return new MyViewHolder(v);
      }
  
      @Override
      public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
          Log.d(TAG, "onBindViewHolder()=\nposition: " + position + ",\nitem: " + myDataArrayList.get(position).toString());
  
          MyViewHolder myViewHolder = (MyViewHolder) holder;
  
          Log.d(TAG, "getItemCount(): " + getItemCount());
          try {
              String username = myDataArrayList.get(position).getUser();
              myViewHolder.userId.setText(username);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  
      @Override
      public int getItemCount() {
          return myDataArrayList.size();
      }
  }
  
  </code></pre>
  
  <pre><code>recyclerView = findViewById(R.id.my_recycler_view);
  layoutManager = new LinearLayoutManager(MyActivity.this);
  myAdapter = new myAdapter(myDataArrayList);
  recyclerView.setAdapter(myAdapter);
  recyclerView.setLayoutManager(layoutManager);
  </code></pre>
  
  <pre><code>    &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/my_recycler_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>this is <code>my_item.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal"&gt;
  
      &lt;TextView
          android:id="@+id/textview_myitem"
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:textSize="25dp"
          android:text="username"
          android:gravity="center_vertical"
          android:paddingLeft="15dp" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>What's the prolbem of this?</p>