{"id":13644710,"url":"https://github.com/IntruderShanky/Flare","last_synced_at":"2025-04-21T10:34:11.289Z","repository":{"id":144171714,"uuid":"71062008","full_name":"IntruderShanky/Flare","owner":"IntruderShanky","description":"Flare provide the easy implementation of circular indicator with ViewPager. (ViewPager Indicator)","archived":false,"fork":false,"pushed_at":"2016-10-26T06:21:26.000Z","size":5545,"stargazers_count":63,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T17:42:12.622Z","etag":null,"topics":["circular-indicator","islabs","viewpager-indicator"],"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/IntruderShanky.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}},"created_at":"2016-10-16T16:17:22.000Z","updated_at":"2024-02-28T07:02:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cb34076-ebd8-415d-899e-e70eea66e199","html_url":"https://github.com/IntruderShanky/Flare","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FFlare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FFlare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FFlare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IntruderShanky%2FFlare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IntruderShanky","download_url":"https://codeload.github.com/IntruderShanky/Flare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040698,"owners_count":21365151,"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":["circular-indicator","islabs","viewpager-indicator"],"created_at":"2024-08-02T01:02:11.325Z","updated_at":"2025-04-21T10:34:06.240Z","avatar_url":"https://github.com/IntruderShanky.png","language":"Java","funding_links":[],"categories":["轮播图"],"sub_categories":[],"readme":"# Flare\nFlare provide the easy implementation of circular indicator with ViewPager. (ViewPager Indicator)\n\n[![](https://jitpack.io/v/IntruderShanky/Flare.svg)](https://jitpack.io/#IntruderShanky/Flare)\n\n[Demo App - IS Library](https://play.google.com/store/apps/details?id=com.intrusoft.islibrarydemo)\n\n\u003ca href='https://play.google.com/store/apps/details?id=com.intrusoft.islibrarydemo\u0026utm_source=global_co\u0026utm_small=prtnr\u0026utm_content=Mar2515\u0026utm_campaign=PartBadge\u0026pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'\u003e\u003cimg alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' width=\"193\" height=\"75\"/\u003e\u003c/a\u003e\n# Preview\n![Screenshot](flare.gif)\n\n# Usage\nStep 1. Add the JitPack repository to your build file\n```groovy\nallprojects {\n        repositories {\n            ...\n            maven { url \"https://jitpack.io\" }\n        }\n    }\n```\nStep 2. Add the dependency\n```groovy\ndependencies {\n      compile 'com.github.IntruderShanky:Flare:1.0.2'\n}\n ```\n# Implementation\n###XML Implementation:\n```xml\n  \u003ccom.intrusoft.indicator.Flare\n        android:id=\"@+id/indicator\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"30dp\"\n        flare:indicator_color=\"@color/indicator_color\"\n        flare:indicator_gap=\"20dp\" /\u003e\n```\n###Attributes\n####Indicator Color\n```xml\n flare:indicator_color=\"@color/indicator_color\"\n```\n####Indicator Gap\nDistance between the centers of two indicators\n```xml\nflare:indicator_gap=\"20dp\"\n```\n\n\n###Java Implementation:\n```java\nFlare indicator = (Flare) findViewById(R.id.indicator);\nViewPager pager = (ViewPager) findViewById(R.id.pager);\n\n//setting Adapter\npager.setAdapter(new PagerAdapter() /* Your PagerAdapter */);\n\n//setting PageChangeListener\npager.addOnPageChangeListener(this /* OnPageChangeListener */);\n\n//setting Flare\nindicator.setUpWithViewPager(pager);\nindicator.addOnPageChangeListener(this /* OnPageChangeListener */);\n\n//Customize Flare\nindicator.setIndicatorColor(Color.BLUE);\nindicator.setIndicatorGap(20);\n```\n#Licence\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%2FIntruderShanky%2FFlare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIntruderShanky%2FFlare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIntruderShanky%2FFlare/lists"}