AutoViewPager

Additional

Language
Java
Version
1.0.1 (Aug 11, 2017)
Created
Aug 9, 2017
Updated
Sep 14, 2017
Owner
Fatih SANTALU (santalu)
Contributor
Fatih SANTALU (santalu)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

AutoViewPager

Sample

Usage

Gradle

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

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.