forked from organicmaps/organicmaps
[andorid] Added scrollview to auth dialog
This commit is contained in:
parent
c2497f5565
commit
135e5b6284
1 changed files with 70 additions and 66 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue