title: Displaying blog style tags side by side in multiple rows (Android)
body: <p>Please see the image below:
  <a href="https://i.stack.imgur.com/vnO1O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vnO1O.png" alt="Multiple Tags appearing side by side"></a></p>
  
  <p>I want to display a set of tags side by side in an Android app.
  Conditions are:</p>
  
  <ul>
  <li>Each tag appear next to the previous tag.</li>
  <li>If the horizontal space runs out, the next tag appears in a new line.</li>
  <li>If there are multiple words in a tag and there's only a space for some of the words of a tag, move the whole tag in a new line. However, if the tag was already in a new line, let the tag break in two lines.</li>
  </ul>
  
  <p>I'm not sure what this technique is called. Any help on the issue, whether by code or link to a library, will be greatly appreciated.</p>