{"id":19495459,"url":"https://github.com/guilhe/seekbarrangedview","last_synced_at":"2026-01-11T17:47:34.853Z","repository":{"id":57719844,"uuid":"101588549","full_name":"GuilhE/SeekbarRangedView","owner":"GuilhE","description":"A SeekBarView restrained by a minimum and maximum value.","archived":false,"fork":false,"pushed_at":"2022-08-29T17:16:31.000Z","size":2786,"stargazers_count":67,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T03:41:15.523Z","etag":null,"topics":["android","android-stepsview","android-view","androidx","seekbar-android","seekbar-ranged"],"latest_commit_sha":null,"homepage":"https://guilhe.github.io/SeekbarRangedView","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/GuilhE.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.buymeacoffee.com/GuilhE"}},"created_at":"2017-08-28T00:17:14.000Z","updated_at":"2025-01-08T07:45:34.000Z","dependencies_parsed_at":"2022-09-26T21:40:57.323Z","dependency_job_id":null,"html_url":"https://github.com/GuilhE/SeekbarRangedView","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhE%2FSeekbarRangedView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhE%2FSeekbarRangedView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhE%2FSeekbarRangedView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhE%2FSeekbarRangedView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuilhE","download_url":"https://codeload.github.com/GuilhE/SeekbarRangedView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250900362,"owners_count":21505041,"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-stepsview","android-view","androidx","seekbar-android","seekbar-ranged"],"created_at":"2024-11-10T21:37:50.996Z","updated_at":"2025-10-28T23:33:36.883Z","avatar_url":"https://github.com/GuilhE.png","language":"Kotlin","funding_links":["https://www.buymeacoffee.com/GuilhE"],"categories":[],"sub_categories":[],"readme":"# SeekbarRangedView\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SeekBarRangedView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6115) [![Preview-Appetize.io](https://img.shields.io/badge/Preview-Appetize.io-brightgreen.svg?style=flat.svg)](https://appetize.io/app/652rkf2vptc91mrkqfd210vyvw)\n\nA SeekBar restrained by a minimum and maximum value.\n\nBack in 2014 I contributed to this [project](https://github.com/GuilhE/android-nickaknudson/commits/master) by adding a few functionalities to ___RangeSeekBar.java___. The repo had no activity since then, so I've decided to extend it and continue.\nCredits must be shared with [Nick Knudson](https://github.com/nickaknudson) ;)\n\n## Installation\n\nSeekbarRangedView is distributed through [Maven Central](https://search.maven.org/artifact/com.github.guilhe/seekbar-ranged-view) and [Jitpack](https://jitpack.io/#GuilhE/SeekbarRangedView).\n\n```groovy\nimplementation 'com.github.guilhe:seekbar-ranged-view:${LATEST_VERSION}'\n```\n [![Maven Central](https://img.shields.io/maven-central/v/com.github.guilhe/seekbar-ranged-view.svg)](https://search.maven.org/search?q=g:com.github.guilhe%20AND%20seekbar-ranged-view)\n\n## Usage\n\nCheck out the __sample__ module where you can find a few examples of how to create it by `xml` or `java`.\n\nAttributes accepted in xml:\n```xml\n\u003cresources\u003e\n        \u003cattr name=\"min\" format=\"float\"/\u003e\n        \u003cattr name=\"max\" format=\"float\"/\u003e\n        \u003cattr name=\"currentMin\" format=\"float\"/\u003e\n        \u003cattr name=\"currentMax\" format=\"float\"/\u003e\n        \u003cattr name=\"rounded\" format=\"boolean\"/\u003e\n        \u003cattr name=\"backgroundColor\" format=\"color\"/\u003e\n        \u003cattr name=\"backgroundHeight\" format=\"dimension\"/\u003e\n        \u003cattr name=\"progressColor\" format=\"color\"/\u003e\n        \u003cattr name=\"progressHeight\" format=\"dimension\"/\u003e\n        \u003cattr name=\"thumbsResource\" format=\"reference\"/\u003e\n        \u003cattr name=\"thumbNormalResource\" format=\"reference\"/\u003e\n        \u003cattr name=\"thumbPressedResource\" format=\"reference\"/\u003e\n\u003c/resources\u003e\n```\n\nExample:  \n```xml\n\u003ccom.github.guilhe.views.SeekBarRangedView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        custom:currentMin=\"10\"\n        custom:backgroundColor=\"#C0C0C0\"\n        custom:progressColor=\"@color/progress_bar_line\"\n        custom:backgroundHeight=\"10dp\"\n        custom:progressHeight=\"20dp\"\n        custom:rounded=\"true\"/\u003e\n```\n\nFor `android:layout_height` you should use `\"wrap_content\"`:\n\n\u003cimg src=\"media/sample1.png\" alt=\"Sample1\" width=\"50%\"/\u003e\n\notherwise you'll be adding \"margins\" to your view (ex, `android:layout_height=\"200dp\"`):\n\n\u003cimg src=\"media/sample2.png\" alt=\"Sample2\" width=\"50%\"/\u003e\n\nIf you want to change its height, use the `backgroundHeight` and/or `progressHeight` attributes instead:\n\n\u003cimg src=\"media/sample3.png\" alt=\"Sample3\" width=\"50%\"/\u003e\n\n\nThere are many methods to help you customize this `View` by code. For more details checkout the __sample app__, _javadocs_ or the code itself.\n\n## Sample\n\u003cimg src=\"media/sample.gif\" alt=\"Sample\" width=\"30%\"/\u003e\n\n_Animation last update on September, 2020_\n\n\u003ca href='https://play.google.com/store/apps/details?id=com.github.guilhe.rangeseekbar.sample'\u003e\u003cimg width=\"30%\" alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/\u003e\u003c/a\u003e\n\n## Dependencies\n\n- [com.android.support:support-annotations](https://developer.android.com/topic/libraries/support-library/packages.html#annotations)\n\n## Bugs and Feedback\n\nFor bugs, questions and discussions please use the [Github Issues](https://github.com/GuilhE/SeekbarRangedView/issues).\n\n## LICENSE\n\nCopyright (c) 2017-present, GuilhE.\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\u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhe%2Fseekbarrangedview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilhe%2Fseekbarrangedview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhe%2Fseekbarrangedview/lists"}