Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafakob/FloatingEditText

[Android Library] TextInputLayout and TextInputEditText merged into one class
https://github.com/rafakob/FloatingEditText

Last synced: about 1 month ago
JSON representation

[Android Library] TextInputLayout and TextInputEditText merged into one class

Awesome Lists containing this project

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'
```