Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yixiaolunhui/AndroidCarrouselLayout
a carousel layout for android
https://github.com/yixiaolunhui/AndroidCarrouselLayout
Last synced: about 1 month ago
JSON representation
a carousel layout for android
- Host: GitHub
- URL: https://github.com/yixiaolunhui/AndroidCarrouselLayout
- Owner: yixiaolunhui
- Created: 2016-11-12T13:07:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T09:24:48.000Z (9 months ago)
- Last Synced: 2024-08-04T00:06:54.846Z (4 months ago)
- Language: Java
- Homepage:
- Size: 6.23 MB
- Stars: 292
- Watchers: 8
- Forks: 72
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - AndroidCarrouselLayout - 安卓轮播框布局 (轮播图)
README
# AndroidCarrouselLayout
a carrousel layout for android# Preview
![image](https://github.com/dalong982242260/AndroidCarrouselLayout/blob/master/gif/carrousel01.gif?raw=true)
![image](https://github.com/dalong982242260/AndroidCarrouselLayout/blob/master/gif/carrousel02.gif?raw=true)
![image](https://github.com/dalong982242260/AndroidCarrouselLayout/blob/master/gif/carrousel03.gif?raw=true)
![image](https://github.com/dalong982242260/AndroidCarrouselLayout/blob/master/gif/carrousel04.gif?raw=true)
![image](https://github.com/dalong982242260/AndroidCarrouselLayout/blob/master/gif/carrousel05.gif?raw=true)
![image](https://github.com/dalong982242260/AndroidCarrouselLayout/blob/master/gif/carrousel06.gif?raw=true)# Example
[app-debug.apk](http://fir.im/bj45?release_id=5827dbc0959d697e2d001263)
# How to Use
gradle
compile 'com.dalong:carrousellayout:1.0.0'
or Maven
com.dalong
carrousellayout
1.0.0
pom
xml:
...
java:
CarrouselLayout carrousel= (CarrouselLayout) findViewById(R.id.carrousel);
carrousel.setR(width/3)//设置R的大小
.setAutoRotation(false)//是否自动切换
.setAutoRotationTime(1500);//自动切换的时间 单位毫秒#License
Copyright 2016 dalong
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 athttp://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.