From 4fc0b79db28f77f6841d0236a6892ea111e64c0f Mon Sep 17 00:00:00 2001 From: "Mr. Dragon" Date: Tue, 23 Jan 2018 00:30:37 +0530 Subject: [PATCH] Make login section bit Googlish --- .../UserProvidedAccountDialogBuilder.java | 2 +- app/src/main/res/drawable/button_bg_alt.xml | 16 ++++ .../res/drawable/button_bg_outine_alt.xml | 16 ++++ app/src/main/res/drawable/ic_google.xml | 9 ++ .../res/layout/credentials_dialog_layout.xml | 92 +++++++++++++++---- app/src/main/res/values/color.xml | 1 + app/src/main/res/values/dimens.xml | 1 + app/src/main/res/values/strings.xml | 9 +- 8 files changed, 124 insertions(+), 22 deletions(-) create mode 100644 app/src/main/res/drawable/button_bg_alt.xml create mode 100644 app/src/main/res/drawable/button_bg_outine_alt.xml create mode 100644 app/src/main/res/drawable/ic_google.xml diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/UserProvidedAccountDialogBuilder.java b/app/src/main/java/com/github/yeriomin/yalpstore/UserProvidedAccountDialogBuilder.java index 243b1f91d..69e0b42af 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/UserProvidedAccountDialogBuilder.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/UserProvidedAccountDialogBuilder.java @@ -36,7 +36,7 @@ public class UserProvidedAccountDialogBuilder extends CredentialsDialogBuilder { @Override public Dialog show() { - final Dialog ad = new Dialog(context); + final Dialog ad = new Dialog(context,android.R.style.Theme_Material_Light_Dialog_Presentation); ad.setContentView(R.layout.credentials_dialog_layout); ad.setTitle(context.getString(R.string.credentials_title)); ad.setCancelable(false); diff --git a/app/src/main/res/drawable/button_bg_alt.xml b/app/src/main/res/drawable/button_bg_alt.xml new file mode 100644 index 000000000..62729776b --- /dev/null +++ b/app/src/main/res/drawable/button_bg_alt.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/button_bg_outine_alt.xml b/app/src/main/res/drawable/button_bg_outine_alt.xml new file mode 100644 index 000000000..f595c3795 --- /dev/null +++ b/app/src/main/res/drawable/button_bg_outine_alt.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_google.xml b/app/src/main/res/drawable/ic_google.xml new file mode 100644 index 000000000..751de33b6 --- /dev/null +++ b/app/src/main/res/drawable/ic_google.xml @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/app/src/main/res/layout/credentials_dialog_layout.xml b/app/src/main/res/layout/credentials_dialog_layout.xml index 3f06e8095..a104413d2 100644 --- a/app/src/main/res/layout/credentials_dialog_layout.xml +++ b/app/src/main/res/layout/credentials_dialog_layout.xml @@ -3,38 +3,60 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="25dp" + android:padding="25dp" > + + + + + android:layout_marginTop="25dp" + android:text="@string/credentials_message"/> + android:hint="@string/credentials_hint_email" /> + android:layout_height="wrap_content"> + android:inputType="textPassword" + android:fontFamily="normal" /> + android:src="@drawable/ic_visibility_on" + android:tint="@color/darkgray"/> + + + + + + + + -