-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
Description: To display my custom icon correctly on the right side (app:endIconDrawable="@drawable/ic_drop_down") - it is necessary to specify app:endIconMode="custom". However, adding this parameter entails a situation where the text from android:hint= is not shown for some reason.
Source code:
<com.google.android.material.textfield.TextInputLayout
android:layout_width="74dp"
android:layout_height="wrap_content"
app:endIconDrawable="@drawable/ic_drop_down"
app:endIconMode="custom"
app:endIconTint="@color/grey"
app:expandedHintEnabled="false"
app:hintAnimationEnabled="false"
app:startIconDrawable="@drawable/ic_flag_loading"
app:startIconTint="@null">
<com.google.android.material.textfield.TextInputEditText
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:hint="Country"
android:inputType="none" />
</com.google.android.material.textfield.TextInputLayout>
Android API version: 32
Material Library version: 1.4.0
Device: Redmi 9 (12.0.2) + emulator
