{"id":19793660,"url":"https://github.com/h6ah4i/android-numberpickerprefcompat","last_synced_at":"2026-03-13T08:32:28.237Z","repository":{"id":47624657,"uuid":"93514736","full_name":"h6ah4i/android-numberpickerprefcompat","owner":"h6ah4i","description":"A Preference widget with NumberPicker dialog. Works on API level 14+ devices.","archived":false,"fork":false,"pushed_at":"2021-09-12T07:23:36.000Z","size":392,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-01T02:38:58.287Z","etag":null,"topics":["android","compat","numberpicker","preference"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h6ah4i.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}},"created_at":"2017-06-06T12:15:45.000Z","updated_at":"2022-02-26T16:03:28.000Z","dependencies_parsed_at":"2022-09-11T01:32:43.367Z","dependency_job_id":null,"html_url":"https://github.com/h6ah4i/android-numberpickerprefcompat","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/h6ah4i/android-numberpickerprefcompat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-numberpickerprefcompat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-numberpickerprefcompat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-numberpickerprefcompat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-numberpickerprefcompat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h6ah4i","download_url":"https://codeload.github.com/h6ah4i/android-numberpickerprefcompat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h6ah4i%2Fandroid-numberpickerprefcompat/sbom","scorecard":{"id":451792,"data":{"date":"2025-08-11","repo":{"name":"github.com/h6ah4i/android-numberpickerprefcompat","commit":"64dbd76319d6b0ba5fbeade7c6bf5db0e4ffe3cb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T08:21:34.638Z","repository_id":47624657,"created_at":"2025-08-19T08:21:34.638Z","updated_at":"2025-08-19T08:21:34.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30462283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","compat","numberpicker","preference"],"created_at":"2024-11-12T07:10:43.341Z","updated_at":"2026-03-13T08:32:28.217Z","avatar_url":"https://github.com/h6ah4i.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"NumberPickerPreferenceCompat\n===============\n\nAn Android's Preference widget which can pick a number using NumberPicker dialog. This library uses the [ported version of NumberPicker widget](https://github.com/h6ah4i/android-numberpickercompat) and the [AndroidX Preference library](https://developer.android.com/reference/androidx/preference/package-summary) which works perfectly on API level 14+.\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.h6ah4i.android.preference/numberpickerprefcompat/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.h6ah4i.android.preference/numberpickerprefcompat)\n\n---\n\nScreenshot\n---\n\n\u003cimg src=\"./pic/screenshot.png?raw=true\" alt=\"NumberPickerPreferenceCompat\" width=\"200\" /\u003e\n\n---\n\nTarget platforms\n---\n\n- API level 14 or later\n\n\nLatest version\n---\n\n- Version 1.2.2  (September 12, 2021)   ([RELEASE NOTES](./RELEASE-NOTES.md))\n\nGetting started\n---\n\nThis library is published on Maven Central. Just add these lines to `build.gradle`.\n\n```diff\nrepositories {\n+     mavenCentral()\n}\n\ndependencies {\n+    implementation 'com.h6ah4i.android.preference:numberpickerprefcompat:1.2.2'\n}\n```\n\nUsage\n---\n\n**In XML**\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cPreferenceScreen\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    \u003e\n\n    \u003ccom.h6ah4i.android.preference.NumberPickerPreferenceCompat\n        app:key=\"number_picker_preference_1\"\n        app:summary=\"Summary text goes here\"\n        app:title=\"Number picker preference\"\n        app:nppc_maxValue=\"100\"\n        app:nppc_minValue=\"0\"\n        app:nppc_unitText=\"%\"\n        app:nppc_wrapSelectorWheel=\"false\"\n        /\u003e\n\n\u003c/PreferenceScreen\u003e\n```\n\n**In Java code**\n```java\npublic class MyPreferenceFragment extends PreferenceFragmentCompat {\n    private static final String DIALOG_FRAGMENT_TAG =\n            \"androidx.preference.PreferenceFragment.DIALOG\";\n\n    @Override\n    public void onDisplayPreferenceDialog(Preference preference) {\n        // check if dialog is already showing\n        if (getParentFragmentManager().findFragmentByTag(DIALOG_FRAGMENT_TAG) != null) {\n            return;\n        }\n\n        final DialogFragment f;\n\n        if (preference instanceof NumberPickerPreferenceCompat) {\n            f = NumberPickerPreferenceDialogFragmentCompat.newInstance(preference.getKey());\n        } else {\n            f = null;\n        }\n\n        if (f != null) {\n            f.setTargetFragment(this, 0);\n            f.show(getParentFragmentManager(), DIALOG_FRAGMENT_TAG);\n        } else {\n            super.onDisplayPreferenceDialog(preference);\n        }\n    }\n\n    @Override\n    public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n        ...\n    }\n}\n```\n\nLicense\n---\n\nThis library is licensed under the [Apache Software License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n\nSee [`LICENSE`](LICENSE) for full of the license text.\n\n    Copyright (C) 2017 Haruki Hasegawa\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh6ah4i%2Fandroid-numberpickerprefcompat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh6ah4i%2Fandroid-numberpickerprefcompat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh6ah4i%2Fandroid-numberpickerprefcompat/lists"}