{"id":13643276,"url":"https://github.com/brucetoo/PickView","last_synced_at":"2025-04-21T01:32:16.230Z","repository":{"id":2416012,"uuid":"44304666","full_name":"brucetoo/PickView","owner":"brucetoo","description":" Date and Province WheelView like IOS","archived":false,"fork":false,"pushed_at":"2022-01-04T09:27:05.000Z","size":5789,"stargazers_count":1099,"open_issues_count":27,"forks_count":264,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-09T07:02:30.371Z","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/brucetoo.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}},"created_at":"2015-10-15T08:43:17.000Z","updated_at":"2025-01-22T07:38:35.000Z","dependencies_parsed_at":"2022-08-06T12:15:19.767Z","dependency_job_id":null,"html_url":"https://github.com/brucetoo/PickView","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/brucetoo%2FPickView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brucetoo%2FPickView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brucetoo%2FPickView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brucetoo%2FPickView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brucetoo","download_url":"https://codeload.github.com/brucetoo/PickView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982600,"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.063Z","updated_at":"2025-04-21T01:32:14.987Z","avatar_url":"https://github.com/brucetoo.png","language":"Java","readme":"\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-PickView-green.svg?style=true)](https://android-arsenal.com/details/1/2811)\n\n# DEPRECATED\n\n# PickView\nThis is a helper lib for us to pick date or province like IOS system \nWheelView widget.\n\nAdded feature to pick time with WheelView Widget\n\n# Here is date pick effect by gif\n\n![picker](./datepick.gif)\n\n## How to use\n\nAdd more custom attributes, Just see below  version 1.1.1\n    \n   ```java\n          \n         DatePickerPopWin pickerPopWin = new DatePickerPopWin.Builder(MainActivity.this, new DatePickerPopWin.OnDatePickedListener() {\n                          @Override\n                          public void onDatePickCompleted(int year, int month, int day, String dateDesc) {\n                              Toast.makeText(MainActivity.this, dateDesc, Toast.LENGTH_SHORT).show();\n                          }\n                       }).textConfirm(\"CONFIRM\") //text of confirm button\n                              .textCancel(\"CANCEL\") //text of cancel button\n                              .btnTextSize(16) // button text size\n                              .viewTextSize(25) // pick view text size\n                              .colorCancel(Color.parseColor(\"#999999\")) //color of cancel button\n                              .colorConfirm(Color.parseColor(\"#009900\"))//color of confirm button\n                              .minYear(1990) //min year in loop\n                              .maxYear(2550) // max year in loop\n                              .showDayMonthYear(true) // shows like dd mm yyyy (default is false) \n                              .dateChose(\"2013-11-11\") // date chose when init popwindow\n                              .build();\n      \n   ```\n\n\n## About LoopView \n  in version 1.2.0+,can use LoopView like:\n \n ```java\n    \n        \u003ccom.bruce.pickerview.LoopView\n            android:id=\"@+id/loop_view\"\n            android:layout_width=\"200dp\"\n            android:layout_height=\"180dp\"\n            android:layout_below=\"@+id/demo\"\n            app:canLoop=\"true\"\n            app:centerTextColor=\"#ff000000\"\n            app:drawItemCount=\"7\" \u003c!-- must be odd number --\u003e\n            app:initPosition=\"3\"\n            app:lineColor=\"@color/colorPrimary\"\n            app:textSize=\"25sp\"\n            app:topBottomTextColor=\"#ffafafaf\"/\u003e\n            \n            \n         loopView = (LoopView) findViewById(R.id.loop_view);\n                loopView.setInitPosition(2);\n                loopView.setCanLoop(false);\n                loopView.setLoopListener(new LoopScrollListener() {\n                    @Override\n                    public void onItemSelect(int item) {\n                        \n                    }\n                });\n                loopView.setTextSize(25);//must be called before setDateList\n                loopView.setDataList(getList());    \n \n ```\n## TimePicker\n    \n   ```java\n          \n         TimePickerPopWin timePickerPopWin=new TimePickerPopWin.Builder(MainActivity.this, new       TimePickerPopWin.OnTimePickListener() {\n                    @Override\n                    public void onTimePickCompleted(int hour, int minute, String AM_PM, String time) {\n                        Toast.makeText(MainActivity.this, time, Toast.LENGTH_SHORT).show();\n                    }\n                }).textConfirm(\"CONFIRM\")\n                        .textCancel(\"CANCEL\")\n                        .btnTextSize(16)\n                        .viewTextSize(25)\n                        .colorCancel(Color.parseColor(\"#999999\"))\n                        .colorConfirm(Color.parseColor(\"#009900\"))\n                        .build();\n                timePickerPopWin.showPopWin(MainActivity.this);\n      \n   ```\n\n# Dependencies\n\n```java \n\n   compile 'com.brucetoo.pickview:library:1.2.3'\n \n```\n\n## TODO\n\n- [ ] add Province pick PopWindow (if i have time)\n\n- [x] add to Jcenter (Wait Jcenter manager verify)\n\n------\n\n# THANKS\n [androidWheelView](https://github.com/weidongjian/androidWheelView) \n \n## License\n\nCopyright 2015 - 2016 Bruce too\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\nSee [LICENSE](LICENSE) file for details.\n\n\n","funding_links":[],"categories":["选择器(Picker)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucetoo%2FPickView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrucetoo%2FPickView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucetoo%2FPickView/lists"}