Skip to content

Commit 340035c

Browse files
Cinfwat Dogaksamtstern
authored andcommitted
Update styles.xml (#834)
1 parent 804f4e7 commit 340035c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

auth/src/main/res/layout/fui_register_email_layout.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,17 @@
3535

3636
<android.support.design.widget.TextInputLayout
3737
android:id="@+id/name_layout"
38-
style="@style/Widget.Design.TextInputLayout"
38+
style="@style/FirebaseUI.TextInputLayout.NameField"
3939
android:layout_width="match_parent"
4040
android:layout_height="wrap_content"
4141
android:paddingTop="@dimen/fui_field_padding_vert"
42-
android:hint="@string/fui_name_hint"
4342
app:errorEnabled="true">
4443

4544
<android.support.design.widget.TextInputEditText
4645
android:id="@+id/name"
46+
style="@style/FirebaseUI.TextInputEditText.NameField"
4747
android:layout_width="match_parent"
48-
android:layout_height="wrap_content"
49-
android:inputType="textCapWords" />
48+
android:layout_height="wrap_content" />
5049

5150
</android.support.design.widget.TextInputLayout>
5251

auth/src/main/res/values/styles.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
<item name="android:inputType">textEmailAddress</item>
126126
</style>
127127

128+
<style name="FirebaseUI.TextInputEditText.NameField">
129+
<item name="android:inputType">textCapWords</item>
130+
</style>
131+
128132
<style name="FirebaseUI.TextInputEditText.PhoneField">
129133
<item name="android:hint">@string/fui_phone_hint</item>
130134
<item name="android:inputType">phone</item>
@@ -143,6 +147,10 @@
143147
<item name="android:hint">@string/fui_email_hint</item>
144148
</style>
145149

150+
<style name="FirebaseUI.TextInputLayout.NameField">
151+
<item name="android:hint">@string/fui_name_hint</item>
152+
</style>
153+
146154
<style name="FirebaseUI.TextInputLayout.PasswordField">
147155
<item name="android:hint">@string/fui_password_hint</item>
148156
</style>

0 commit comments

Comments
 (0)