Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weddingparty/AndroidFloatLabel
Float Label Edit Texts for Android
https://github.com/weddingparty/AndroidFloatLabel
Last synced: about 6 hours ago
JSON representation
Float Label Edit Texts for Android
- Host: GitHub
- URL: https://github.com/weddingparty/AndroidFloatLabel
- Owner: weddingparty
- License: apache-2.0
- Created: 2013-12-29T00:29:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-31T08:25:05.000Z (over 10 years ago)
- Last Synced: 2024-04-13T04:59:51.732Z (7 months ago)
- Language: Java
- Size: 1.05 MB
- Stars: 425
- Watchers: 19
- Forks: 49
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - https://github.com/weddingparty/AndroidFloatLabel
- awesome-android-ui - https://github.com/weddingparty/AndroidFloatLabel
README
# Floating Label Edit Text for Android
![Float label for Android](http://nerds.weddingpartyapp.com/images/posts/float-label-android-cropped.gif)
For more info, see [this blog post](http://nerds.weddingpartyapp.com/tech/2013/12/25/float-label-pattern-for-android/).
# 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](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#type).
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](http://mattdsmith.com/float-label-pattern/)
2. [Wedding Party for being an amazing organization and encourgaing such indulgences](https://www.weddingpartyapp.com)## Developers
1. [Kaushik Gopal](http://kaush.co)
2. [Reza](http://www.moallemi.ir) - Gravity support