# dotsindicator **Repository Path**: archermind-ti/dotsindicator ## Basic Information - **Project Name**: dotsindicator - **Description**: 不同样式的滑动指示器 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-04 - **Last Updated**: 2021-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Pager Dots Indicator #### 功能介绍 这个库可以用 3 种不同的很棒的样式来表示不同样式的滑动指示器 ### 效果图 ![image](image/dotindicator.gif) ### 安装教程 #### 方式一 1. 下载模块代码添加到自己的工程。 2. 关联使用。 ``` dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) implementation project(':viewpagerdotsindicator') …… } ``` #### 方式二 1. 在module的build.gradle中添加依赖 ```groovy dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) …… implementation 'com.gitee.archermind-ti:dotsindicator:1.0.1' } ``` 2. 在project的build.gradle中添加`mavenCentral()`的引用 ``` groovy allprojects { repositories { …… mavenCentral() } } ``` ### 使用说明 #### 配置view ``` java ``` #### 代码设置: ``` java DotsIndicator dotsIndicator = (DotsIndicator) findComponentById(ResourceTable.Id_dots_indicator); SpringDotsIndicator springDotsIndicator = (SpringDotsIndicator) findComponentById(ResourceTable.Id_spring_dots_indicator); PageSlider viewPager = (PageSlider) findComponentById(ResourceTable.Id_view_pager); DotIndicatorPagerAdapter adapter = new DotIndicatorPagerAdapter(); viewPager.setProvider(adapter); springDotsIndicator.setViewPager(viewPager); ``` ### 版本迭代 * v1.0.0 ## License Copyright 2016 Tommy Buonomo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.