Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid dialog width
    primarykey
    data
    text
    <p>I can't seem to control the dialog width. I have a simple layout like so`</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:theme="@android:style/Theme.Dialog"&gt; &lt;ScrollView android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:id="@+id/name_prompt_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/name_prompt" android:padding="10dip"/&gt; &lt;EditText android:id="@+id/name_inp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:lines="1" android:maxLines="1" android:maxLength="48" android:inputType="text" /&gt; &lt;TextView android:id="@+id/t1_prompt_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/t1_prompt" android:padding="10dip"/&gt; &lt;Spinner android:id="@+id/t1_inp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:lines="1" android:maxLines="1" android:maxLength="48" android:inputType="text" android:singleLine="true" android:layout_weight="1" android:entries= "@array/t1_allowed_values" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; </code></pre> <p>for some reason the dialog is only wide enough for the text input field about 11 chars wide. How do I make the dialog width fill the screen?</p>
    singulars
    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.
 

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