{"id":19389391,"url":"https://github.com/mindorksopensource/editdrawabletext","last_synced_at":"2025-04-09T22:13:52.772Z","repository":{"id":87590200,"uuid":"139676772","full_name":"MindorksOpenSource/EditDrawableText","owner":"MindorksOpenSource","description":"EditDrawableText - An EditText which makes your Drawable Clickable","archived":false,"fork":false,"pushed_at":"2019-09-02T20:39:27.000Z","size":681,"stargazers_count":302,"open_issues_count":2,"forks_count":30,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-09T22:13:49.091Z","etag":null,"topics":["android","android-development","android-library","drawable","edittext","edittextview","kotlin","kotlin-android","kotlin-language","kotlin-library","mindorks"],"latest_commit_sha":null,"homepage":"https://github.com/MindorksOpenSource/EditDrawableText","language":"Kotlin","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/MindorksOpenSource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-04T06:16:05.000Z","updated_at":"2025-02-07T20:47:09.000Z","dependencies_parsed_at":"2024-01-07T22:00:23.936Z","dependency_job_id":null,"html_url":"https://github.com/MindorksOpenSource/EditDrawableText","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":0.303030303030303,"last_synced_commit":"1c0a3a6ad5a919d1d46a8bc500fbf981e846d5df"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FEditDrawableText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FEditDrawableText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FEditDrawableText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FEditDrawableText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MindorksOpenSource","download_url":"https://codeload.github.com/MindorksOpenSource/EditDrawableText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119291,"owners_count":21050755,"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","android-development","android-library","drawable","edittext","edittextview","kotlin","kotlin-android","kotlin-language","kotlin-library","mindorks"],"created_at":"2024-11-10T10:16:08.624Z","updated_at":"2025-04-09T22:13:52.749Z","avatar_url":"https://github.com/MindorksOpenSource.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n\u003cimg alt=\"EditDrawableText\" src=\"https://github.com/MindorksOpenSource/EditDrawableText/blob/master/app/src/main/assets/EditDrawableText.png?raw=true\" /\u003e\r\n\u003c/p\u003e\r\n\r\n# EditDrawableText - An EditText which makes your Drawable Clickable\r\n[![Mindorks](https://img.shields.io/badge/mindorks-opensource-blue.svg)](https://mindorks.com/open-source-projects)\r\n[![Mindorks Community](https://img.shields.io/badge/join-community-blue.svg)](https://mindorks.com/join-community)\r\n[![Mindorks Android Store](https://img.shields.io/badge/Mindorks%20Android%20Store-EditDrawableText-blue.svg?style=flat)](https://mindorks.com/android/store)\r\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\r\n\r\n## Preview of EditDrawableText\r\n\u003cimg src=\"https://github.com/MindorksOpenSource/EditDrawableText/blob/master/app/src/main/assets/sample1.jpg?raw=true\" height=\"300em\" /\u003e\u0026nbsp;\u003cimg src=\"https://github.com/MindorksOpenSource/EditDrawableText/blob/master/app/src/main/assets/sample2.jpg?raw=true\" height=\"300em\" /\u003e\u0026nbsp;\u003cimg src=\"https://github.com/pranaypatel512/EditDrawableText/blob/development/app/src/main/assets/sample3.png?raw=true\" height=\"300em\" /\u003e\u0026nbsp;\u003cimg src=\"https://github.com/pranaypatel512/EditDrawableText/blob/development/app/src/main/assets/sample4.png?raw=true\" height=\"300em\" /\u003e\r\n\r\n\r\n### Overview of EditDrawableText library\r\n* EditDrawableText can be used to Show/Hide Password\r\n* Left/Right Drawables can be clicked to make custom events like Request OTP etc.\r\n* All type of EditText Properties are possible in EditDrawableText\r\n\r\n\r\n## Using EditDrawableText Library in your Android application\r\n\r\n1. Add it in your root build.gradle at the end of repositories:\r\n\r\n```groovy\r\n    repositories {\r\n      maven { url 'https://jitpack.io' }\r\n    }\r\n```\r\n2. Add this in your app's build.gradle\r\n\r\n```groovy\r\n\t implementation 'com.github.MindorksOpenSource:EditDrawableText:2.0'\r\n```\r\n3. To use this in XML File, use \r\n\r\n```XML\r\n  \u003ccom.mindorks.editdrawabletext.EditDrawableText\r\n        android:id=\"@+id/drawableEditTextLeft\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:drawableLeft=\"@drawable/ic_remove_red_eye_black_24dp\"\r\n        android:hint=\"Click the Drawables\"\r\n        android:inputType=\"text\"\r\n        android:textAlignment=\"center\"\r\n        /\u003e\r\n```\r\n4. Make the drawable clickable in Activity file,\r\n```kotlin\r\n  drawableEditText.setDrawableClickListener(object : OnDrawableClickListener {\r\n            override fun onClick(target: DrawablePosition) {\r\n                when (target) {\r\n                    DrawablePosition.RIGHT -\u003e //YOUR_LOGIC\r\n                    DrawablePosition.LEFT -\u003e //YOUR_LOGIC\r\n                    DrawablePosition.TOP -\u003e //YOUR_LOGIC\r\n                    DrawablePosition.BOTTOM -\u003e //YOUR_LOGIC\r\n                }\r\n            }      \r\n    })\r\n\r\n```\r\n\r\n5. You can also add an option so that the drawable is hidden by default and only shows when there is some text available in EditDrawableText\r\n```XML\r\n  \u003ccom.mindorks.editdrawabletext.EditDrawableText\r\n           ....\r\n           app:isDrawableShownWhenTextIsEmpty=\"false\"\r\n        /\u003e\r\n```\r\nor\r\n```kotlin\r\n  drawableEditText.hasDrawable(/**YOUR VALUE**/)\r\n\r\n```\r\nWhen the value is false, then the drawable is hidden by default and vice versa\r\n\r\n\r\n## If this library helps you in anyway, show your love :heart: by putting a :star: on this project :v:\r\n\r\n[Check out Mindorks awesome open source projects here](https://mindorks.com/open-source-projects)\r\n\r\n\r\n#### Contributor\r\n[Himanshu Singh](https://github.com/hi-manshu)\r\n\r\n[Pranay Patel](https://github.com/pranaypatel512)\r\n\r\n### License\r\n```\r\n   Copyright (C) 2018 MINDORKS NEXTGEN PRIVATE LIMITED\r\n\r\n   Licensed under the Apache License, Version 2.0 (the \"License\");\r\n   you may not use this file except in compliance with the License.\r\n   You may obtain a copy of the License at\r\n\r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n   Unless required by applicable law or agreed to in writing, software\r\n   distributed under the License is distributed on an \"AS IS\" BASIS,\r\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n   See the License for the specific language governing permissions and\r\n   limitations under the License.\r\n```\r\n\r\n### Contributing to EditDrawableText\r\nAll pull requests are welcome, make sure to follow the [contribution guidelines](CONTRIBUTING.md) when you submit pull request.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindorksopensource%2Feditdrawabletext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindorksopensource%2Feditdrawabletext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindorksopensource%2Feditdrawabletext/lists"}