diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java index 068d099eb..26a07fefe 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmGoogleAuthActivity.java @@ -41,7 +41,7 @@ import com.todoroo.astrid.service.StatisticsService; */ public class ActFmGoogleAuthActivity extends ListActivity { - private static final String AUTH_TOKEN_TYPE = "oauth2:https://www.googleapis.com/auth/userinfo.profile"; //$NON-NLS-1$ + public static final String AUTH_TOKEN_TYPE = "oauth2:https://www.googleapis.com/auth/userinfo.profile"; //$NON-NLS-1$ public static final String RESULT_EMAIL = "email"; //$NON-NLS-1$ public static final String RESULT_TOKEN = "token"; //$NON-NLS-1$ diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java index 504ef04ca..b632c4c0c 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/ActFmLoginActivity.java @@ -36,7 +36,6 @@ import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.view.WindowManager; -import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.ScrollView; @@ -215,13 +214,6 @@ public class ActFmLoginActivity extends FragmentActivity implements AuthListener return link; } - private void setupSignIn(TextView signIn) { - signIn.setOnClickListener(signInListener); - SpannableString content = new SpannableString(getString(R.string.welcome_sign_in)); - content.setSpan(new UnderlineSpan(), 0, content.length(), 0); - signIn.setText(content); - } - @SuppressWarnings("nls") protected void initializeUI() { facebook = new Facebook(APP_ID); @@ -239,11 +231,11 @@ public class ActFmLoginActivity extends FragmentActivity implements AuthListener if(AmazonMarketStrategy.isKindleFire()) googleLogin.setVisibility(View.GONE); googleLogin.setOnClickListener(googleListener); - Button signUp = (Button) findViewById(R.id.pw_signup); + TextView signUp = (TextView) findViewById(R.id.pw_signup); signUp.setOnClickListener(signUpListener); TextView signIn = (TextView) findViewById(R.id.pw_login); - setupSignIn(signIn); + signIn.setOnClickListener(signInListener); setupTermsOfService((TextView) findViewById(R.id.tos)); } diff --git a/astrid/res/drawable-hdpi/astrid_com_logo_new.png b/astrid/res/drawable-hdpi/astrid_com_logo_new.png new file mode 100644 index 000000000..5f29cb6e2 Binary files /dev/null and b/astrid/res/drawable-hdpi/astrid_com_logo_new.png differ diff --git a/astrid/res/drawable-hdpi/fb_login_background.9.png b/astrid/res/drawable-hdpi/fb_login_background.9.png new file mode 100644 index 000000000..49b7d483b Binary files /dev/null and b/astrid/res/drawable-hdpi/fb_login_background.9.png differ diff --git a/astrid/res/drawable-hdpi/google_login_background.9.png b/astrid/res/drawable-hdpi/google_login_background.9.png new file mode 100644 index 000000000..56511c7b7 Binary files /dev/null and b/astrid/res/drawable-hdpi/google_login_background.9.png differ diff --git a/astrid/res/drawable/astrid_com_gradient.xml b/astrid/res/drawable/astrid_com_gradient.xml index 850b5c4e3..1ec360c5c 100644 --- a/astrid/res/drawable/astrid_com_gradient.xml +++ b/astrid/res/drawable/astrid_com_gradient.xml @@ -8,8 +8,8 @@ android:shape="rectangle"> diff --git a/astrid/res/layout-land/actfm_login_activity.xml b/astrid/res/layout-land/actfm_login_activity.xml index 16e756e9e..4fa1a4c77 100644 --- a/astrid/res/layout-land/actfm_login_activity.xml +++ b/astrid/res/layout-land/actfm_login_activity.xml @@ -12,121 +12,116 @@ android:background="@drawable/astrid_com_gradient" android:orientation="vertical" > - - - - - - + - - - - + android:scaleType="center" + android:paddingLeft="20dip" + android:paddingRight="20dip" + android:paddingBottom="10dip" + android:src="@drawable/astrid_com_logo_new" + android:layout_weight="1" /> -