title: Is there any alternatives for designing UI other than hard coding values in android
body: <p>When i went through couple of android examples, in that i find some values are hard coded,</p>
  
  <p>For eg:</p>
  
  <pre><code>&lt;ImageView
      android:id="@+id/icon"
      android:layout_width="22px"
      android:layout_height="22px"
      android:layout_marginLeft="4px"
      android:layout_marginRight="10px"
      android:layout_marginTop="4px"
      android:src="@drawable/ic_launcher" &gt;
  &lt;/ImageView&gt;
  </code></pre>
  
  <p>In this image view values are hard coded, for my custom layout.. how to avoid these kinds of hard coding?
  Is this the correct way in android?, does it have any impact on various screen size devices?</p>