diff options
author | Alexander Zatsepin <az@mapswithme.com> | 2018-04-23 15:33:42 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-04-25 15:38:50 +0300 |
commit | 135e5b628423c19412d111e636f1410188bfba8e (patch) | |
tree | 96c48f15e4d85b733a132b7cde3bb60e28279712 /android/res | |
parent | c2497f5565cffc918dddaba39867aa6cce670468 (diff) |
[andorid] Added scrollview to auth dialog
Diffstat (limited to 'android/res')
-rw-r--r-- | android/res/layout/fragment_auth_passport_dialog.xml | 136 |
1 files changed, 70 insertions, 66 deletions
diff --git a/android/res/layout/fragment_auth_passport_dialog.xml b/android/res/layout/fragment_auth_passport_dialog.xml index 74b892d7a9..9d0bb18c15 100644 --- a/android/res/layout/fragment_auth_passport_dialog.xml +++ b/android/res/layout/fragment_auth_passport_dialog.xml @@ -1,73 +1,77 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="vertical" - android:paddingStart="@dimen/margin_base_plus" - android:paddingLeft="@dimen/margin_base_plus" - android:paddingEnd="@dimen/margin_base_plus" - android:paddingRight="@dimen/margin_base_plus" - android:paddingBottom="@dimen/auth_dialog_padding_bottom" - android:paddingTop="@dimen/auth_dialog_padding_top"> - <TextView + android:layout_width="match_parent"> + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textAppearance="@style/MwmTextAppearance.Headline" - android:text="@string/profile_authorization_title"/> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/margin_half_plus_eight" - android:textAppearance="@style/MwmTextAppearance.Body3" - android:text="@string/profile_authorization_message"/> - <TextView - android:id="@+id/google_button" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:foreground="?clickableBackground" - android:background="@drawable/button_transparent_with_border" - android:drawableStart="@drawable/ic_google" - android:drawableLeft="@drawable/ic_google" - android:paddingLeft="@dimen/margin_half_plus" - android:paddingStart="@dimen/margin_half_plus" - android:paddingRight="@dimen/margin_base_plus" + android:orientation="vertical" + android:paddingStart="@dimen/margin_base_plus" + android:paddingLeft="@dimen/margin_base_plus" android:paddingEnd="@dimen/margin_base_plus" - android:textAppearance="@style/MwmTextAppearance.Body3.Primary" - android:fontFamily="@string/robotoMedium" - android:text="@string/google" - android:gravity="center" - android:minHeight="@dimen/height_primary_button" - android:layout_marginTop="@dimen/margin_base" - tools:targetApi="jelly_bean"/> - <com.facebook.login.widget.LoginButton - xmlns:fb="http://schemas.android.com/apk/res-auto" - android:id="@+id/facebook_button" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="@dimen/height_primary_button" - android:foreground="?clickableBackground" - android:layout_marginTop="@dimen/margin_base" - android:textSize="@dimen/text_size_body_3" - fb:com_facebook_login_text="@string/facebook" - android:paddingStart="@dimen/margin_base" - android:paddingLeft="@dimen/margin_base" - android:paddingEnd="@dimen/margin_base" - android:paddingRight="@dimen/margin_base" - android:paddingTop="@dimen/margin_half_plus" - android:paddingBottom="@dimen/margin_half_plus" - android:layout_gravity="center_horizontal"/> - <TextView - android:id="@+id/phone_button" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="@dimen/height_primary_button" - android:layout_marginTop="@dimen/margin_base" - android:textAppearance="@style/MwmTextAppearance.Button" - android:textColor="?accentButtonTextColor" - android:background="?accentButtonBackground" - android:foreground="?clickableBackground" - android:gravity="center" - android:text="@string/phone_number"/> -</LinearLayout> + android:paddingRight="@dimen/margin_base_plus" + android:paddingBottom="@dimen/auth_dialog_padding_bottom" + android:paddingTop="@dimen/auth_dialog_padding_top"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="@style/MwmTextAppearance.Headline" + android:text="@string/profile_authorization_title"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/margin_half_plus_eight" + android:textAppearance="@style/MwmTextAppearance.Body3" + android:text="@string/profile_authorization_message"/> + <TextView + android:id="@+id/google_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:foreground="?clickableBackground" + android:background="@drawable/button_transparent_with_border" + android:drawableStart="@drawable/ic_google" + android:drawableLeft="@drawable/ic_google" + android:paddingLeft="@dimen/margin_half_plus" + android:paddingStart="@dimen/margin_half_plus" + android:paddingRight="@dimen/margin_base_plus" + android:paddingEnd="@dimen/margin_base_plus" + android:textAppearance="@style/MwmTextAppearance.Body3.Primary" + android:fontFamily="@string/robotoMedium" + android:text="@string/google" + android:gravity="center" + android:minHeight="@dimen/height_primary_button" + android:layout_marginTop="@dimen/margin_base" + tools:targetApi="jelly_bean"/> + <com.facebook.login.widget.LoginButton + xmlns:fb="http://schemas.android.com/apk/res-auto" + android:id="@+id/facebook_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="@dimen/height_primary_button" + android:foreground="?clickableBackground" + android:layout_marginTop="@dimen/margin_base" + android:textSize="@dimen/text_size_body_3" + fb:com_facebook_login_text="@string/facebook" + android:paddingStart="@dimen/margin_base" + android:paddingLeft="@dimen/margin_base" + android:paddingEnd="@dimen/margin_base" + android:paddingRight="@dimen/margin_base" + android:paddingTop="@dimen/margin_half_plus" + android:paddingBottom="@dimen/margin_half_plus" + android:layout_gravity="center_horizontal"/> + <TextView + android:id="@+id/phone_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="@dimen/height_primary_button" + android:layout_marginTop="@dimen/margin_base" + android:textAppearance="@style/MwmTextAppearance.Button" + android:textColor="?accentButtonTextColor" + android:background="?accentButtonBackground" + android:foreground="?clickableBackground" + android:gravity="center" + android:text="@string/phone_number"/> + </LinearLayout> +</ScrollView> |