diff --git a/library/ui-styles/src/debug/res/layout/activity_debug_text_view.xml b/library/ui-styles/src/debug/res/layout/activity_debug_text_view.xml index 0c16f889ec..6ca83c5a8a 100644 --- a/library/ui-styles/src/debug/res/layout/activity_debug_text_view.xml +++ b/library/ui-styles/src/debug/res/layout/activity_debug_text_view.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" + android:padding="16dp" tools:ignore="HardcodedText"> <TextView @@ -65,4 +66,19 @@ android:layout_height="wrap_content" android:text="Default (TextAppearance.Vector.Body)\nline 2" /> + <com.google.android.material.textfield.TextInputLayout + style="@style/Widget.Vector.TextInputLayout.Password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:hint="Password"> + + <com.google.android.material.textfield.TextInputEditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textPassword" + android:maxLines="1" /> + + </com.google.android.material.textfield.TextInputLayout> + </LinearLayout> \ No newline at end of file diff --git a/library/ui-styles/src/main/res/values/styles_edit_text.xml b/library/ui-styles/src/main/res/values/styles_edit_text.xml index d23c11c96c..cc1041a2ce 100644 --- a/library/ui-styles/src/main/res/values/styles_edit_text.xml +++ b/library/ui-styles/src/main/res/values/styles_edit_text.xml @@ -4,6 +4,11 @@ <!-- Default style for TextInputLayout --> <style name="Widget.Vector.TextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox" /> + <style name="Widget.Vector.TextInputLayout.Password"> + <item name="endIconMode">password_toggle</item> + <item name="endIconTint">?vctr_content_secondary</item> + </style> + <style name="Widget.Vector.EditText.Composer" parent="Widget.AppCompat.EditText"> <item name="android:background">@android:color/transparent</item> <item name="android:inputType">textCapSentences|textMultiLine</item>