title: Scalability of Views in Android
body: <p>I am unable to make scalable views, based on the reading till I got these ways to scale views :</p>
  
  <ul>
  <li>To Change Layouts for different screen size (xhdpi etc.)</li>
  <li>To use dp in sizes and sps in fonts</li>
  <li>To dynamically change sizes of Views using Java code</li>
  <li>To use Relative Layout properties</li>
  </ul>
  
  <p>I found most suitable using dp and sps but that's not working accurately, i.e. on devices with scale 3.0 it does not actually works as the screen sizes are probably different that from the standard screen sizes (for which scale is calculated).</p>
  
  <p>Hence I am confused how to make a scalable UI.</p>
  
  <p>I am currently designing a calculator app, hence a grid of 4 buttons (row) and 5 columns has to be created but the arrangement is taking load on me, i.e.</p>