{"id":13643292,"url":"https://github.com/ImKarl/CharacterPickerView","last_synced_at":"2025-04-21T01:32:14.901Z","repository":{"id":75792190,"uuid":"45971752","full_name":"imkarl/CharacterPickerView","owner":"imkarl","description":"可实现三级联动的选择器，高仿iOS的滚轮控件，字体大小自适应","archived":false,"fork":false,"pushed_at":"2019-12-26T09:16:08.000Z","size":407,"stargazers_count":741,"open_issues_count":0,"forks_count":153,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-08-11T17:09:29.259Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imkarl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2015-11-11T09:19:05.000Z","updated_at":"2024-07-28T16:28:05.000Z","dependencies_parsed_at":"2023-06-07T18:15:20.474Z","dependency_job_id":null,"html_url":"https://github.com/imkarl/CharacterPickerView","commit_stats":null,"previous_names":["alafighting/characterpickerview"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FCharacterPickerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FCharacterPickerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FCharacterPickerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FCharacterPickerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imkarl","download_url":"https://codeload.github.com/imkarl/CharacterPickerView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982599,"owners_count":21355731,"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:01:45.341Z","updated_at":"2025-04-21T01:32:13.894Z","avatar_url":"https://github.com/imkarl.png","language":"Java","readme":"## 仿iOS的PickerView控件\n\n[![](https://jitpack.io/v/ImKarl/CharacterPickerView.svg)](https://jitpack.io/#ImKarl/CharacterPickerView)\n\n可实现单项选择，并支持一二三级联动效果\n高仿iOS的滚轮效果，实现字体大小自适应\n\n## Preview\n![Preview](./Screenshot/Screenshot_2015-11-13-154813.gif)\n\n## Useage\n\n    //选项选择器\n    CharacterPickerWindow mOptions = new CharacterPickerWindow(activity);\n    //初始化选项数据\n    setPickerData(mOptions.getPickerView());\n    //设置默认选中的三级项目\n    mOptions.setSelectOptions(0, 0, 0);\n    //监听确定选择按钮\n    mOptions.setOnoptionsSelectListener(new OnOptionChangedListener() {\n        @Override\n        public void onOptionChanged(int options1, int option2, int options3) {\n            // TODO 处理选择结果\n        }\n    });\n    mOptions.showAtLocation(v, Gravity.BOTTOM, 0, 0);\n\n## How to\n\n- Step 1. 把 JitPack repository 添加到build.gradle文件中 repositories的末尾:\n```\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n```\n- Step 2. 在你的app build.gradle 的 dependencies 中添加依赖\n```\ndependencies {\n\tcompile 'com.github.imkarl:CharacterPickerView:v0.2.8'\n}\n```\n\n## ChangeLog\n\n#### 0.2.8\n- 新增方法setTypeface(Typeface)：用于设置自定义字体\n\n#### 0.2.7\n- `CharacterPickerWindow`新增方法setMaxTextSize()：用于限制字体最大值\n\n#### 0.2.6\n- 修复某些情况下，字体会变得非常大的bug\n- 新增setMaxTextSize()：用于限制字体最大值\n- 升级编译工具版本\n\n#### 0.2.5\n- 修复setSelectOptions()无效的bug\n- 修复CharacterPickerWindow弹出时，可以点击到Activity中Button的bug\n- 修复CharacterPickerWindow弹出时，按返回键直接退出Activity的bug\n- 新增setCurrentPosition()、getCurrentPosition()\n\n#### 0.2.4\n- 修复部分情况下选项显示宽度变小的bug\n- 修复一二级同时滑动时，出现index=-1导致程序崩溃\n- 修复三级同时滑动时，偶然出现的数组越界\n- 增加LoopView.items的空数据判断\n\n#### 0.2.0\n- 升级工程编译工具版本\n- 升级3D滚轮控件\n- 完善字体大小自适应\n- 微调选中项改变监听器\n\n#### Thanks\n- [Android-PickerView](https://github.com/saiwu-bigkoo/Android-PickerView) 一二三级联动选择器\n- [androidWheelView](https://github.com/weidongjian/androidWheelView/) 仿iOS滚轮控件\n","funding_links":[],"categories":["选择器(Picker)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FImKarl%2FCharacterPickerView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FImKarl%2FCharacterPickerView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FImKarl%2FCharacterPickerView/lists"}