Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sacot41/SCViewPager
https://github.com/sacot41/SCViewPager
android animation jazz-hands viewpager
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sacot41/SCViewPager
- Owner: sacot41
- License: apache-2.0
- Created: 2015-06-13T05:09:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T22:30:39.000Z (about 7 years ago)
- Last Synced: 2024-07-31T18:16:47.502Z (6 months ago)
- Topics: android, animation, jazz-hands, viewpager
- Language: Java
- Size: 2.83 MB
- Stars: 815
- Watchers: 18
- Forks: 126
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- -awesome-android-ui - SCViewPager - 2.0) | <img src="/art/SCViewPager.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - SCViewPager - 2.0) | <img src="/art/SCViewPager.gif" width="49%"> (Index `(light-weight pages)`)
- awesome-android-ui - SCViewPager - 2.0) | <img src="/art/SCViewPager.gif" width="49%"> (Index)
- awesome-android-ui - https://github.com/sacot41/SCViewPager
- awesome-android-ui - https://github.com/sacot41/SCViewPager
README
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SCViewPager-green.svg?style=flat)](https://android-arsenal.com/details/1/2369)
# SCViewPager
_Jazz for android_A simple ViewPager extends that provide scroll based animation like Jazz Hands for iOS.
Jazz Hands library provided by IFTTT : https://github.com/IFTTT/JazzHands![alt tag](https://github.com/sacot41/SCViewPager/blob/master/example_2.gif?raw=true)
# Install
With Gradle (JCenter):
``` groovy
compile "com.dev.sacot41:scviewpager:0.0.4"
```# Start
First, add SCViewPager to your project. Create an activity with the viewPage and the views you want to animate.
``` xml
```Retrieve view and add animation after you have set viewPager and his adapter.
``` java
Point size = SCViewAnimationUtil.getDisplaySize(this);View view = findViewById(R.id.textview_to_animate);
SCViewAnimation viewAnimation = new SCViewAnimation(view);
viewAnimation.startToPosition((int)(size.x*1.5), null);
viewAnimation.addPageAnimation(new SCPositionAnimation(this, 0, -(int)(size.x*1.5), 0));
mViewPager.addAnimation(viewAnimation);
```# Disclaimer
This project is not yet implemented in a real app and it's hasn't the pretension to implement all feature provided by JazzHand on IOS; this projects is a pretext to me to better understand animation based on scrollview (viewpager) and publish my first library on Jcenter.
If you want a more complete library, heck Nightonke library, he add more animation and correct some bug : https://github.com/Nightonke/WoWoViewPager.