Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafakob/FloatingEditText
[Android Library] TextInputLayout and TextInputEditText merged into one class
https://github.com/rafakob/FloatingEditText
Last synced: 3 months ago
JSON representation
[Android Library] TextInputLayout and TextInputEditText merged into one class
- Host: GitHub
- URL: https://github.com/rafakob/FloatingEditText
- Owner: rafakob
- License: apache-2.0
- Created: 2017-04-23T11:45:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T18:23:34.000Z (over 7 years ago)
- Last Synced: 2024-06-16T06:33:31.384Z (5 months ago)
- Language: Java
- Size: 136 KB
- Stars: 80
- Watchers: 4
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - FloatingEditText - TextInputLayout和TextInputEditText合并成一个类 (EditText)
README
# FloatingEditText
TextInputLayout and TextInputEditText merged into one class. Just for convenience and for removing some boilerplate code.
## Description
Instead of writing this:
```xml
```
You can write this:
```xml```
| Method | Description |
|---|---|
| `String getText()` | Get text from `EditText` |
| `void setText(String text)` | Set text to `EditText` |
| `void setError(@StringRes int errorRes)` | Set error using string resource |
| `void setHint(@StringRes int hintRes)` | Set hint using string resource |
| `void addTextChangedListener(TextWatcher textWatcher)` | Add `TextWatcher` |
| `void removeTextChangedListener(TextWatcher textWatcher)` | Remove `TextWatcher` |
| `EditText getEditText()` | Return the `EditText` which is annotated with `@NonNull` |## Install
[ ![Download](https://api.bintray.com/packages/rafakob/maven/FloatingEditText/images/download.svg) ](https://bintray.com/rafakob/maven/FloatingEditText/_latestVersion)```java
compile 'com.rafakob:floatingedittext:latest_version'
```