Cherry-pick ff269c6d50 - Minor fixes to setup screen for 7"

(this conflicted and the automerger situation was a disaster, so I
  opted to skip immediately to help clear the backlog, now I'm
  cherry-picking manually)

 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.

Change-Id: I3009e7c66f729a96f404263d79e77d3ab4d831ae
This commit is contained in:
Ben Komalo 2011-06-03 18:06:46 -07:00
parent a04e65226e
commit cd1f3d33a9
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

@ -62,4 +62,7 @@
<dimen name="date_font_size">14sp</dimen>
<dimen name="minimum_width_wide_mode">800dip</dimen>
<dimen name="minimum_width_normal_mode">550dip</dimen>
<!-- Username/password entry -->
<dimen name="setup_credentials_input_width">340dip</dimen>
</resources>