{"id":13645697,"url":"https://github.com/dengzq/LetterView","last_synced_at":"2025-04-21T14:32:03.381Z","repository":{"id":217103052,"uuid":"81798587","full_name":"dengzq/LetterView","owner":"dengzq","description":"一个可以选择字母完成单词的小控件","archived":false,"fork":false,"pushed_at":"2017-02-13T09:09:03.000Z","size":674,"stargazers_count":42,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T18:43:26.076Z","etag":null,"topics":["android","view"],"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/dengzq.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}},"created_at":"2017-02-13T07:46:28.000Z","updated_at":"2024-09-05T02:25:13.000Z","dependencies_parsed_at":"2024-01-14T16:10:45.024Z","dependency_job_id":"7be35554-3856-4255-abb7-96709a3633d3","html_url":"https://github.com/dengzq/LetterView","commit_stats":null,"previous_names":["dengzq/letterview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dengzq%2FLetterView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dengzq%2FLetterView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dengzq%2FLetterView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dengzq%2FLetterView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dengzq","download_url":"https://codeload.github.com/dengzq/LetterView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070256,"owners_count":21369843,"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","view"],"created_at":"2024-08-02T01:02:39.928Z","updated_at":"2025-04-21T14:32:02.771Z","avatar_url":"https://github.com/dengzq.png","language":"Java","funding_links":[],"categories":["其他"],"sub_categories":[],"readme":"# LetterView\n\n\n\n有一个选中字母完成单词的需求，需求大概如下图\n\n![letterview.jpg](https://github.com/dengzq/LetterView/blob/master/image/letterview.jpg)\n\n\n因此写了一个类似功能的字母选择控件，贴上完成效果\n\n![letterview.gif](https://github.com/dengzq/LetterView/blob/master/image/letterView.gif)\n\n\n##使用方法\n\n直接在xml文件中引用\n\n\n\n```\n\u003ccom.dengzq.letterview.widget.LetterGridView\n\n        android:layout_centerInParent=\"true\"\n\n        app:letterHorizontalMargin=\"20\"\n\n        app:letterVerticalMargin=\"20\"\n\n        app:letterRadius=\"60\"\n\n        app:letterColumn=\"12\"\n\n        app:letterRow=\"10\"\n\n        app:textSize=\"12\"\n\n        app:textCheckColor=\"#FFFFFF\"\n\n        android:background=\"#FFE4E1\"\n\n        app:strokeFinishWidth=\"2\"\n\n        android:id=\"@+id/lgl\"\n\n        android:layout_width=\"wrap_content\"\n\n        android:layout_height=\"wrap_content\"\n\n        android:layout_marginTop=\"30dp\"/\u003e\n```\n```\n传递单词 setWords(String word)  \n例如: setWords(\"静香和胖虎\")\n```\n\n\u003cbr/\u003e\n##相关属性\n\n| 属性    | 描述    |\n|--------|:--------:|\n|     letterViewSize   |   字母控件的大小     |\n|     letterColumn   |   列数     |\n|     letterRow   |   行数     |\n|     letterHorizontalMargin   |   字母间的水平间距     |\n|     letterVerticalMargin   |   字母间的竖直间距     |\n|     strokeFinishWidth   |   完成时边框宽度     |\n|     strokeFinishColor   |   完成时边框颜色    |\n|     strokeWidth   |   默认边框宽度    |\n|     strokeColor   |   默认边框颜色    |\n|     textSize   |   文字大小    |\n|     textDefaultColor   |   文字默认颜色    |\n|     textCheckColor   |   文字选中颜色    |\n|     textFinishColor   |   文字完成颜色    |\n|     checkedColor   |   选中时背景颜色    |\n\n###end\n\n####喜欢的可以赏个star\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdengzq%2FLetterView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdengzq%2FLetterView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdengzq%2FLetterView/lists"}