{"id":13644570,"url":"https://github.com/lawloretienne/DiscreteSlider","last_synced_at":"2025-04-21T10:33:31.789Z","repository":{"id":57720945,"uuid":"62687898","full_name":"lawloretienne/DiscreteSlider","owner":"lawloretienne","description":"A slider that allows a user to select a value at one of the specified tickmarks","archived":false,"fork":false,"pushed_at":"2020-09-02T05:32:40.000Z","size":299,"stargazers_count":578,"open_issues_count":9,"forks_count":63,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-05T04:13:17.705Z","etag":null,"topics":[],"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/lawloretienne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-06T03:22:55.000Z","updated_at":"2025-03-27T19:39:32.000Z","dependencies_parsed_at":"2022-08-25T14:51:06.653Z","dependency_job_id":null,"html_url":"https://github.com/lawloretienne/DiscreteSlider","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/lawloretienne%2FDiscreteSlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawloretienne%2FDiscreteSlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawloretienne%2FDiscreteSlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawloretienne%2FDiscreteSlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lawloretienne","download_url":"https://codeload.github.com/lawloretienne/DiscreteSlider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040492,"owners_count":21365115,"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:02:08.130Z","updated_at":"2025-04-21T10:33:31.120Z","avatar_url":"https://github.com/lawloretienne.png","language":"Java","funding_links":[],"categories":["Sliding"],"sub_categories":[],"readme":"# DiscreteSlider [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DiscreteSlider-green.svg?style=true)](https://android-arsenal.com/details/1/3871)\n\n## Overview\n\nA slider that allows a user to select a value at one of the specified tickmarks\n\n## Screenshots\n\n![DiscreteSlider](https://raw.githubusercontent.com/lawloretienne/DiscreteSlider/master/images/DiscreteSlider_Screenshot4.png)\n\n## Setup\n\n#### Gradle\n\n`compile 'com.github.lawloretienne:discreteslider:0.0.9'`\n\n#### Maven\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.lawloretienne\u003c/groupId\u003e\n    \u003cartifactId\u003ediscreteslider\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.9\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Sample Usage\n\n```xml\n\u003ccom.etiennelawlor.discreteslider.library.ui.DiscreteSlider\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"64dp\"\n        android:paddingLeft=\"8dp\"\n        android:paddingRight=\"8dp\"\n        android:layout_gravity=\"bottom\"\n        android:background=\"@color/grey_100\"\n        app:backdropFillColor=\"@color/grey_200\"\n        app:backdropStrokeColor=\"@color/grey_300\"\n        app:backdropStrokeWidth=\"1dp\"\n        app:horizontalBarThickness=\"4dp\"\n        app:tickMarkCount=\"6\"\n        app:tickMarkRadius=\"8dp\"\n        app:position=\"1\"\n        app:thumb=\"@drawable/thumb\"\n        app:progressDrawable=\"@drawable/transparent_progress_drawable\"/\u003e\n```\n\n## Notes\n\n### XML Attributes\n\n* **backdropFillColor** - the fill color of the slider backdrop\n* **backdropStrokeColor** - the stroke color of the slider backdrop\n* **backdropStrokeWidth** - the width of the stroke on the slider backdrop\n* **horizontalBarThickness** - the thickness of the horizontal bar that makes up the slider backdrop\n* **tickMarkCount** - the number of tickmarks\n* **tickMarkRadius** - the radius of each tickmark\n* **position** - the position of the thumb in the slider (set to the position of the appropriate tickmark)\n* **thumb** - the drawable that is used as the thumb of the slider\n* **progressDrawable** - the drawable that is used as the progress indicator of the slider\n\n## Developed By\n\n* Etienne Lawlor \n \n\u0026nbsp;\u0026nbsp;\u0026nbsp;**Email** - lawloretienne@gmail.com\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;**Website** - https://medium.com/@etiennelawlor\n\n## Projects/Apps using DiscreteSlider\n\nFeel free to contact me to add yours to this list.\n\n## License\n\n```\nCopyright 2016 Etienne Lawlor\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```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawloretienne%2FDiscreteSlider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flawloretienne%2FDiscreteSlider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawloretienne%2FDiscreteSlider/lists"}