{"id":13644459,"url":"https://github.com/burgessjp/GetWordTextView","last_synced_at":"2025-04-21T10:33:24.966Z","repository":{"id":98085893,"uuid":"73270057","full_name":"burgessjp/GetWordTextView","owner":"burgessjp","description":"A TextView that can get word in it's content by click.(一个可以取词的TextView)","archived":false,"fork":false,"pushed_at":"2018-08-06T03:22:24.000Z","size":126,"stargazers_count":209,"open_issues_count":3,"forks_count":33,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-09T17:41:52.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/burgessjp.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}},"created_at":"2016-11-09T09:38:04.000Z","updated_at":"2024-09-05T07:51:48.000Z","dependencies_parsed_at":"2023-05-23T13:46:31.129Z","dependency_job_id":null,"html_url":"https://github.com/burgessjp/GetWordTextView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burgessjp%2FGetWordTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burgessjp%2FGetWordTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burgessjp%2FGetWordTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burgessjp%2FGetWordTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/burgessjp","download_url":"https://codeload.github.com/burgessjp/GetWordTextView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040460,"owners_count":21365109,"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:05.382Z","updated_at":"2025-04-21T10:33:24.473Z","avatar_url":"https://github.com/burgessjp.png","language":"Java","readme":"##GetWordTextView\n\nA TextView that can get word in it's content by click,and you can set HighlightText also.\n(Support English and Chinese)\n\n![](capture/capture.gif)\n\n##Usage\n\n###Add GetWordTextView to your layout:\n```html\n  \u003cme.solidev.library.GetWordTextView xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n        android:id=\"@+id/english_get_word_text_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:textSize=\"16sp\"\n        app:highlightColor=\"@color/colorAccent\"\n        app:highlightText=\"that\"\n        app:language=\"English\"\n        app:selectedColor=\"@color/colorPrimary\" /\u003e\n```\n- \u003ccode\u003ehighlightText\u003c/code\u003e:HighlightText\n- \u003ccode\u003ehighlightColor\u003c/code\u003e:HighlightText'color\n- \u003ccode\u003eselectedColor\u003c/code\u003e:Clicked word's background\n- \u003ccode\u003elanguage\u003c/code\u003e:Content's language\n\n###Set Text and Listener in your code\n```html\n        mEnglishGetWordTextView = (GetWordTextView) findViewById(R.id.english_get_word_text_view);\n        mEnglishGetWordTextView.setText(\"A view that can get every word inside,it's very helpful view!\");\n        mEnglishGetWordTextView.setOnWordClickListener(new GetWordTextView.OnWordClickListener() {\n            @Override\n            public void onClick(String word) {\n                showToast(word);\n            }\n        });\n```\n\n\n##TODO\nMixed support for English and Chinese\n\n\n##Contact \u0026 Help\n\n- blog: http://www.jianshu.com/users/6725c8e8194f\n- weibo: http://weibo.com/xljiepeng\n- email: wy_jiapeng@163.com\n\n\n##License\n```html\nCopyright (C) 2016 [_SOLID](https://github.com/burgessjp)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":["TextView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburgessjp%2FGetWordTextView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburgessjp%2FGetWordTextView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburgessjp%2FGetWordTextView/lists"}