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:

```
        ViewGroup.LayoutParams params = myRecyclerView.getLayoutParams();
        params.height = itemHeight * numberOfItem;
        myRecyclerView.requestLayout();

```

or

```
       ViewGroup.LayoutParams params = new  RecyclerView.LayoutParams(..WRAP_CONTENT, ...WRAP_CONTENT);;
       params.height = itemHeight * numberOfItem;
       myRecyclerView..setLayoutParams(params);

```

But it didn't work. 
How can I do it ? Please help me !