{"id":13643324,"url":"https://github.com/StephaneBg/SimpleNumberPicker","last_synced_at":"2025-04-21T01:32:18.202Z","repository":{"id":77058086,"uuid":"84314738","full_name":"StephaneBg/SimpleNumberPicker","owner":"StephaneBg","description":"A customisable decimal and hexadecimal material picker view for Android.","archived":false,"fork":false,"pushed_at":"2019-09-03T19:48:02.000Z","size":275,"stargazers_count":179,"open_issues_count":0,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-09T15:42:27.808Z","etag":null,"topics":["android","android-library","picker","picker-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/StephaneBg.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":"2017-03-08T11:50:40.000Z","updated_at":"2024-05-14T03:29:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"7caf4532-c14a-446b-8b24-d758b74fc6ec","html_url":"https://github.com/StephaneBg/SimpleNumberPicker","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephaneBg%2FSimpleNumberPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephaneBg%2FSimpleNumberPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephaneBg%2FSimpleNumberPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephaneBg%2FSimpleNumberPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephaneBg","download_url":"https://codeload.github.com/StephaneBg/SimpleNumberPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249982606,"owners_count":21355732,"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","android-library","picker","picker-library"],"created_at":"2024-08-02T01:01:45.891Z","updated_at":"2025-04-21T01:32:17.676Z","avatar_url":"https://github.com/StephaneBg.png","language":"Kotlin","readme":"[ ![Download](https://api.bintray.com/packages/stephanebg/SimpleNumberPicker/SimpleNumberPicker/images/download.svg) ](https://bintray.com/stephanebg/SimpleNumberPicker/SimpleNumberPicker/_latestVersion)\n\n# SimpleNumberPicker\n\nA customisable decimal and hexadecimal material picker view for Android.\n\n\u003cimg src=\"https://raw.githubusercontent.com/StephaneBg/SimpleNumberPicker/master/artwork/decimal_picker.png\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/StephaneBg/SimpleNumberPicker/master/artwork/hexa_picker.png\"\u003e\n\n## Add the dependency\n```\n\tdependencies {\n\t    implementation 'com.sbgapps:simplenumberpicker:2.1.0'\n\t}\n```\n\n\n## Usage\n\n### DecimalPickerDialog\n\nTo display a decimal picker `DialogFragment`:\n``` java\n        DecimalPickerDialog.Builder()\n                .setReference(REF_DEC_DIALOG) // Optional\n                .setNatural(false) // Optional - false is default\n                .setRelative(true) // Optional - true is default\n                .setTheme(R.style.DecimalPickerTheme) // Optional\n                .create()\n                .show(getSupportFragmentManager(), TAG_DEC_DIALOG)\n```\n\n### HexaPickerDialog\n\nTo display a hexadecimal picker `DialogFragment`:\n``` java\n        HexaPickerDialog.Builder()\n                .setReference(REF_HEX_DIALOG) // Optional\n                .setMinLength(2) // Optional - Default is none\n                .setMaxLength(8) // Optional - Default is none\n                .setTheme(R.style.HexaPickerTheme) // Optional\n                .create()\n                .show(getSupportFragmentManager(), TAG_HEX_DIALOG)\n```\n\n## Handler\nYour parent `Activity` or parent `Fragment` must implement `DecimalPickerHandler` or `HexaPickerHandler`.\n\n## Styling\n\n 1. You can use your own themes if you'd like to change certain attributes.  SimpleNumberPicker currently allows for customization of the following attributes:\n\n        snpKeyColor              :: color of the keys\n        snpNumberColor           :: color of the entered number\n        snpBackspaceColor        :: color of the backspace button\n        snpDialogBackground      :: color of the dialog background\n\n 2. Create your own custom style in `styles.xml`:\n\n  ```xml\n    \u003cstyle name=\"DecimalPickerTheme\" parent=\"SimpleNumberPickerTheme\"\u003e\n        \u003citem name=\"snpKeyColor\"\u003e@android:color/white\u003c/item\u003e\n        \u003citem name=\"snpNumberColor\"\u003e@android:color/white\u003c/item\u003e\n        \u003citem name=\"snpBackspaceColor\"\u003e@android:color/white\u003c/item\u003e\n        \u003citem name=\"colorAccent\"\u003e@android:color/white\u003c/item\u003e\n        \u003citem name=\"snpDialogBackground\"\u003e@color/color_primary\u003c/item\u003e\n    \u003c/style\u003e\n  ```\n\nSee sample for more details.\n\n## Contribution\n\n### Pull requests are welcome!\n\nFeel free to contribute to SimpleNumberPicker.\n\nIf you've fixed a bug or have a feature you've added, just create a pull request. If you've found a bug, want a new feature, or have other questions, file an issue. I will try to answer as soon as possible.\n\n### Applications using SimpleNumberPicker\n\nPlease send a pull request if you would like to be added here.\n\n## License\nCopyright 2018 Stéphane Baiget\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\nhttp://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","funding_links":[],"categories":["选择器(Picker)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStephaneBg%2FSimpleNumberPicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStephaneBg%2FSimpleNumberPicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStephaneBg%2FSimpleNumberPicker/lists"}