sacot41/SCViewPager
sacot41/SCViewPager has 808 GitHub stars and 124 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-24 10:21 UTC. Last push 2017-11-06.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
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
창작 및 미디어README.md
OriginalSCViewPager
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

Install
With Gradle (JCenter):
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.
<RelativeLayout
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"
tools:context=".MainActivity">
<com.dev.sacot41.scviewpager.SCViewPager
android:id="@+id/viewpager_main_activity"
android:layout_width="match_parent"
android:layout_height="match_parent">
</com.dev.sacot41.scviewpager.SCViewPager>
<TextView
android:id="@+id/textview_to_animate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/white"
android:text="@string/textview_bonjour"/>
Retrieve view and add animation after you have set viewPager and his adapter.
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.
관련 프로젝트 살펴보기
불러오는 중…