title: How to change drawable shape size programmatically ?
body: <p>How can i change the width and height programmatically so the shape will fit the android device it's running on ? 
  the 90dp height fits to my device , but i want it to fit in other devices.</p>
  
  <p>here is my shape.xml code : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/cellfilled" &gt;
  
  &lt;size android:width="0dp"
      android:height="90dp" /&gt;
  
  &lt;solid android:color="#00000000" /&gt;
  
  &lt;stroke
      android:width="1dp"
      android:color="#ff000000"/&gt;
  
  &lt;padding
      android:bottom="1dp"
      android:left="1dp"
      android:right="1dp"
      android:top="1dp" /&gt;
  &lt;/shape&gt;
  </code></pre>