diff options
| author | Martin Hibdon <mhibdon@google.com> | 2014-02-14 13:14:45 -0800 |
|---|---|---|
| committer | Martin Hibdon <mhibdon@google.com> | 2014-02-14 13:30:02 -0800 |
| commit | b9f8dbce19c192c5510933bdb2900bdd7aa2a826 (patch) | |
| tree | d6b59f9b5df16f7b1324b1e99079793ad7f29355 | |
| parent | 38fd08e4708b10e585cf6336d44fef53c50e65c6 (diff) | |
| download | android_packages_apps_Email-b9f8dbce19c192c5510933bdb2900bdd7aa2a826.tar.gz android_packages_apps_Email-b9f8dbce19c192c5510933bdb2900bdd7aa2a826.tar.bz2 android_packages_apps_Email-b9f8dbce19c192c5510933bdb2900bdd7aa2a826.zip | |
Change account settings buttons back to text
We actually only want the nav arrows on initial
account setup, not in regular settings.
Change-Id: I02e153638e5df29c1fd7aa134db36bde9fc0666e
| -rw-r--r-- | res/layout/account_settings_buttons.xml | 31 | ||||
| -rw-r--r-- | src/com/android/email/activity/setup/AccountServerBaseFragment.java | 2 |
2 files changed, 16 insertions, 17 deletions
diff --git a/res/layout/account_settings_buttons.xml b/res/layout/account_settings_buttons.xml index 68cc5dc67..8616fdab1 100644 --- a/res/layout/account_settings_buttons.xml +++ b/res/layout/account_settings_buttons.xml @@ -14,24 +14,23 @@ limitations under the License. --> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + android:orientation="horizontal" android:paddingTop="@dimen/settings_buttons_padding_top" - android:paddingBottom="@dimen/settings_buttons_padding_bottom" - > - <ImageButton + android:paddingBottom="@dimen/settings_buttons_padding_bottom"> + + <Button android:id="@+id/cancel" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:src="@drawable/ic_nav_arrow_back" - android:text="@string/cancel_action" - android:layout_alignParentLeft="true"/> - <ImageButton + style="@style/accountSettingsButton" + android:layout_width="0dip" + android:layout_weight="1" + android:text="@string/cancel_action" /> + <Button android:id="@+id/done" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - android:src="@drawable/ic_nav_arrow_forward" - android:text="@string/done_action" - android:layout_alignParentRight="true"/> -</RelativeLayout>
\ No newline at end of file + style="@style/accountSettingsButton" + android:layout_width="0dip" + android:layout_weight="1" + android:text="@string/done_action" /> +</LinearLayout>
\ No newline at end of file diff --git a/src/com/android/email/activity/setup/AccountServerBaseFragment.java b/src/com/android/email/activity/setup/AccountServerBaseFragment.java index 96c425f9c..3c136b192 100644 --- a/src/com/android/email/activity/setup/AccountServerBaseFragment.java +++ b/src/com/android/email/activity/setup/AccountServerBaseFragment.java @@ -66,7 +66,7 @@ public abstract class AccountServerBaseFragment extends Fragment protected SetupDataFragment mSetupData; // This is null in the setup wizard screens, and non-null in AccountSettings mode - private ImageButton mProceedButton; + private View mProceedButton; // This is used to debounce multiple clicks on the proceed button (which does async work) private boolean mProceedButtonPressed; |
