{"id":13396199,"url":"https://github.com/sacot41/SCViewPager","last_synced_at":"2025-03-13T22:31:51.839Z","repository":{"id":33705536,"uuid":"37358745","full_name":"sacot41/SCViewPager","owner":"sacot41","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-06T22:30:39.000Z","size":2969,"stargazers_count":815,"open_issues_count":0,"forks_count":126,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-07-31T18:16:47.502Z","etag":null,"topics":["android","animation","jazz-hands","viewpager"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sacot41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-13T05:09:15.000Z","updated_at":"2024-06-19T10:52:39.000Z","dependencies_parsed_at":"2022-09-13T17:50:40.270Z","dependency_job_id":null,"html_url":"https://github.com/sacot41/SCViewPager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacot41%2FSCViewPager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacot41%2FSCViewPager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacot41%2FSCViewPager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacot41%2FSCViewPager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sacot41","download_url":"https://codeload.github.com/sacot41/SCViewPager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493968,"owners_count":20299750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","animation","jazz-hands","viewpager"],"created_at":"2024-07-30T18:00:42.271Z","updated_at":"2025-03-13T22:31:51.379Z","avatar_url":"https://github.com/sacot41.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SCViewPager-green.svg?style=flat)](https://android-arsenal.com/details/1/2369)\n\n# SCViewPager\n_Jazz for android_\n\nA simple ViewPager extends that provide scroll based animation like Jazz Hands for iOS.\nJazz Hands library provided by IFTTT : https://github.com/IFTTT/JazzHands\n\n![alt tag](https://github.com/sacot41/SCViewPager/blob/master/example_2.gif?raw=true)\n\n# Install\n\nWith Gradle (JCenter):\n\n``` groovy\ncompile \"com.dev.sacot41:scviewpager:0.0.4\"\n```\n\n# Start\n\nFirst, add SCViewPager to your project. Create an activity with the viewPage and the views you want to animate.\n\n``` xml\n\u003cRelativeLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n\txmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n\tandroid:layout_height=\"match_parent\"\n\ttools:context=\".MainActivity\"\u003e\n\n\t\u003ccom.dev.sacot41.scviewpager.SCViewPager\n        android:id=\"@+id/viewpager_main_activity\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n\t\u003c/com.dev.sacot41.scviewpager.SCViewPager\u003e\n\n\t\u003cTextView\n        android:id=\"@+id/textview_to_animate\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"@color/white\"\n        android:text=\"@string/textview_bonjour\"/\u003e\n```\n\n\u003c/RelativeLayout\u003e\n\nRetrieve view and add animation after you have set viewPager and his adapter.\n\n``` java\nPoint size = SCViewAnimationUtil.getDisplaySize(this);\n\nView view = findViewById(R.id.textview_to_animate);\nSCViewAnimation viewAnimation = new SCViewAnimation(view);\nviewAnimation.startToPosition((int)(size.x*1.5), null);\nviewAnimation.addPageAnimation(new SCPositionAnimation(this, 0, -(int)(size.x*1.5), 0));\nmViewPager.addAnimation(viewAnimation);\n```\n\n# Disclaimer\n\nThis 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.\n\nIf you want a more complete library, heck Nightonke library, he add more animation and correct some bug : https://github.com/Nightonke/WoWoViewPager.\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacot41%2FSCViewPager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsacot41%2FSCViewPager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacot41%2FSCViewPager/lists"}