{"id":16165171,"url":"https://github.com/alexzaitsev/meter-number-picker","last_synced_at":"2025-09-09T01:33:18.172Z","repository":{"id":57716685,"uuid":"119149676","full_name":"alexzaitsev/meter-number-picker","owner":"alexzaitsev","description":"The android library that provides a simple and customizable NumberPicker styled as meter.","archived":false,"fork":false,"pushed_at":"2020-04-28T22:59:05.000Z","size":4935,"stargazers_count":99,"open_issues_count":3,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-09T01:32:38.974Z","etag":null,"topics":["android","android-library","custom-view","meter-number-picker","meters","meterview","numberpicker","view"],"latest_commit_sha":null,"homepage":null,"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/alexzaitsev.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":"2018-01-27T09:12:16.000Z","updated_at":"2025-08-31T13:00:09.000Z","dependencies_parsed_at":"2022-08-24T01:41:24.671Z","dependency_job_id":null,"html_url":"https://github.com/alexzaitsev/meter-number-picker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/alexzaitsev/meter-number-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzaitsev%2Fmeter-number-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzaitsev%2Fmeter-number-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzaitsev%2Fmeter-number-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzaitsev%2Fmeter-number-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexzaitsev","download_url":"https://codeload.github.com/alexzaitsev/meter-number-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzaitsev%2Fmeter-number-picker/sbom","scorecard":{"id":182859,"data":{"date":"2025-08-11","repo":{"name":"github.com/alexzaitsev/meter-number-picker","commit":"733e6507809b559a732b443c3952deb2ec6822b7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"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":"Code-Review","score":0,"reason":"Found 1/30 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":"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":"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":"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":"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":"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":"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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v.1.0.5 not signed: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/15743294","Warn: release artifact v.1.0.4 not signed: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/11505497","Warn: release artifact v.1.0.3 not signed: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/10816549","Warn: release artifact v.1.0.2 not signed: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/9535692","Warn: release artifact v.1.0.1 not signed: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/9495576","Warn: release artifact v.1.0.5 does not have provenance: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/15743294","Warn: release artifact v.1.0.4 does not have provenance: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/11505497","Warn: release artifact v.1.0.3 does not have provenance: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/10816549","Warn: release artifact v.1.0.2 does not have provenance: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/9535692","Warn: release artifact v.1.0.1 does not have provenance: https://api.github.com/repos/alexzaitsev/meter-number-picker/releases/9495576"],"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 'master'"],"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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-16T19:11:10.254Z","repository_id":57716685,"created_at":"2025-08-16T19:11:10.254Z","updated_at":"2025-08-16T19:11:10.254Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274232026,"owners_count":25245856,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","android-library","custom-view","meter-number-picker","meters","meterview","numberpicker","view"],"created_at":"2024-10-10T02:49:25.208Z","updated_at":"2025-09-09T01:33:18.143Z","avatar_url":"https://github.com/alexzaitsev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Meter Number Picker\nThe android library that provides a simple and customizable NumberPicker styled as meter. It's based on [NumberPicker](https://github.com/ShawnLin013/NumberPicker).\n\n[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-Meter%20Number%20Picker-green.svg?style=flat)](https://android-arsenal.com/details/1/6723)\n\n![Preview](https://github.com/alexzaitsev/meter-number-picker/blob/master/art/demo-framed.gif)\n\n## Usage\nMake sure you've added maven central to the list of your repositories at the root `build.gradle`:\n```\nrepositories {\n    mavenCentral()\n}\n```\nThen add a dependency into your module's `build.gradle`:\n```\ndependencies {\n    implementation 'com.alex-zaitsev:meternumberpicker:1.0.5'\n}\n```\n\n## Content\nThe library contains 2 views: [MeterNumberPicker](https://github.com/alexzaitsev/meter-number-picker/blob/master/meternumberpicker/src/main/java/com/alexzaitsev/meternumberpicker/MeterNumberPicker.java) and [MeterView](https://github.com/alexzaitsev/meter-number-picker/blob/master/meternumberpicker/src/main/java/com/alexzaitsev/meternumberpicker/MeterView.java). `MeterNumberPicker` is a base block for `MeterView`. On the screenshot above whole view is the `MeterView` and a single block of it is `MeterNumberPicker`. They are pretty simple, you can easily create your own meter class based on them.\n\n## Usage\nFirstly, create a style for your number picker:\n```\n\u003cstyle name=\"MeterNumberPickerStyle\"\u003e\n    \u003citem name=\"mnp_min\"\u003e0\u003c/item\u003e\n    \u003citem name=\"mnp_max\"\u003e9\u003c/item\u003e\n    \u003citem name=\"mnp_textColor\"\u003e@android:color/white\u003c/item\u003e\n    \u003citem name=\"mnp_textSize\"\u003e50sp\u003c/item\u003e\n    \u003citem name=\"mnp_paddingHorizontal\"\u003e5dp\u003c/item\u003e\n    \u003citem name=\"mnp_paddingVertical\"\u003e25dp\u003c/item\u003e\n\u003c/style\u003e\n```\nThen, create a style for your meter view and pass the previous style:\n```\n\u003cstyle name=\"MeterViewStyle\"\u003e\n    \u003citem name=\"mv_firstColor\"\u003e@android:color/black\u003c/item\u003e\n    \u003citem name=\"mv_numberOfFirst\"\u003e5\u003c/item\u003e\n    \u003citem name=\"mv_numberOfSecond\"\u003e1\u003c/item\u003e\n    \u003citem name=\"mv_pickerStyle\"\u003e@style/MeterNumberPickerStyle\u003c/item\u003e\n    \u003citem name=\"mv_secondColor\"\u003e@android:color/holo_red_dark\u003c/item\u003e\n\u003c/style\u003e\n```\nAlmost there! Now create your view and apply the style:\n```\n\u003ccom.alexzaitsev.meternumberpicker.MeterView\n    android:id=\"@+id/meterView\"\n    style=\"@style/MeterViewStyle\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nYou can use `MeterNumberPicker` directly without `MeterView` wrapper. Look at the [MeterView](https://github.com/alexzaitsev/meter-number-picker/blob/master/meternumberpicker/src/main/java/com/alexzaitsev/meternumberpicker/MeterView.java) sources to catch more details.  \nYou may also want to check the [sample](https://github.com/alexzaitsev/meter-number-picker/tree/master/sample).\n\n## Attributes\n\n#### MeterNumberPicker\n|attribute name|attribute description|\n|:-:|:-:|\n|mnp_min|The min value of this widget.|\n|mnp_max|The max value of this widget.|\n|mnp_value|The current value of this widget.|\n|mnp_textColor|The text color of the numbers.|\n|mnp_textSize|The text size of the numbers.|\n|mnp_typeface|The typeface of the numbers.|\n|mnp_minWidth|The min width of this widget.|\n|mnp_minHeight|The min height of this widget.|\n|mnp_paddingHorizontal|Internal horizontal padding of this widget (left/right).|\n|mnp_paddingVertical|Internal vertical padding of this widget (top/bottom).|\n\n#### MeterView\n|attribute name|attribute description|\n|:-:|:-:|\n|mv_numberOfFirst|Number of the first-placed blocks.|\n|mv_numberOfSecond|Number of the second-placed blocks.|\n|mv_firstColor|Background color for the first-placed blocks.|\n|mv_secondColor|Background color for the second-placed blocks.|\n|mv_pickerStyle|The style for the `MeterNumberPicker`.|\n|mv_enabled|Defines whether view reacts on clicks.|\n\n## License\n[MeterNumberPicker](https://github.com/alexzaitsev/meter-number-picker) is under [Apache 2.0](https://github.com/alexzaitsev/meter-number-picker/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzaitsev%2Fmeter-number-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexzaitsev%2Fmeter-number-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzaitsev%2Fmeter-number-picker/lists"}