title: wrap a layout with textviews
body: <p>I have a layout that looks like this:</p>
  
  <pre><code>&lt;RelativeLayout&gt;
  &lt;!--aligned parent top--&gt;
  &lt;/&lt;RelativeLayout&gt;
  &lt;FlowLayout&gt;
  &lt;!--Should fill remaining space--&gt;
  &lt;/FlowLayout&gt;
  &lt;RelativeLayout&gt;
  &lt;!--aligned parent bottom--&gt;
  &lt;/&lt;RelativeLayout&gt;
  </code></pre>
  
  <p>I used <a href="https://github.com/blazsolar/FlowLayout" rel="nofollow noreferrer">FlowLayout</a> to show a list of textviews(It may contain 10-15 textviews). So, based on available empty screen space, I want to show number of textviews. For example, if there are 15 textviews to be shown there and there is space for 10 textviews in a large screen, I want to show 9 textviews and show "+6" in the last textview. In a small screen space may be available only for 5 textviews, in that i want to show 4 textviews with "+11" in the last textview. For clear understanding, here is the screenshot. As you can see, actual number of textviews to be displayed are 5. but 2 are displayed, and +3 is added. Similarly, based on screen space available, I want to add number of textviews in the layout.</p>
  
  <p>How can this be achieved programmatically?</p>
  
  <p><a href="https://i.stack.imgur.com/CDC5P.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CDC5P.jpg" alt="enter image description here"></a></p>