Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Floating Label Edit Text for Android

Float label for Android

For more info, see this blog post.

Salient features

  1. Simple and clean library (open up the source to see for yourself!)
  2. Ability to stretch EditText width to full/half screen
  3. Hides input for password fields too, but shows labels
  4. Customizable attributes for textSize, hint color (focused/unfocused)
  5. Custom Espresso test matcher for your testing needs!
  6. Maven repo (coming soon...)

Goals for this project

Having goals for a project, keep a quality check and help with learning. Since I intended this to be a community project, the goals are aligned, keeping that fact in mind. The goals for this project are as follows:

  1. Code should be ridiculously readable. Must read as fluently as pseudocode.
  2. Code must be tested
  3. Git commits should be clean and legible. Try to follow AngularJs commit types.
  4. Super DRY code! You cannot have two sets of lines repeating within the same file.


1. Overriding the onFocusChangeListener for the EditText

If you're setting an onFocusChange listener directly on the EditText, you might lose the color changes on the hint when changing focus. You probably want to add a TextChangeListener instead.



  1. Matt D.Smith for coming up with the concept
  2. Wedding Party for being an amazing organization and encourgaing such indulgences


  1. Kaushik Gopal
  2. Reza - Gravity support