{"id":13644547,"url":"https://github.com/rafakob/FloatingEditText","last_synced_at":"2025-04-21T10:33:30.016Z","repository":{"id":92708264,"uuid":"89137756","full_name":"rafakob/FloatingEditText","owner":"rafakob","description":"[Android Library] TextInputLayout and TextInputEditText merged into one class","archived":false,"fork":false,"pushed_at":"2017-04-23T18:23:34.000Z","size":139,"stargazers_count":80,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T17:41:55.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafakob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-23T11:45:37.000Z","updated_at":"2024-02-05T08:29:42.000Z","dependencies_parsed_at":"2023-04-14T04:31:28.223Z","dependency_job_id":null,"html_url":"https://github.com/rafakob/FloatingEditText","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafakob%2FFloatingEditText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafakob%2FFloatingEditText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafakob%2FFloatingEditText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafakob%2FFloatingEditText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafakob","download_url":"https://codeload.github.com/rafakob/FloatingEditText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040489,"owners_count":21365115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:02:07.006Z","updated_at":"2025-04-21T10:33:29.556Z","avatar_url":"https://github.com/rafakob.png","language":"Java","readme":"# FloatingEditText\n\nTextInputLayout and TextInputEditText merged into one class. Just for convenience and for removing some boilerplate code.\n\n## Description\nInstead of writing this:\n```xml\n\u003candroid.support.design.widget.TextInputLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_margin=\"16dp\"\n    android:hint=\"Example\"\n    app:hintAnimationEnabled=\"true\"\n    app:hintTextAppearance=\"@style/HintTextAppearance\"\u003e\n\n    \u003candroid.support.design.widget.TextInputEditText\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:fontFamily=\"sans-serif-light\"\n        android:imeOptions=\"actionDone\"\n        android:inputType=\"textCapWords|textEmailAddress\"\n        android:maxLength=\"100\"\n        android:maxLines=\"2\"\n        android:textAllCaps=\"true\"\n        android:textColor=\"?colorPrimary\"\n        android:textSize=\"24sp\"\n        android:textStyle=\"italic\"/\u003e\n\n\u003c/android.support.design.widget.TextInputLayout\u003e\n```\n\nYou can write this:\n```xml\n\u003ccom.rafakob.floatingedittext.FloatingEditText\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_margin=\"16dp\"\n    android:fontFamily=\"sans-serif-light\"\n    android:hint=\"Example\"\n    android:imeOptions=\"actionDone\"\n    android:inputType=\"textCapWords|textEmailAddress\"\n    android:maxLength=\"100\"\n    android:maxLines=\"2\"\n    android:textAllCaps=\"true\"\n    android:textColor=\"?colorPrimary\"\n    android:textSize=\"24sp\"\n    android:textStyle=\"italic\"\n    app:hintAnimationEnabled=\"true\"\n    app:hintTextAppearance=\"@style/HintTextAppearance\"/\u003e\n```\n\n| Method | Description |\n|---|---|\n| `String getText()` | Get text from `EditText` |\n| `void setText(String text)` | Set text to `EditText` |\n| `void setError(@StringRes int errorRes)` | Set error using string resource |\n| `void setHint(@StringRes int hintRes)` | Set hint using string resource |\n| `void addTextChangedListener(TextWatcher textWatcher)` | Add `TextWatcher` |\n| `void removeTextChangedListener(TextWatcher textWatcher)` | Remove `TextWatcher` |\n| `EditText getEditText()` | Return the `EditText` which is annotated with `@NonNull` |\n\n## Install\n[ ![Download](https://api.bintray.com/packages/rafakob/maven/FloatingEditText/images/download.svg) ](https://bintray.com/rafakob/maven/FloatingEditText/_latestVersion)\n\n```java\ncompile 'com.rafakob:floatingedittext:latest_version'\n```\n","funding_links":[],"categories":["EditText"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafakob%2FFloatingEditText","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafakob%2FFloatingEditText","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafakob%2FFloatingEditText/lists"}