Android dialog width

Posted by Solid on Stack Overflow See other posts from Stack Overflow or by Solid
Published on 2010-04-14T04:17:12Z Indexed on 2010/04/14 4:23 UTC
Read the original article Hit count: 702

Filed under:
|
|

I can't seem to control the dialog width. I have a simple layout like so`

<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"/>
<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">

 </LinearLayout>

`

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?

© Stack Overflow or respective owner

Related posts about android

Related posts about dialog