title: Expand EditText width on input
body: <p>I'm a rookie programmer, so it might be some quite basic stuff i'm asking - although i haven't been able to find an answer using a search engine.</p>
  
  <p><strong>Problem 1:</strong></p>
  
  <p>I need each of these EditTexts to expand their width on input. I tried adding <code>android:inputType="textCapSentences"</code> and setting width to "Wrap_content" in each of the views - however, it appears not to work, plus it removed the hint which is given.</p>
  
  <p>Here's my code for it:</p>
  
  <pre><code>      &lt;LinearLayout 
         android:id="@+id/namebar"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         android:orientation="horizontal"
         android:paddingRight="20.0dip"
         android:paddingLeft="20.0dip"
         android:paddingTop="20.0dip"
         android:layout_above="@+id/tavleframe"
         &gt;
         &lt;EditText
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:layout_weight="1.0"
              android:background="@drawable/tavle"
              android:gravity="center"
              android:hint="@string/name_text"
              android:textColor="#ffffffff"
              Imageview.Scaletype="fill_parent"
              android:inputType="textCapSentences"
              /&gt;
  
         &lt;EditText
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:layout_weight="1.0"
              android:background="@drawable/tavle"
              android:gravity="center"
              android:hint="@string/name_text"
              android:textColor="#ffffffff"
              Imageview.Scaletype="fill_parent"
              android:inputType="textCapSentences"/&gt;
  
         &lt;EditText
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:layout_weight="1.0"
              android:background="@drawable/tavle"
              android:gravity="center"
              android:hint="@string/name_text"
              android:textColor="#ffffffff"
              Imageview.Scaletype="fill_parent"
              android:inputType="textCapSentences"/&gt;
  
          &lt;EditText
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:layout_weight="1.0"
              android:background="@drawable/tavle"
              android:gravity="center"
              android:hint="@string/name_text"
              android:textColor="#ffffffff"
              Imageview.Scaletype="fill_parent"
              android:inputType="textCapSentences"/&gt;
  
          &lt;EditText
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:layout_weight="1.0"
              android:background="@drawable/tavle"
              android:gravity="center"
              android:hint="@string/name_text"
              android:textColor="#ffffffff"
              Imageview.Scaletype="fill_parent"
              android:inputType="textCapSentences"/&gt;                                            
     &lt;/LinearLayout&gt;
  </code></pre>