GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mikaelzero/PageTransformer: Just invoke setPageTransformer ,An easy to use ViewPager that adds custom animations

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
pagetransformer
pagetransformer
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
cube.gif
cube.gif
 
 
depth.gif
depth.gif
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 
slow.gif
slow.gif
 
 
zoom.gif
zoom.gif
 
 

Repository files navigation

PageTransformer

Usage

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add the dependency:

	dependencies {
	        compile 'com.github.miaoyongjun:PageTransformer:1.0'
	}

java code:

viewPager.setPageTransformer(true, MagicTransformer.getPageTransformer(TransitionEffect.SlowBackground));

Demo

enter image description here enter image description here

enter image description here enter image description here

Detail

public enum TransitionEffect {
    Default,
    //透明度变换
    Alpha,
    //旋转变换
    Rotate,
    //3D旋转
    Cube,
    Flip,
    //折叠变换
    Accordion,
    ZoomFade,
    Fade,
    ZoomCenter,
    ZoomStack,
    Stack,
    Depth,
    Zoom,
    InRightDown,
    InRightUp,
    //视觉差变换
    SlowBackground
}

SlowBackground

add ImageView in your rootView

<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"/>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    </RelativeLayout>


</FrameLayout>

Thanks

JazzyViewPager BGABanner-Android

About

Just invoke setPageTransformer ,An easy to use ViewPager that adds custom animations

Topics

pagetransformerviewpager

Resources

Readme
Activity

Stars

69 stars

Watchers

4 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.