Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android iinput edit text password icon change

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_visibility_black_18dp" android:state_checked="true"/>
<item android:drawable="@drawable/ic_visibility_off_black_18dp"/>
</selector>

<android.support.design.widget.TextInputLayout
    android:id="@+id/layoutTextInput"
    app:passwordToggleEnabled="true"
    app:passwordToggleDrawable="@drawable/show_password_selector"
    android:textColorHint="@color/gray">
    <android.support.v7.widget.AppCompatEditText
        android:id="@+id/editTextValue"
        android:imeOptions="actionNext"
        android:layout_marginBottom="8dp"
        android:inputType="text"/>
</android.support.design.widget.TextInputLayout>
Comment

PREVIOUS NEXT
Code Example
Java :: java swing set icon to JFrame 
Java :: how to center a window in java 
Java :: how to operate on values from different classes in java 
Java :: java print type of variable 
Java :: java square root 
Java :: how to print in a new line in java using print 
Java :: hello world program in java 
Java :: max and min array number in java 
Java :: Program type already present: android.support.v4.app.INotificationSideChannel 
Java :: initialize a new class java 
Java :: java program for multiplication table 
Java :: arraylist add new element to end 
Java :: how to check palindrome in java 
Java :: java object to int 
Java :: java print stack 
Java :: how to scan as a letter in java 
Java :: @crossorigin spring allow all 
Java :: maven artifact 
Java :: dictionary in java 
Java :: java first character string number 
Java :: declaration and definition of array in java 
Java :: java if statement 
Java :: creating a menu in java 
Java :: sublist java 
Java :: java string.format system.currenttimemillis 
Java :: java filter array by even numbers 
Java :: java append to file 
Java :: node in java 
Java :: remove duplicates from string in java 
Java :: set matrix zeros programming creek 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =