File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
java/com/firebase/ui/auth/util/ui Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ package com .firebase .ui .auth .util .ui ;
2
+
3
+ import android .content .Context ;
4
+ import android .support .annotation .RestrictTo ;
5
+ import android .support .design .widget .TextInputLayout ;
6
+ import android .util .AttributeSet ;
7
+ import android .widget .EditText ;
8
+
9
+ @ RestrictTo (RestrictTo .Scope .LIBRARY_GROUP )
10
+ public class BaselineTextInputLayout extends TextInputLayout {
11
+ public BaselineTextInputLayout (Context context ) {
12
+ super (context );
13
+ }
14
+
15
+ public BaselineTextInputLayout (Context context , AttributeSet attrs ) {
16
+ super (context , attrs );
17
+ }
18
+
19
+ public BaselineTextInputLayout (Context context , AttributeSet attrs , int defStyleAttr ) {
20
+ super (context , attrs , defStyleAttr );
21
+ }
22
+
23
+ @ Override
24
+ public int getBaseline () {
25
+ EditText text = getEditText ();
26
+ return text == null ? super .getBaseline () : text .getPaddingTop () + text .getBaseline ();
27
+ }
28
+ }
Original file line number Diff line number Diff line change 25
25
app : layout_constraintStart_toStartOf =" parent"
26
26
app : layout_constraintBaseline_toBaselineOf =" @+id/phone_layout" />
27
27
28
- <android .support.design.widget.TextInputLayout
28
+ <com .firebase.ui.auth.util.ui.BaselineTextInputLayout
29
29
android : id =" @+id/phone_layout"
30
30
style =" @style/FirebaseUI.TextInputLayout.PhoneField"
31
31
android : layout_width =" 0dp"
39
39
style =" @style/FirebaseUI.TextInputEditText.PhoneField"
40
40
android : imeOptions =" actionDone" />
41
41
42
- </android .support.design.widget.TextInputLayout >
42
+ </com .firebase.ui.auth.util.ui.BaselineTextInputLayout >
43
43
44
44
<Button
45
45
android : id =" @+id/send_code"
You can’t perform that action at this time.
0 commit comments