{"id":20511178,"url":"https://github.com/lovoo/tailor","last_synced_at":"2026-04-27T08:31:56.979Z","repository":{"id":142007447,"uuid":"53345985","full_name":"lovoo/tailor","owner":"lovoo","description":"Tailor sews buttons on any Android EditText.","archived":false,"fork":false,"pushed_at":"2017-03-10T20:06:29.000Z","size":220,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-05-26T20:45:00.851Z","etag":null,"topics":["android","android-button","android-edittext","android-library","lovoo"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-03-07T17:47:37.000Z","updated_at":"2021-05-20T19:03:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e12c466-eaa0-42b4-a726-139a5abff2c9","html_url":"https://github.com/lovoo/tailor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lovoo/tailor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2Ftailor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2Ftailor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2Ftailor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2Ftailor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovoo","download_url":"https://codeload.github.com/lovoo/tailor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2Ftailor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-button","android-edittext","android-library","lovoo"],"created_at":"2024-11-15T20:34:55.532Z","updated_at":"2026-04-27T08:31:56.949Z","avatar_url":"https://github.com/lovoo.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Release](https://jitpack.io/v/lovoo/tailor.svg)](https://jitpack.io/#lovoo/tailor)\n\n# tailor\nTailor allows adding click behavior to Android EditText's compound drawables. Written entirely in Kotlin.\n\n![Demo](tailor-demo.gif)\n\n## Import\ntailor is hosted on JitPack. Therefore you can simply import it by adding\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\nto your projects `build.gradle`.\n\nThen add this to you app's `build.gradle`:\n\n```groovy\ndependencies {\n    compile 'com.github.lovoo:tailor:1.1'\n}\n```\n\n## Usage\nUsing tailor is simple. Just use `ButtonEditText` instead of the default `EditText` or make your implementation a subclass of it.\n\nAs with a normal `EditText` you can then add compound drawables to it.\n\nBut now you get a new method called `setOnCompoundDrawableClickListener(OnCompoundDrawableClickListener)`. You can pass this method an implementation\nof `OnCompoundDrawableClickListener` like this:\n\n```java\nbuttonEditText.setOnCompoundDrawableClickListener(new OnCompoundDrawableClickListener() {\n    @Override\n    public void onCompoundDrawableClicked ( CompoundDrawableOnTouchListener.Direction direction ) {\n        if (direction == CompoundDrawableOnTouchListener.Direction.DIRECTION_RIGHT) {\n            // the right compound drawable has been clicked, delete the text\n            setText(\"\");\n        }\n    }\n});\n```\n\nRefer to the provided `DeleteButtonEditText` for a more thorough example.\n\nLicence\n-------\n\n    Copyright (c) 2016, LOVOO GmbH\n    All rights reserved.\n\n    Redistribution and use in source and binary forms, with or without\n    modification, are permitted provided that the following conditions are met:\n\n    * Redistributions of source code must retain the above copyright notice, this\n      list of conditions and the following disclaimer.\n\n    * Redistributions in binary form must reproduce the above copyright notice,\n      this list of conditions and the following disclaimer in the documentation\n      and/or other materials provided with the distribution.\n\n    * Neither the name of LOVOO GmbH nor the names of its\n      contributors may be used to endorse or promote products derived from\n      this software without specific prior written permission.\n\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOEVER\n    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovoo%2Ftailor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovoo%2Ftailor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovoo%2Ftailor/lists"}