{"id":20985820,"url":"https://github.com/sultanayubi360/seekbarlibrary","last_synced_at":"2026-04-28T10:07:24.194Z","repository":{"id":262253661,"uuid":"886671409","full_name":"SultanAyubi360/SeekbarLibrary","owner":"SultanAyubi360","description":"customizable horizontal seek bar/progress bar library for android with multiple colors and segments to show multiple data.","archived":false,"fork":false,"pushed_at":"2025-01-22T10:53:41.000Z","size":198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T17:58:41.264Z","etag":null,"topics":["android","kotlin","library","seekbar","seekbar-horizontal","seekbar-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SultanAyubi360.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-11T11:54:59.000Z","updated_at":"2025-01-22T10:53:44.000Z","dependencies_parsed_at":"2025-01-20T07:26:42.129Z","dependency_job_id":"17a900fc-dbc4-45a9-84ca-f6a4b9e61bf9","html_url":"https://github.com/SultanAyubi360/SeekbarLibrary","commit_stats":null,"previous_names":["sultanayubi360/seekbarlibrary"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SultanAyubi360/SeekbarLibrary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SultanAyubi360%2FSeekbarLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SultanAyubi360%2FSeekbarLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SultanAyubi360%2FSeekbarLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SultanAyubi360%2FSeekbarLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SultanAyubi360","download_url":"https://codeload.github.com/SultanAyubi360/SeekbarLibrary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SultanAyubi360%2FSeekbarLibrary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32375788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","kotlin","library","seekbar","seekbar-horizontal","seekbar-library"],"created_at":"2024-11-19T06:11:19.674Z","updated_at":"2026-04-28T10:07:24.170Z","avatar_url":"https://github.com/SultanAyubi360.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# customSeekBarAndroid\nCustom seek bar/ progress bar with customizable multiple color on background.\n\n\u003cdiv align=\"center\"\u003e\n\t\n[![](https://jitpack.io/v/SultanAyubi360/SeekbarLibrary.svg)](https://jitpack.io/#SultanAyubi360/SeekbarLibrary/1.2)\n![Status](https://img.shields.io/badge/Status-Active-brightgreen) ![Kotlin](https://img.shields.io/badge/Kotlin-100%25-brightgreen)\n\n\u003c/div\u003e\n\n## ✨ Live Demo\n\n\u003ckbd\u003e\n\nhttps://github.com/user-attachments/assets/bb3c671e-d6f9-44f9-a3e3-5eb387235e4a\n\n\u003c/kbd\u003e\n\n## Usage\n\n**For a working implementation of this project see the `app/` folder.**\n\n### Step 1\n\nAdd this in your root build.gradle at the end of repositories\n```\nallprojects {\n\t\trepositories {\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n     \n}\n```\n---\n\n### Step 2\n\nAdd the dependency in your build.gradle.\n\n# For groovy DSL\n\n```\ndependencies {\n    implementation 'com.github.SultanAyubi360:SeekbarLibrary:1.2'\n}\n```\n\n# For Kotlin DSL\n\n```\ndependencies {\n    implementation (\"com.github.SultanAyubi360:SeekbarLibrary:1.2\")\n}\n```\n---\n\n### Step 3\n\nAdd the following xml to your layout file.You can use the custom view in following manner:\n\n#### In XML:\n\n```\n  \u003candroidx.cardview.widget.CardView\n        android:id=\"@+id/seekCard\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"14dp\"\n        android:layout_marginStart=\"@dimen/_2sdp\"\n        android:layout_marginTop=\"20dp\"\n        android:layout_marginEnd=\"@dimen/_2sdp\"\n        app:cardBackgroundColor=\"@android:color/transparent\"\n        app:cardCornerRadius=\"4dp\"\n        app:cardElevation=\"0dp\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\u003e\n\n        \u003ccom.sultanayubi.seekbarlibrary.CustomSeekBarView\n            android:id=\"@+id/seekBar\"\n            style=\"?android:attr/progressBarStyleHorizontal\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:paddingStart=\"0dp\"\n            android:paddingEnd=\"0dp\"\n            android:thumb=\"@null\"/\u003e\n    \u003c/androidx.cardview.widget.CardView\u003e\n\n\nCarview use to make seekbar/progress bar corner round by giving radius. \n```\n---\n### Step 4\n\nReference the View in Kotlin code.\n\n  ## CustomSeekBarView\n* Kotlin\n```kotlin\nval customSeekBar = findViewById\u003cCustomSeekBarView\u003e(R.id.seekBar) //Find View By Id\nval customSeekBar = binding.seekBar // using binding\n\n```\n---\n\n### Step 5\nHow to use and pass values in CustomSeekBarView.\n  \n* For showing multiple progess bars.\n```kotlin\ncustomSeekBar.configureSegments(\n            isMultipleCheck = true, // Set whether multiple segments should be checked\n            segmentCheckValue = 10, // Set the segment check value\n            totalEmployee = 100,    // Set the total number of employees\n            presentEmployee = 50,   // Set the number of present employees\n            absentEmployee = 20,    // Set the number of absent employees\n            leaveEmployee = 15,     // Set the number of employees on leave\n            lateEmployee = 15      // Set the number of late arrivals\n        )\n\n```\n\n* For showing single progess bar.\n```kotlin\ncustomSeekBar.configureSegments(\n                isMultipleCheck = false, // Set whether multiple segments should be checked\n                segmentCheckValue = 1, // Set the segment check value\n                totalEmployee = 50,    // Set the total number of employees\n                presentEmployee = 50,   // Set the number of present employees\n                absentEmployee = 0,    // Set the number of absent employees\n                leaveEmployee = 0,     // Set the number of employees on leave\n                lateEmployee = 0      // Set the number of late arrivals\n            )\n\nisMultipleCheck  means just show single progress and make other values 0 to not show.If any progress have zero value it will not show progress bar.\n```\n---\n\n## ✨ Screenshots\n\n\u003ckbd\u003e\n  \u003cimg src=\"https://i.ibb.co/26GmynP/screenshot1.jpg\" width=30% height=30%/\u003e\n  \u003cimg src=\"https://i.ibb.co/6B32g9Z/screenshot2.jpg\" width=30% height=30%/\u003e\n  \u003cimg src=\"https://i.ibb.co/s3sNJcP/screenshot3.jpg\" width=30% height=30%/\u003e\n  \u003cimg src=\"https://i.ibb.co/pZ7ffmR/screenshot4.jpg\" width=30% height=30%/\u003e\n  \u003cimg src=\"https://i.ibb.co/RDSMqw7/screenshot5.jpg\" width=30% height=30%/\u003e\n\u003c/kbd\u003e\n\n\n## OverView:\n* **isMultipleCheck**: This is use for whether to show multiple progress bar just do true otherwise for single false.\n* **segmentCheckValue**: If progress has value less then given segment it not show the value on progress so it not cut off.\n* **presentEmployee**: show present employees using green color.\n* **absentEmployee**: show absent employees using red color.\n* **leaveEmployee**: show leave employees using sky bue color.\n* **lateEmployee**: show late employees using yellow color.\n\n\n## Reporting an issue\n\nIf you are going to report an issue, I will greatly appreciate you including some code which I can run to see the issue. By doing so you maximize the chance that I will fix the problem. \nBy the way, before reporting a problem, try replacing DiscreteScrollView with a RecyclerView. If the problem is still present, it's likely somewhere in your code.\n\n\n## Find this library useful? :heart:\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it. :coffee: :hamburger: :fries: :apple:\n\nSupport it by joining stargazers to this. ⭐\n\nAlso, [follow me on GitHub](https://github.com/SultanAyubi360) for my next creations! 🤩\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsultanayubi360%2Fseekbarlibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsultanayubi360%2Fseekbarlibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsultanayubi360%2Fseekbarlibrary/lists"}