BetterTextInputLayout
MarcinOrlowski
22
Visit GitHub Repo
Widgets

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: Release

Author

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

Become Pro in Android by watching videos

OUR LEARNERS WORK AT