/auto-viewpager

A view pager with ability to auto and infinite scroll

Primary LanguageKotlinApache License 2.0Apache-2.0

AutoViewPager

Android Arsenal Build Status

Sample

Usage

Gradle

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}
dependencies {
  implementation 'com.github.santalu:auto-viewpager:1.0.8'
}

XML

 <com.santalu.autoviewpager.AutoViewPager
    android:id="@+id/view_pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@+id/indicator"
    app:avp_autoScroll="true"
    app:avp_duration="5000"
    app:avp_indeterminate="true"/>

Attributes

Name Description Value
avp_indeterminate enable/disable infinite paging boolean
avp_autoScroll enable/disable auto scrolling boolean
avp_duration duration of auto scroll integer

License

Copyright 2017 Fatih Santalu

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.