Popularity
4.6
Growing
Activity
0.0
Stable
433
21
52

Code Quality Rank: L5
Programming language: Java

AndroidFloatLabel alternatives and similar packages

Based on the "TextView/EditText Widget" category

Do you think we are missing an alternative of AndroidFloatLabel or a related project?

Add another 'TextView/EditText Widget' Package

README

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.

Gotchas

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.

Contributors:

Credit:

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

Developers

  1. Kaushik Gopal
  2. Reza - Gravity support