title: Android - how to change Recyclerview height dynamically?
body: <p>I'm stuck with an issue about changing Recycler height based on its total items. 
  What I have tried is to use Layout Param like this:</p>
  
  <pre><code>        ViewGroup.LayoutParams params = myRecyclerView.getLayoutParams();
          params.height = itemHeight * numberOfItem;
          myRecyclerView.requestLayout();
  </code></pre>
  
  <p>or</p>
  
  <pre><code>       ViewGroup.LayoutParams params = new  RecyclerView.LayoutParams(..WRAP_CONTENT, ...WRAP_CONTENT);;
         params.height = itemHeight * numberOfItem;
         myRecyclerView..setLayoutParams(params);
  </code></pre>
  
  <p>But it didn't work. 
  How can I do it ? Please help me !</p>