title: weight for max height in android when using wrap content?
body: <p>I have two recycler views in my layout,
  I want the second rv to have max height 40%, otherwise height should be wrap content.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;LinearLayout&gt; &lt;!-- vertical --&gt;
    &lt;androidx.recyclerview.widget.RecyclerView/&gt; &lt;!-- fill the height --&gt;
    &lt;androidx.recyclerview.widget.RecyclerView/&gt; &lt;!-- wrap the height, max: 40% --&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>This is something I want to achieve but don't know how?</p>