{"id":13644517,"url":"https://github.com/andydevacc/MentionEditText","last_synced_at":"2025-04-21T10:33:27.636Z","repository":{"id":60242189,"uuid":"69262772","full_name":"andydevacc/MentionEditText","owner":"andydevacc","description":"MentionEditText adds some useful features for mention string(@xxxx), such as highlight, intelligent deletion, intelligent selection and '@' input detection, etc.","archived":false,"fork":false,"pushed_at":"2019-04-01T08:13:24.000Z","size":162,"stargazers_count":510,"open_issues_count":5,"forks_count":69,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-22T06:12:42.477Z","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/andydevacc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-26T15:12:26.000Z","updated_at":"2024-04-02T02:41:43.000Z","dependencies_parsed_at":"2022-09-27T04:50:22.837Z","dependency_job_id":null,"html_url":"https://github.com/andydevacc/MentionEditText","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andydevacc%2FMentionEditText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andydevacc%2FMentionEditText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andydevacc%2FMentionEditText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andydevacc%2FMentionEditText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andydevacc","download_url":"https://codeload.github.com/andydevacc/MentionEditText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040480,"owners_count":21365113,"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:06.508Z","updated_at":"2025-04-21T10:33:27.100Z","avatar_url":"https://github.com/andydevacc.png","language":"Java","funding_links":[],"categories":["EditText"],"sub_categories":[],"readme":"## MentionEditText\nMentionEditText adds some useful features for mention string(@xxxx), such as highlight, intelligent deletion, intelligent selection and '@' input detection, etc.  \n\n\u003cimg src=\"https://github.com/luckyandyzhang/MentionEditText/blob/master/art/demo.gif\" width=\"300\"\u003e  \n\n## Usage\nInsert the following dependency to build.gradle file of your project.\n\n```groovy\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\n\ndependencies {\n    compile 'com.android.support:appcompat-v7:24.2.1'\n    compile 'com.github.luckyandyzhang:MentionEditText:1.0.0'\n}\t\n```\n\nUse MentionEditText like a normal EditText:\n\n```xml\n\u003cio.github.luckyandyzhang.mentionedittext.MentionEditText\n    android:id=\"@+id/editText\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\" /\u003e\n```\n\nIn Java code:\n\n```java\nMentionEditText editText = ((MentionEditText) findViewById(R.id.editText));\nList\u003cString\u003e mentionList = editText.getMentionList(true); //get a list of mention string\neditText.setMentionTextColor(Color.RED); //optional, set highlight color of mention string\neditText.setPattern(\"@[\\\\u4e00-\\\\u9fa5\\\\w\\\\-]+\"); //optional, set regularExpression\neditText.setOnMentionInputListener(new MentionEditText.OnMentionInputListener() {\n    @Override\n    public void onMentionCharacterInput() {\n        //call when '@' character is inserted into EditText\n    }\n});\n\n```\n\n## License\n\n    Copyright 2016 Andy\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandydevacc%2FMentionEditText","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandydevacc%2FMentionEditText","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandydevacc%2FMentionEditText/lists"}