{"id":16526059,"url":"https://github.com/markusressel/pageindicatorview","last_synced_at":"2025-08-04T05:39:08.362Z","repository":{"id":82497034,"uuid":"73428845","full_name":"markusressel/PageIndicatorView","owner":"markusressel","description":"A small, simple, animated page indicator without the need for a viewpager.","archived":false,"fork":false,"pushed_at":"2023-05-08T07:01:36.000Z","size":184,"stargazers_count":9,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-04-08T18:09:24.992Z","etag":null,"topics":["android","android-library","android-ui","pageindicator","pageindicatorview","view","viewpager","viewpager-indicator"],"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/markusressel.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-10T23:12:52.000Z","updated_at":"2023-05-25T04:06:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb115780-2387-4534-b7da-b7bbb8e7e533","html_url":"https://github.com/markusressel/PageIndicatorView","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/markusressel/PageIndicatorView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusressel%2FPageIndicatorView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusressel%2FPageIndicatorView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusressel%2FPageIndicatorView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusressel%2FPageIndicatorView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markusressel","download_url":"https://codeload.github.com/markusressel/PageIndicatorView/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusressel%2FPageIndicatorView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268655141,"owners_count":24285128,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","android-library","android-ui","pageindicator","pageindicatorview","view","viewpager","viewpager-indicator"],"created_at":"2024-10-11T17:25:50.466Z","updated_at":"2025-08-04T05:39:08.354Z","avatar_url":"https://github.com/markusressel.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PageIndicatorView\nA small, simple, animated page indicator without the need for a viewpager.\n\n![Example](http://i.giphy.com/l3vRccyQXcHc1kDQs.gif)\n\n# Why\nI built this library because I was tired of all the existing page indicators out there\nto require a viewpager as this prevented me from using in on an Android Wear project that time.\n\n# Usage\nTo use this view just include it in your depencencies using\n\n```groovy\nrepositories {\n    ...\n    maven { url \"https://jitpack.io\" }\n}\n```\n    \nin your project build.gradle file and\n\n```groovy\ndependencies {\n    compile 'com.github.markusressel:PageIndicatorView:v1.0.0'\n}\n```\n    \nin your desired module build.gradle file.\n\nAfter successfull gradle build you will be able to use this in your xml layout files\n\n```xml\n\u003cde.markusressel.android.library.pageindicatorview.PageIndicatorView\n        android:id=\"@+id/pageIndicator\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"/\u003e\n```\n\nIf you want you can change the style of the indicators by using attributes\n\n```xml\n\u003cde.markusressel.android.library.pageindicatorview.PageIndicatorView\n        android:id=\"@+id/pageIndicator\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_weight=\"0\"\n        android:paddingTop=\"@dimen/activity_vertical_margin\"\n        app:piv_activeIndicatorFillColor=\"?attr/colorAccent\"\n        app:piv_activeIndicatorFillSize=\"20dp\"\n        app:piv_activeIndicatorStrokeColor=\"@android:color/white\"\n        app:piv_activeIndicatorStrokeWidth=\"5dp\"\n        app:piv_inactiveIndicatorFillColor=\"?attr/colorAccent\"\n        app:piv_inactiveIndicatorFillSize=\"15dp\"\n        app:piv_inactiveIndicatorStrokeColor=\"@android:color/darker_gray\"\n        app:piv_inactiveIndicatorStrokeWidth=\"10dp\"\n        app:piv_pageCount=\"5\" /\u003e\n```\n\nYou can also set these values in code using the following methods:\n\n```kotlin\n\npageIndicator.activeIndicatorSize = pxFromDp(this, activeIndicatorSize)\npageIndicator.activeIndicatorFillColor = activeIndicatorColorFill\npageIndicator.activeIndicatorStrokeColor = activeIndicatorColorStroke\npageIndicator.activeIndicatorStrokeWidth = pxFromDp(this, activeIndicatorStrokeWidth)\n\npageIndicator.inactiveIndicatorSize = pxFromDp(this, inactiveIndicatorSize)\npageIndicator.inactiveIndicatorFillColor = inactiveIndicatorColorFill\npageIndicator.inactiveIndicatorStrokeColor = inactiveIndicatorColorStroke\npageIndicator.inactiveIndicatorStrokeWidth = pxFromDp(this, inactiveIndicatorStrokeWidth)\n\npageIndicator.indicatorGap = pxFromDp(this, indicatorGap)\n\npageIndicator.pageCount = pageCount\n\npageIndicator.setCurrentPage(initialPageIndex)          // animated\npageIndicator.setCurrentPage(initialPageIndex, false)   // not animated\n```\n\nTo be able to react to \"OnClick\" events on indicators, you can set a OnIndicatorClickedListener like this:\n\n```kotlin\npageIndicator.setOnIndicatorClickedListener(object : OnIndicatorClickedListener {\n    override fun onIndicatorClicked(pageIndicatorView: PageIndicatorView, index: Int) {\n        // set the indicator view to the clicked position\n        pageIndicatorView.setCurrentPage(index, true)\n\n        // set your view pager to the clicked position\n        viewPager.currentItem = index\n    }\n})\n```\n\n# License\n\n    Copyright (c) 2016 Markus Ressel\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n    http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusressel%2Fpageindicatorview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkusressel%2Fpageindicatorview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusressel%2Fpageindicatorview/lists"}