title: Responsive layout in Android
body: <p>I want to make a responsive design in Android i.e. I need such a layout in which I will add views programmatically and they will adjust them according to screen size.
  For example:
  I want to add 10 views in a layout
  When I add them if there is place for only three views per line then automatically they get adjust in four rows and three columns i.e</p>
  
  <blockquote>
    <p>[0,0] [0,1] [0,2]</p>
    
    <p>[1,0] [1,1] [1,2]</p>
    
    <p>[2,0] [2,1] [2,2]</p>
    
    <p>[3,0]</p>
  </blockquote>
  
  <p>But as in landscape mode, there is more space vertically</p>
  
  <blockquote>
    <p>[0,0] [0,1] [0,2] [0,3] [0,4]</p>
    
    <p>[1,0] [1,1] [1,2] [1,3] [1,4]</p>
  </blockquote>