{"id":19238937,"url":"https://github.com/cpacm/simpleslider","last_synced_at":"2025-04-21T07:31:55.661Z","repository":{"id":53086650,"uuid":"53317735","full_name":"cpacm/SimpleSlider","owner":"cpacm","description":"A simple slider allows you to easily use.","archived":false,"fork":false,"pushed_at":"2021-04-12T02:45:54.000Z","size":20777,"stargazers_count":79,"open_issues_count":4,"forks_count":13,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-04-01T10:51:23.792Z","etag":null,"topics":["android","banner","indicator","simpleslider","slider","viewpager"],"latest_commit_sha":null,"homepage":"","language":"Java","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/cpacm.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}},"created_at":"2016-03-07T10:44:04.000Z","updated_at":"2024-12-30T08:44:04.000Z","dependencies_parsed_at":"2022-09-26T22:11:11.108Z","dependency_job_id":null,"html_url":"https://github.com/cpacm/SimpleSlider","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpacm%2FSimpleSlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpacm%2FSimpleSlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpacm%2FSimpleSlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpacm%2FSimpleSlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpacm","download_url":"https://codeload.github.com/cpacm/SimpleSlider/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250014693,"owners_count":21360996,"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","banner","indicator","simpleslider","slider","viewpager"],"created_at":"2024-11-09T16:35:15.499Z","updated_at":"2025-04-21T07:31:50.648Z","avatar_url":"https://github.com/cpacm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Slider\n=====\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.cpacm.simpleslider/simpleslider/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.cpacm.simpleslider/simpleslider)\n\n## Intro\n\nI wrote this library just because I want a lightweight slider.\n\u003eUse your own imageloader;  \n\u003eCreate your own indicator;  \n\u003eVariety of transition effects.\n\n这是一款轻量级的图片轮播器，它包括了一下几个特点：\n\n\u003e与图片加载框架完全解耦;  \n\u003e内置常用的指示器，基本满足对指示器的需求；  \n\u003e丰富多彩的转场动画，亦可以发挥你的创意创造新的特效；  \n\u003e内置不同款式的轮播器。\n\n \n## How to use\n\n### Gradle\n```groovy\nrepositories {\n  google()\n  mavenCentral()\n}\n\ndependencies {\n    implementation 'io.github.cpacm:simpleslider:2.3.2'\n}\n```\n\u003e Compile with Android 28 and androidx \n### Add the slider to your layout\n```xml\n\u003ccom.cpacm.library.SimpleViewPager\n    android:id=\"@+id/simple_slider\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"140dp\"\u003e\n\n\u003c/com.cpacm.library.SimpleSlider\u003e\n```\n\n### Config in your code\n\n```java\n    simpleSlider.setInfiniteEnable(true);\n    simpleSlider.startAutoScroll(true);\n    simpleSlider.setSliderDuration(3000);\n    simpleSlider.setSliderTransformDuration(DEFAULT_SCROLL_DURATION, new SpringInterpolator());\n    simpleSlider.setPageTransformer(new ZoomOutSlideTransformer());\n    circlePageIndicator = (CirclePageIndicator) findViewById(R.id.indicator);\n    circlePageIndicator.setViewPager(simpleSlider);\n    //when adapter's data changed, you should call this method\n    //当adapter数据更新时，必须要调用\n    simpleSLider.notifyDataSetChanged();\n```\n\n## Advanced usage\n\n### Basic\n![indicator](https://raw.githubusercontent.com/cpacm/SimpleSlider/develop/pic/BasicSlider.gif)\n\n两种轮播器，一种是普通模式，一种是回廊模式。\n\n### Indicator\n\n![indicator](https://raw.githubusercontent.com/cpacm/SimpleSlider/develop/pic/IndicatorSlider.gif)\n\n- `CirclePageIndicator`\n- `IconPageIndicator`\n- `LinePageIndicator`\n- `UnderlinePageIndicator`\n\nThe above indicators modified from [ViewPagerIndicator](https://github.com/JakeWharton/ViewPagerIndicator)\n\n- `SpringIndicator`\n\nModify from [SpringIndicator](https://github.com/chenupt/SpringIndicator)\n\n多种样式的指示器，可以根据场景选择适合的样式使用。\n\n**You can customize the indicator implements `PageIndicator`**\n\n### Transform\n![Transform](https://raw.githubusercontent.com/cpacm/SimpleSlider/develop/pic/TransformSlider.gif)\n\nThe above transforms come from [AndroidImageSlider](https://github.com/daimajia/AndroidImageSlider) \n\n**You can customize the transform extends `BaseTransformer`**\n\n丰富的过场动画（上面的回廊式轮播就可以通过设置 Transform 来实现）\n\n## **Note:**\n无限轮播最低要求有三张页面。\n\n**In the infinite loop mode, at least three sliders.**\n**Android API \u003e= 3.0**\n\nLicense\n---\n\n    Copyright 2018 cpacm\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%2Fcpacm%2Fsimpleslider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpacm%2Fsimpleslider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpacm%2Fsimpleslider/lists"}