Skip to content

kleiberjp/FloatingHintEditText

 
 

Repository files navigation

FloatingHintEditText

An EditText whose hint is always visible. When the text is non-empty, the hint is shrunk and positioned above the text.

Quick video demo here.

This implementation extends EditText directly, so you can substitute FloatingHintEditText for your existing EditTexts and things should Just Work (TM). No container layouts required.

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Credits

Original concept: http://mattdsmith.com/float-label-pattern/

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%