Minor fixes to setup screen for 7"

Using a TableLayout and large margins to shrink the input boxes causes
weird artifacts when you type past the size of the input box. Fixing the
padding is also not the right way, since stretching the input the whole
screen length is ugly. Just use a width.

Bug: 4495679
Change-Id: I0e93fdd4f050b193338ca20cef6cba208547c9aa
This commit is contained in:
Ben Komalo 2011-06-03 14:37:13 -07:00
parent 49488f8181
commit ff269c6d50
2 changed files with 10 additions and 11 deletions

View File

@ -35,12 +35,11 @@
<TableLayout
android:id="@+id/email_password_table"
android:layout_below="@+id/instructions"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dip"
android:stretchColumns="1" >
<TableRow
android:paddingTop="16dip" >
android:layout_marginTop="16dip">
<TableRow android:paddingTop="16dip" >
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
@ -49,14 +48,12 @@
android:textAppearance="@style/accountSetupLabelText" />
<EditText
android:id="@+id/account_email"
android:layout_marginRight="96dip"
android:layout_width="wrap_content"
android:layout_width="@dimen/setup_credentials_input_width"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:imeOptions="actionNext" />
</TableRow>
<TableRow
android:paddingTop="16dip" >
<TableRow android:paddingTop="16dip" >
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
@ -65,9 +62,8 @@
android:textAppearance="@style/accountSetupLabelText" />
<EditText
android:id="@+id/account_password"
android:layout_marginRight="96dip"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_width="@dimen/setup_credentials_input_width"
android:inputType="textPassword"
android:imeOptions="actionDone"
android:nextFocusDown="@+id/next" />

View File

@ -67,4 +67,7 @@
<dimen name="account_spinner_dropdown_account_name_max_width">352dip</dimen>
<!-- Username/password entry -->
<dimen name="setup_credentials_input_width">340dip</dimen>
</resources>