title: Automatically organize views in relative layout | Android Studio
body: <p>I need to auto-organize views in the layout. 
  It must be by code, because I have a button to add more views.</p>
  
  <p>I need that the views put at the rigth of other view if the window have place.
  Else, it must put bellow the first view.</p>
  
  <p>I use a relative layout, but if there are a better way...</p>
  
  <p><a href="https://i.stack.imgur.com/v3FHE.png" rel="nofollow noreferrer">A exaple like i want to organize</a></p>