{"id":13798269,"url":"https://github.com/Camerash/ToggleEditTextView","last_synced_at":"2025-05-13T05:31:52.912Z","repository":{"id":132374849,"uuid":"131097234","full_name":"Camerash/ToggleEditTextView","owner":"Camerash","description":"Easily switch between EditText and TextView seamlessly.","archived":false,"fork":false,"pushed_at":"2018-06-17T14:17:35.000Z","size":744,"stargazers_count":158,"open_issues_count":1,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-18T13:44:46.992Z","etag":null,"topics":["android","edittext","edittextview","textview","ui"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Camerash.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":"2018-04-26T03:52:46.000Z","updated_at":"2024-06-04T13:48:56.000Z","dependencies_parsed_at":"2024-01-15T11:11:01.290Z","dependency_job_id":null,"html_url":"https://github.com/Camerash/ToggleEditTextView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Camerash%2FToggleEditTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Camerash%2FToggleEditTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Camerash%2FToggleEditTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Camerash%2FToggleEditTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Camerash","download_url":"https://codeload.github.com/Camerash/ToggleEditTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253883119,"owners_count":21978611,"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":["android","edittext","edittextview","textview","ui"],"created_at":"2024-08-04T00:00:41.163Z","updated_at":"2025-05-13T05:31:51.728Z","avatar_url":"https://github.com/Camerash.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# ToggleEditTextView :pencil:\nEasily switch between EditText and TextView seamlessly.\n\n![Travis CI build status](https://travis-ci.org/Camerash/ToggleEditTextView.svg?branch=master)\n\n![ToggleEditTextView](/assets/preview.gif)\n\n## Grab via Gradle :coffee:\n```groovy\ndependencies {\n    implementation 'com.camerash:toggleedittextview:0.1.1'\n}\n```\n\n## Usage :computer:\n\n### ToggleEditTextView\nIn your layout:\n```xml\n\u003ccom.camerash.toggleedittextview.ToggleEditTextView\n        android:id=\"@+id/tetv\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:hint=\"@string/name\"\n        android:maxLines=\"1\"\n        app:tetv_textViewColor=\"@color/colorPrimary\"\n        app:tetv_editTextViewColor=\"@color/colorPrimaryDark\"\n        app:tetv_editTextBottomLineColor=\"@color/colorAccent\" /\u003e\n```\nAvailable properties:\n* `android:textSize`\n* `android:hint`\n* `android:inputType`\n* `android:minLines`\n* `android:maxLines`\n* `app:tetv_editing` - Initial state of ToggleEditTextView\n* `app:tetv_textViewColor` - Text color of TextView\n* `app:tetv_editTextViewColor` - Text color of EditText\n* `app:tetv_editTextBottomLineColor` - Bottom line's color of EditText\n\nAvailable methods:\n* `set/getEditing()` - Control editing state of ToggleEditTextView\n* `set/getText()` - Set/Get text of ToggleEditTextView\n* `set/getHint()` - Set/Get hint of ToggleEditTextView\n* `set/getTextSize()` - Set/Get text size of ToggleEditTextView\n* `set/getTextViewColor()` - Set/Get color of text of the TextView in ToggleEditTextView\n* `set/getEditTextColor()` - Set/Get color of text of the EditText in ToggleEditTextView\n* `setEditTextBottomLineColor(Int)` - Set color of bottom line of the EditText in ToggleEditTextView\n* `set/getEditTextEnabled()` - Set/Get state of the EditText in ToggleEditTextView\n* `set/getInputType()` - Set/Get inputType of the EditText in ToggleEditTextView\n* `setMinLines()` - Set minLines of ToggleEditTextView\n* `setMaxLines()` - Set maxLines of ToggleEditTextView\n\n---\n\n### ToggleEditButton - Button controller of ToggleEditTextViews\n\nIn your layout:\n```xml\n\u003ccom.camerash.toggleedittextview.ToggleEditButton\n        android:id=\"@+id/toggleEditButton\"\n        android:layout_width=\"36dp\"\n        android:layout_height=\"36dp\"\n        app:teb_animationOffset=\"100\"\n        app:teb_edit=\"false\"\n        app:teb_tint=\"@color/colorAccent\" /\u003e\n```\nAvailable properties:\n* `app:teb_edit` - Initial state of ToggleEditButton (Overrides the state of the controlling ToggleEditTextViews)\n* `app:teb_tint` - Tint color of the icon\n* `app:teb_animationOffset` - Offset duration of fading animation between each ToggleEditTextView controlled by the ToggleEditButton\n\nAvailable methods:\n* `bind(vararg ToggleEditTextView)` - Bind multiple ToggleEditTextViews to the button\n* `unbind(ToggleEditTextView)` - Unbind ToggleEditTextView from the button\n* `unbindAll()` - Unbind all ToggleEditTextViews from the button\n* `set/getAnimationOffset()` - Set/Get the Offset duration of fading animation between each ToggleEditTextView controlled by the ToggleEditButton\n* `setOnClickListener(OnClickListener)` - Works the same as a good o' button\n\n## Common usage :bell:\nKotlin:\n```kotlin\nval tetv1 = findViewById\u003cToggleEditTextView\u003e(R.id.tetv1)\nval tetv2 = findViewById\u003cToggleEditTextView\u003e(R.id.tetv2)\nval teb = findViewById\u003cToggleEditButton\u003e(R.id.teb)\nteb.bind(tetv1, tetv2)\n```\n\nJava:\n```java\nToggleEditTextView tetv1 = findViewById(R.id.tetv1);\nToggleEditTextView tetv2 = findViewById(R.id.tetv2);\nToggleEditButton teb = findViewById(R.id.teb);\nteb.bind(tetv1, tetv2);\n```\n\n## Sample :closed_book:\nSample app is under `/sample` directory :tada:\n\n## License :page_with_curl:\n```\nMIT License\n\nCopyright (c) 2018 Camerash\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCamerash%2FToggleEditTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCamerash%2FToggleEditTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCamerash%2FToggleEditTextView/lists"}