GradationPager

Additional

Language
Java
Version
1.0.0 (Dec 4, 2017)
Created
Dec 4, 2017
Updated
Feb 21, 2018
Owner
gpark (hyogeunpark)
Contributor
gpark (hyogeunpark)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

GradationPager

Introduction

It is a library to make the background color of the view pager naturally move during the swipe. 👍

* An example project / library of GradationPager


Usages

Add your buildscript

• maven

<dependency>
  <groupId>com.hyopark</groupId>
  <artifactId>gradationpager</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

• gradle

compile 'com.hyopark:gradationpager:1.0.0'



2) Code

Java Code

ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);
viewPager.setAdapter(newPagerAdapter()); // your adapter
viewPager.setBackgroundColors(colors); // colors is int array(new int[])