android iinput edit text password icon change

Solutions on MaxInterview for android iinput edit text password icon change by the best coders in the world

showing results for - "android iinput edit text password icon change"
Vincenzo
10 Feb 2017
1<?xml version="1.0" encoding="utf-8"?>
2<selector xmlns:android="http://schemas.android.com/apk/res/android">
3<item android:drawable="@drawable/ic_visibility_black_18dp" android:state_checked="true"/>
4<item android:drawable="@drawable/ic_visibility_off_black_18dp"/>
5</selector>
6
7<android.support.design.widget.TextInputLayout
8    android:id="@+id/layoutTextInput"
9    app:passwordToggleEnabled="true"
10    app:passwordToggleDrawable="@drawable/show_password_selector"
11    android:textColorHint="@color/gray">
12    <android.support.v7.widget.AppCompatEditText
13        android:id="@+id/editTextValue"
14        android:imeOptions="actionNext"
15        android:layout_marginBottom="8dp"
16        android:inputType="text"/>
17</android.support.design.widget.TextInputLayout>