From 8067b54294356f375521ba3d1e7db3df117b65a4 Mon Sep 17 00:00:00 2001 From: Andrew Stadler Date: Sun, 20 Sep 2009 16:54:38 -0700 Subject: [PATCH] UI cleanups for new account creation * Improve appearance of basics screen and use simplified text * Provide alternate text when in EAS account setup flow (from acct mgr) * Change "Exchange/ActiveSync" button to "Exchange account" * Add some spacing to the three buttons, to improve appearance Bugs addressed: 2128055 Change string in account picker activity to Exchange 2132713 Welcome message for Email app is inappropriate when coming from Settings -> Accounts & sync -> New account --- res/layout/account_setup_account_type.xml | 3 +++ res/layout/account_setup_basics.xml | 8 ++------ res/values/strings.xml | 11 ++++++++--- .../email/activity/setup/AccountSetupBasics.java | 6 +++++- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/res/layout/account_setup_account_type.xml b/res/layout/account_setup_account_type.xml index 3c30e257d..919b86c93 100644 --- a/res/layout/account_setup_account_type.xml +++ b/res/layout/account_setup_account_type.xml @@ -31,6 +31,7 @@ android:text="@string/account_setup_account_type_pop_action" android:layout_height="wrap_content" android:layout_width="150sp" + android:layout_marginTop="25dip" android:minWidth="@dimen/button_minWidth" android:layout_gravity="center_horizontal" /> @@ -39,6 +40,7 @@ android:text="@string/account_setup_account_type_imap_action" android:layout_height="wrap_content" android:layout_width="150sp" + android:layout_marginTop="25dip" android:minWidth="@dimen/button_minWidth" android:layout_gravity="center_horizontal" /> @@ -47,6 +49,7 @@ android:text="@string/account_setup_account_type_exchange_action" android:layout_height="wrap_content" android:layout_width="150sp" + android:layout_marginTop="25dip" android:minWidth="@dimen/button_minWidth" android:layout_gravity="center_horizontal" android:visibility="gone" diff --git a/res/layout/account_setup_basics.xml b/res/layout/account_setup_basics.xml index 86e6bd282..0603be5ca 100644 --- a/res/layout/account_setup_basics.xml +++ b/res/layout/account_setup_basics.xml @@ -31,8 +31,10 @@ android:layout_weight="1" android:orientation="vertical" > @@ -40,12 +42,6 @@ android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" /> - Set up email - Welcome to Email setup!\n\nUse any email account with Email. Most popular email accounts can be set up in 2 steps! + You can configure Email for most accounts in just a few steps. + + + You can configure an Exchange account in just a few + steps. - To begin, type your email address and password: + + Email address @@ -317,7 +322,7 @@ IMAP account - Exchange/ActiveSync + Exchange account Incoming server settings diff --git a/src/com/android/email/activity/setup/AccountSetupBasics.java b/src/com/android/email/activity/setup/AccountSetupBasics.java index 4f9ad22bc..b42345d5a 100644 --- a/src/com/android/email/activity/setup/AccountSetupBasics.java +++ b/src/com/android/email/activity/setup/AccountSetupBasics.java @@ -41,6 +41,7 @@ import android.view.View.OnClickListener; import android.widget.Button; import android.widget.CheckBox; import android.widget.EditText; +import android.widget.TextView; import android.widget.Toast; import java.io.Serializable; @@ -133,8 +134,11 @@ public class AccountSetupBasics extends Activity mEasFlowMode = getIntent().getBooleanExtra(EXTRA_EAS_FLOW, false); if (mEasFlowMode) { + // No need for manual button -> next is appropriate mManualSetupButton.setVisibility(View.GONE); - // TODO: probably need different text here + // Swap welcome text for EAS-specific text + TextView welcomeView = (TextView) findViewById(R.id.instructions); + welcomeView.setText(R.string.accounts_welcome_exchange); } if (savedInstanceState != null && savedInstanceState.containsKey(EXTRA_ACCOUNT)) {