Note that there are some explanatory texts on larger screens.

plurals
  1. POExpand EditText width on input
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload