Skip to content

Commit 5490994

Browse files
authored
Merge pull request #523 from samtstern/fix-button-placement
Undo layout changes from #515
2 parents a4e4ef0 + 23bb11c commit 5490994

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed
Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
34
android:layout_width="match_parent"
4-
android:layout_height="match_parent">
5+
android:layout_height="match_parent"
6+
android:clipChildren="false"
7+
android:clipToPadding="false"
8+
android:gravity="center|bottom"
9+
android:orientation="vertical">
510

611
<LinearLayout
712
android:layout_width="match_parent"
8-
android:layout_height="wrap_content"
9-
android:clipChildren="false"
10-
android:clipToPadding="false"
11-
android:gravity="center|bottom"
12-
android:orientation="vertical">
13+
android:layout_height="match_parent"
14+
android:layout_weight="1.0"
15+
android:gravity="center">
1316

1417
<ImageView
1518
android:id="@+id/logo"
1619
style="@style/FirebaseUI.AuthMethodPicker.Logo"
17-
android:layout_marginBottom="64dp"
18-
android:layout_marginTop="48dp"
19-
android:contentDescription="@string/accessibility_logo" />
20+
android:contentDescription="@string/accessibility_logo"/>
2021

21-
<LinearLayout
22-
android:id="@+id/btn_holder"
23-
style="@style/FirebaseUI.AuthMethodPicker.ButtonHolder">
22+
</LinearLayout>
2423

25-
<Button
26-
android:id="@+id/email_provider"
27-
style="@style/FirebaseUI.Button.AccountChooser.EmailButton"
28-
android:text="@string/sign_in_with_email" />
24+
<LinearLayout
25+
android:id="@+id/btn_holder"
26+
android:layout_weight="0"
27+
style="@style/FirebaseUI.AuthMethodPicker.ButtonHolder">
2928

30-
</LinearLayout>
29+
<Button
30+
android:id="@+id/email_provider"
31+
style="@style/FirebaseUI.Button.AccountChooser.EmailButton"
32+
android:text="@string/sign_in_with_email"/>
3133

3234
</LinearLayout>
33-
</ScrollView>
35+
36+
</LinearLayout>

0 commit comments

Comments
 (0)