BetterTextInputLayout

Additional

Language
Java
Version
2.0.0 (Feb 18, 2019)
Created
Jun 4, 2017
Updated
Feb 18, 2019 (Retired)
Owner
Marcin Orlowski (MarcinOrlowski)
Contributor
Marcin Orlowski (MarcinOrlowski)
1
Activity
Badge
Generate
Download
Source code

BetterTextInputLayout

BetterTextInputLayout is Android's Jetpack library's TextInputLayout subclass providing following extensions:

  • adds methods to manipulate password visibility from code,
  • comes with passwordToggleEnabled enabled by default.

Methods

  • showPassword()
  • hidePassword()
  • togglePassword()

Names should be pretty self-explanatory :) See demo app for usage example though.

Installation

Edit your master gradle.build file and add maven { url 'https://jitpack.io' } to your current repositories block content (if you use other jitpack hosted libraries, then this step can be skipped):

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
    }
}

Next, edit your module's build.gradle and the following dependency:

compile 'com.github.MarcinOrlowski:bettertextinputlayout:<VERSION>'

For recent value of <VERSION> consult library releases or jitpack badge:

Author

  • Marcin Orlowski <mail(#)marcinOrlowski.com>