[android] Move hint property to TextInputLayout

Signed-off-by: jeanbaptisteC <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-08-22 18:03:44 +02:00
committed by Konstantin Pastbin
parent 661445a053
commit ca720d7712
4 changed files with 7 additions and 7 deletions

View File

@@ -20,6 +20,7 @@
style="?fontBody1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/name"
android:textColorHint="?android:textColorSecondary"
app:endIconMode="custom"
app:endIconCheckable="false"
@@ -31,7 +32,6 @@
style="@style/MwmWidget.Editor.CustomTextInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/name"
android:padding="@dimen/margin_half_double_plus"
android:textAlignment="viewStart"
android:inputType="textCapSentences"
@@ -94,6 +94,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/rl__bookmark_set"
android:layout_margin="@dimen/margin_half"
android:hint="@string/placepage_personal_notes_hint"
android:textColorHint="?android:textColorSecondary">
<com.google.android.material.textfield.TextInputEditText
@@ -102,7 +103,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/margin_half_double_plus"
android:hint="@string/placepage_personal_notes_hint"
android:inputType="textMultiLine"
android:textAlignment="viewStart" />
</com.google.android.material.textfield.TextInputLayout>

View File

@@ -33,6 +33,7 @@
android:id="@+id/edit_list_name_input"
app:hintAnimationEnabled="false"
style="@style/MwmWidget.Editor.CustomTextInput"
android:hint="@string/list"
android:textColorHint="?android:textColorSecondary"
app:endIconMode="custom"
app:endIconDrawable="@drawable/ic_clear_rounded"
@@ -40,7 +41,6 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_list_name_view"
style="@style/MwmWidget.Editor.CustomTextInput"
android:hint="@string/list"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>

View File

@@ -66,18 +66,19 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/osm_username_container"
style="@style/MwmWidget.Editor.CustomTextInput"
android:hint="@string/email_or_username"
android:textColorHint="?android:textColorSecondary"
app:endIconMode="custom">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/osm_username"
style="@style/MwmWidget.Editor.FieldLayout.EditText"
android:autofillHints="emailAddress"
android:hint="@string/email_or_username" />
android:autofillHints="emailAddress" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/osm_password_container"
style="@style/MwmWidget.Editor.CustomTextInput"
android:layout_marginTop="@dimen/margin_base"
android:hint="@string/password"
android:textColorHint="?android:textColorSecondary"
app:endIconMode="password_toggle"
app:endIconTint="?android:textColorSecondary">
@@ -85,7 +86,6 @@
android:id="@+id/osm_password"
style="@style/MwmWidget.Editor.FieldLayout.EditText"
android:autofillHints="password"
android:hint="@string/password"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
<FrameLayout

View File

@@ -14,11 +14,11 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/editor_edit_place_name_hint"
android:textColorHint="?android:textColorSecondary">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/input"
style="@style/MwmWidget.Editor.FieldLayout.EditText"
android:hint="@string/editor_edit_place_name_hint"
android:inputType="textCapSentences"
android:padding="@dimen/margin_base"
android:singleLine="true"