Skip to content

Commit

Permalink
1.sample适配0.8.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
caikaidev committed Oct 28, 2016
1 parent 494ff04 commit f7eec87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ compile 'com.kcode.github:autoScrollViewPager:0.7.0'
public BaseViewPagerAdapter(Context context, List<T> data,OnAutoViewPagerItemClickListener listener)
```
* PointLayout
add ```xmlns:app="http://schemas.android.com/apk/res-auto"``` to layout file. And ,
user ```app:point_layout="left|right|center"```.
sample:[AutoViewPager](https://github.com/fccaikai/AutoScrollViewPager/tree/master/app)
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
compile 'com.android.support:appcompat-v7:24.2.0'
testCompile 'junit:junit:4.12'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.github.fccaikai:AutoScrollViewPager:0.7.0', {
compile 'com.github.fccaikai:AutoScrollViewPager:0.8.0', {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
}
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<com.kcode.autoscrollviewpager.view.AutoScrollViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="220dp">
android:layout_height="220dp"
app:point_layout="center">

</com.kcode.autoscrollviewpager.view.AutoScrollViewPager>
</RelativeLayout>

0 comments on commit f7eec87

Please sign in to comment.