title: Add views dynamically depending on the screen size in Android
body: <p>I want to add views dynamically (horizontal or vertical) in a row. Each view has a fixed size and fixed padding. <strong>How do I decide how many views I can add dynamically depending on the device screen size.</strong> For example, smaller phones or with mdpi might have lesser number of views added compared to xhdpi devices.</p>
  
  <p>Thanks.</p>