项目作者: anshulagarwal06

项目描述 :
Custom EditTextView to show/hide password with icon
高级语言: Java
项目地址: git://github.com/anshulagarwal06/PasswordEditText.git
创建时间: 2016-02-11T15:21:14Z
项目社区:https://github.com/anshulagarwal06/PasswordEditText

开源协议:MIT License

下载


PasswordEditText

Custom EditTextView to show/hide password with customizable icon.

How to use

  1. <in.anshul.libray.PasswordEditText
  2. android:layout_width="match_parent"
  3. android:layout_height="wrap_content"
  4. app:hide_drawable="@drawable/hide_password"
  5. app:password_visible="true"
  6. android:hint="Confirm password"
  7. app:show_drawable="@drawable/show_password" ></in.anshul.libray.PasswordEditText>

Instead of drawable you can also use Text

  1. <in.anshul.libray.PasswordEditText
  2. ...
  3. app:show_as_text="true"
  4. app:show_text="@string/show_text"
  5. app:hide_text="@string/hide_text"></in.anshul.libray.PasswordEditText>

Customise

Defualt Password Visiblity can be set using attr

  • app:password_visible="true"

Download

Include jitpack.io inside of root project build.gradle:

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url "https://jitpack.io" }
  5. }
  6. }

After that you can easily include the library in your app build.gradle:

  1. dependencies {
  2. compile 'com.github.anshulagarwal06:PasswordEditText:v1.0'
  3. }

That’s it build your project.