{"id":19335053,"url":"https://github.com/milanmaji/android-triangle-seekbar","last_synced_at":"2026-05-04T20:35:56.423Z","repository":{"id":261911217,"uuid":"885375173","full_name":"milanmaji/android-triangle-seekbar","owner":"milanmaji","description":"It's simple lightweight Triangle Seekbar library with stair style bar","archived":false,"fork":false,"pushed_at":"2024-11-14T09:56:51.000Z","size":886,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T07:49:01.306Z","etag":null,"topics":["android","android-app","android-library","android-studio","android-ui","kotlin"],"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/milanmaji.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-08T13:17:53.000Z","updated_at":"2024-11-14T09:56:55.000Z","dependencies_parsed_at":"2025-02-24T07:42:23.198Z","dependency_job_id":"c8c94f27-6138-4ee9-bb56-90b6e6dc5f0f","html_url":"https://github.com/milanmaji/android-triangle-seekbar","commit_stats":null,"previous_names":["milanmaji/android-triangle-seekbar"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/milanmaji/android-triangle-seekbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milanmaji%2Fandroid-triangle-seekbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milanmaji%2Fandroid-triangle-seekbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milanmaji%2Fandroid-triangle-seekbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milanmaji%2Fandroid-triangle-seekbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milanmaji","download_url":"https://codeload.github.com/milanmaji/android-triangle-seekbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milanmaji%2Fandroid-triangle-seekbar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264608262,"owners_count":23636695,"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-app","android-library","android-studio","android-ui","kotlin"],"created_at":"2024-11-10T03:04:43.347Z","updated_at":"2026-05-04T20:35:56.392Z","avatar_url":"https://github.com/milanmaji.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Android Triangle Seekbar\n\nA simple, lightweight, and customizable Triangle SeekBar library for Android. This library offers a unique triangular progress bar style and now includes an additional Stair Style Bar for more flexibility.\n\n[![](https://jitpack.io/v/milanmaji/android-triangle-seekbar.svg)](https://jitpack.io/#milanmaji/android-triangle-seekbar)\n\n\n![Triangle Seekbar Demo](triangleseekbar_demo.gif)\n\n\n## Features\n\n- **Triangle Style**: A visually distinct triangle-shaped seek bar.\n- **Stair Style (New)**: A stepped progress bar that simulates a staircase-like progression.\n- **Min/Max Values**: Set minimum, maximum, and current progress values.\n- Fully customizable via XML attributes or programmatically.\n\n\n## Attributes\n| Attribute | Description | Default Value\n| ------ | ------ | ------ |\n| `app:seekbarColor` | color of seekbar | `#FFA000` |\n| `app:seekbarLoadingColor` | progress color of seekbar |  `#E64A19` |\n| `app:stairSpaceColor` | Color between stair steps |  `#00000000` |\n| `app:textColor`| progress text color | `#000000` |\n| `app:textFontName` | set font for progress text | App Default Font |\n| `app:textFontSize` | set font size for progress text | `96f` |\n| `app:showProgress` | Should progress text visible or not: `true` or `false` | `false`\n| `app:progressTextPosition` | The position of progress text in the seekbar: `topLeft`, `topRight` ,`bottomLeft`,`bottomRight`,`center` | `center` |\n| `app:progress` | Current progress value between min and max. | `0.0f`\n| `app:minValue` | Minimum value of the seek bar. | `0.0f`\n| `app:maxValue` | Minimum value of the seek bar. | `100.0f`\n| `app:stairBarLineWidth` | Width of each stair step. | `6.0f`\n| `app:barStyle` | Sets the bar style: `fill` or `stair`. | `fill`\n\n\n## Installation\n\nAdd it in `settings.gradle.kts`:\n``` gradle\n\tdependencyResolutionManagement {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven(url = \"https://jitpack.io\")\n\t\t}\n\t}\n```\nand then add dependency in `build.gradle.kts`\n\n``` gradle\n\tdependencies {\n\t        implementation(\"com.github.milanmaji:android-triangle-seekbar:latest.version\")\n\t}\n```\n\n## Usage\n\n**[1. XML](./app/src/main/res/layout/activity_main.xml)**\n\nDefine the TriangleSeekBar in your layout:\n\n``` xml\n\n    \u003ccom.github.milanmaji.triangleseekbar.TriangleSeekbar\n        android:id=\"@+id/triangleSeekbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"180dp\"\n        app:maxValue=\"100\"\n        app:minValue=\"0\"\n        app:progress=\"50\"\n        app:progressTextPosition=\"center\"\n        app:seekbarColor=\"@color/colorPrimary\"\n        app:seekbarLoadingColor=\"@color/colorAccent\"\n        app:showProgress=\"true\"\n        app:barStyle=\"fill\"\n        app:textColor=\"#ffffff\"\n        app:textFontSize=\"48sp\" /\u003e\n\n```\n### [1. Kotlin Code](./app/src/main/java/com/github/milanmaji/sample/MainActivity.kt)\n\nIn your code you add listener to progress change:\n``` kotlin\n\nbinding.triangleSeekbar.setProgressListener(\n            object : TriangleSeekbar.ProgressListener {\n                override fun onProgressChange(progress: Float) {\n                    //binding.tvCurrentProgress.text = getString(R.string.current_progress_is, progress)\n                    Log.d(\"tag\",\"AndroidTriangleSeekbar:$progress\")\n                }\n\n            }\n        )\n\n```\n\n\n## Contributing\n\nContributions are always welcome!\\\nFeel free to submit issues or pull requests.\n\n\n## License\n\nForked from [TriangleSeekbar](https://github.com/agarasul/TriangleSeekbar)\n, Copyright 2019 [Rasul Aghakishiyev](https://github.com/agarasul)\n\nCopyright 2024 Milan Maji\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%2Fmilanmaji%2Fandroid-triangle-seekbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilanmaji%2Fandroid-triangle-seekbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilanmaji%2Fandroid-triangle-seekbar/lists"}