Commit 4db0accc authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Add fontFamily to avoid diferences between editText with...

Add fontFamily to avoid diferences between editText with inputType=TextPassword and other inputType values.

From the doc: "By default, when you set an EditText element to use the "textPassword" input type, the font family is set to monospace, so you should change its font family to "sans-serif" so that both text fields use a matching font style".
Source: https://developer.android.com/guide/topics/ui/dialogs.html
parent 8c49e8dc
......@@ -11,6 +11,7 @@
<item name="android:maxLines">1</item>
<item name="android:drawablePadding">@dimen/edit_text_drawable_padding</item>
<item name="android:drawableTint">@color/colorDrawableTintGrey</item>
<item name="android:fontFamily">sans-serif</item>
<item name="android:background">@drawable/style_edit_text</item>
</style>
......
......@@ -32,6 +32,7 @@
<item name="android:paddingEnd">@dimen/edit_text_margin</item>
<item name="android:maxLines">1</item>
<item name="android:drawablePadding">@dimen/edit_text_drawable_padding</item>
<item name="android:fontFamily">sans-serif</item>
<item name="android:background">@drawable/style_edit_text</item>
</style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment