{"id":16223689,"url":"https://github.com/lykmapipo/android-value-picker","last_synced_at":"2025-04-08T01:45:25.807Z","repository":{"id":139148305,"uuid":"195531842","full_name":"lykmapipo/android-value-picker","owner":"lykmapipo","description":"A pack of helpful helpers and uis to pick value from a given list of values","archived":false,"fork":false,"pushed_at":"2020-08-30T23:23:43.000Z","size":177,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T17:53:14.282Z","etag":null,"topics":["android","library","lykmapipo","picker","value"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lykmapipo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-06T11:27:21.000Z","updated_at":"2025-01-11T07:40:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d6b08b8-b297-46b0-b798-016263a564e4","html_url":"https://github.com/lykmapipo/android-value-picker","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fandroid-value-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fandroid-value-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fandroid-value-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fandroid-value-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lykmapipo","download_url":"https://codeload.github.com/lykmapipo/android-value-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247761030,"owners_count":20991533,"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","library","lykmapipo","picker","value"],"created_at":"2024-10-10T12:19:46.253Z","updated_at":"2025-04-08T01:45:25.789Z","avatar_url":"https://github.com/lykmapipo.png","language":"Java","readme":"android-value-picker\n====================\n\n[![](https://jitpack.io/v/lykmapipo/android-value-picker.svg)](https://jitpack.io/#lykmapipo/android-value-picker)\n\nA pack of helpful helpers and uis to pick value from a given list of values.\n\n## Installation\nAdd [https://jitpack.io](https://jitpack.io) to your build.gradle with:\n```gradle\nallprojects {\n    repositories {\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\nadd `android-value-picker` dependency into your project\n\n```gradle\ndependencies {\n    implementation 'com.github.lykmapipo:android-value-picker:v0.7.0'\n}\n```\n\n## Usage\n\nIn activity(or other component) request for dialog picker\n\n```java\npublic class MainActivity extends AppCompatActivity {\n\n    private static final String TAG = MainActivity.class.getSimpleName();\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        // show dialog value picker\n        Button btnDialogPicker = findViewById(R.id.btnDialogPicker);\n        btnDialogPicker.setOnClickListener(v -\u003e ValuePicker.dialogPickerFor(this, new ValuePicker.Provider\u003cContact\u003e() {\n            @Override\n            public String getTitle() {\n                return \"Select Contact\";\n            }\n\n            @Override\n            public String getSearchHint() {\n                return \"Search...\";\n            }\n            \n            @Override\n            public int getThreshold() {\n                return 2;\n            }\n\n            @Override\n            public Task\u003cList\u003cContact\u003e\u003e getValues() {\n                return getContactList();\n            }\n\n            @Override\n            public void onValueSelected(Contact picked) {\n                Toast.makeText(MainActivity.this, \"Picked: \" + picked, Toast.LENGTH_SHORT).show();\n            }\n        }));\n\n    }\n\n    @Override\n    protected void onPause() {\n        super.onPause();\n    }\n}\n```\n\n\n## Test\n```sh\n./gradlew test\n```\n\n## Contribute\nIt will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas.\nDo not forget to add a bit of test(s) of what value you adding.\n\n## License\n\n(The MIT License)\n\nCopyright (c) lykmapipo \u0026\u0026 Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykmapipo%2Fandroid-value-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flykmapipo%2Fandroid-value-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykmapipo%2Fandroid-value-picker/lists"}