title: how to restrict the width of an editText
body: <p>in the below posted layout, the <code>editText</code> is always strectch up to the end even when i restrict its width to be something like <code>30dp</code> i want it to be not stretched upto the end, how can i do so</p>
  
  <p><strong>*XML Code</strong>:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical"&gt;
  &lt;TableRow 
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="top|left"
      android:orientation="horizontal"&gt;
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="left|center_vertical"
          android:src="@android:drawable/alert_light_frame"/&gt;
      &lt;TextView 
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center_horizontal|center_vertical"
          android:text="roll: "/&gt;
      &lt;EditText 
          android:layout_width="30dp"
          android:layout_height="wrap_content"
          android:gravity="start"
          android:hint="E"
          android:ems="6"/&gt;
  &lt;/TableRow&gt;
  </code></pre>