title: Android EditText Layout Width Full size
body: <p>I am new to Android and i am creating a test app for learning and in this i want my Edit-text field width to be as wide as the Device is i.e EditText field should filled 100% of width as long as the Device width .</p>
  
  <p>I tried everything but didn't succeed.Any Clue What can i do here?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/LinearLayout1"
  android:layout_width="wrap_content"
  android:layout_height="match_parent"
  android:orientation="horizontal"
  tools:context=".MainActivity" &gt;
  
  &lt;EditText
      android:id="@+id/editText1"
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"
      android:enabled="false"
      android:gravity="center_vertical|center"
      android:inputType="none"
      android:onClick="doDis"
      android:text="@string/aarti_collection" /&gt;
  </code></pre>
  
  <p></p>