• Stars
    star
    2,557
  • Rank 17,157 (Top 0.4 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Library containing common animations needed for transforming ViewPager scrolling for Android v13+.

CircleCI License Maven Central

ViewPagerTransforms

Library containing common animations needed for transforming ViewPager scrolling on Android v13+. This library is a rewrite of the JazzyViewPager library and owes credit of the animation concepts directly to its source. The purpose of this rewrite is to provide an easier to use and extend implementation of ViewPager animations.

Demo

Getting Started (Gradle / Android Studio)

Add gradle dependency to your application.

implementation 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:2.0.24'

After configuration, instantiate the transformer animation you wish to use and set it as the page transformer.

// Reference (or instantiate) a ViewPager instance and apply a transformer
pager = (ViewPager) findViewById(R.id.container);
pager.setAdapter(mAdapter);
pager.setPageTransformer(true, new RotateUpTransformer());

Creating Custom Transforms

All ViewPagerTransform implementations extend ABaseTransformer providing useful hooks improving readability of animations and basic functionality important when switching between animations. ABaseTransformer provides three lifecycle hooks and two flags for default handling of hiding offscreen fragments and mimicking the default paging functionality of the ViewPager.

Building

This project is built with Gradle using the Gradle Wrapper script.

./gradlew build

Creating Local Versions

You can modify this project and create local packages with via the maven publish plugin used in the build scripts.

./gradlew publishToMavenLocal

More Repositories

1

Arbor

Like Timber, just different
Kotlin
92
star
2

kfin-state-machine

Kotlin Finite State Machine
Kotlin
43
star
3

bcrypt-mpp

Kotlin Multiplatform Bcrypt implementation
Kotlin
20
star
4

BettererNaming

Gradle plugin for automatically renaming android artifacts into something more useful.
Groovy
15
star
5

Android-Nsd-Rx

Android Network Service Discovery Rx
Kotlin
13
star
6

Screenshot-Redaction

Automatically filter out sensitive data from your screenshots using Tesseract.
Java
12
star
7

Android-Versions

I got tired of writing Build.VERSION.SDK_INT >= Build.VERSION_CODES.BLAH. This shorthands it and gives easier to read methods vs long conditional statements.
Java
10
star
8

kotlin-multiplatform

Kotlin multiplatform project sample for a conference talk.
Kotlin
5
star
9

GoTenna-Client

Library for interfacing GoTenna devices over BTLE.
Java
5
star
10

Rajawali-Serializer

Tool to quickly serialize models on your sdcard.
Java
5
star
11

VoiceInteraction

Copy of the AOSP voice interaction test project from 6.0.1 r3
Java
4
star
12

Simple-MQTT

Simple MQTT client for Android that vibrates when a message is received.
Java
4
star
13

Isochronous

Sample app for Isochronous transfers on Android
Java
4
star
14

LollipopDemo

Quick demo of upcoming Android 5.0 UI features for presentation at the monthly Orlando Android Developers Group meetup. http://www.meetup.com/Central-Florida-Android-Developers-Group/
Java
3
star
15

Presentation-Example-Effective-Design

Presentation Example - Efficient Design
Java
3
star
16

alpine-glibc-android

Ubuntu, the Android SDK, and OpenJDK
Dockerfile
3
star
17

jlibewf

Clone of the jlibewf project from http://sourceforge.net/projects/libewf/files/jlibewf/
Java
2
star
18

BluetoothLE-Scanner-Sample

Sample BLE scanner written in Kotlin
Kotlin
2
star
19

AndroidThings-Mirror

Android Things Wall Mirror project
Kotlin
2
star
20

kodein-samples

A few kodein samples for a talk on dependency injection
Kotlin
2
star
21

BTLE-Scanner-Compat

A wrapper of the BTLE scanning implementation of Android. The wrapper simplifies using the BTLE implementation back to API 19.
Java
2
star
22

CalendarView

Library for displaying a schedule similar to the Android Calendar application.
Java
2
star
23

vsts-devops

Working with Microsoft Devops
2
star
24

dungeon

Dungeon
Kotlin
1
star
25

fcm-client

FCM message client library written in Kotlin
Kotlin
1
star
26

ComposeSample

Just messing around with jetpack compose
Kotlin
1
star
27

Rajawali-Demonstration

This is a small demonstration I presented at a local Monthly Android Developers meet.
Java
1
star
28

ktor-native

Checking out the progress of Ktor native on Linux
Kotlin
1
star
29

AES-Testing

Test implementation of the AndroidKeyStore AES implementation
Java
1
star
30

Debugging-Common-Android-Mistakes

Demo of some contrived examples of common pitfalls for a talk on debugging and how you should never trust your tests.
Java
1
star
31

MarshmallowDemo

Demo of new Android Marshmallow and Play Services features.
Java
1
star
32

kfin-state-machine-hyperion

Hyperion plugin for quickly checking the state of registered kfin-state-machines
Kotlin
1
star
33

Arduino-Com

Arduino Com is a serial port tool for sending various types of data to an Arduino or any other serial device.
C#
1
star