{"id":13507613,"url":"https://github.com/jfeinstein10/JazzyViewPager","last_synced_at":"2025-03-30T09:32:58.266Z","repository":{"id":6706554,"uuid":"7952078","full_name":"jfeinstein10/JazzyViewPager","owner":"jfeinstein10","description":"An easy to use ViewPager that adds an awesome set of custom swiping animations. Just change your ViewPagers to JazzyViewPagers, two more steps, and you're good to go!","archived":false,"fork":false,"pushed_at":"2015-08-30T23:33:20.000Z","size":995,"stargazers_count":2664,"open_issues_count":43,"forks_count":809,"subscribers_count":179,"default_branch":"master","last_synced_at":"2025-03-17T10:55:36.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/jfeinstein10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-01T04:57:42.000Z","updated_at":"2025-03-02T03:40:47.000Z","dependencies_parsed_at":"2022-08-20T05:21:05.491Z","dependency_job_id":null,"html_url":"https://github.com/jfeinstein10/JazzyViewPager","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/jfeinstein10%2FJazzyViewPager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeinstein10%2FJazzyViewPager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeinstein10%2FJazzyViewPager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeinstein10%2FJazzyViewPager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfeinstein10","download_url":"https://codeload.github.com/jfeinstein10/JazzyViewPager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245276185,"owners_count":20588893,"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":[],"created_at":"2024-08-01T02:00:36.994Z","updated_at":"2025-03-30T09:32:58.247Z","avatar_url":"https://github.com/jfeinstein10.png","language":"Java","funding_links":[],"categories":["CN","Java","Uncategorized"],"sub_categories":["[Jeremy Feinstein](https://github.com/jfeinstein10)","Uncategorized"],"readme":"JazzyViewPager\n==============\n\nAn easy to use ViewPager that adds an awesome set of custom swiping animations. \nJust change your ViewPagers to JazzyViewPagers and you're good to go!\n\nIf you're looking at the name of the library and thinking \"... so what does jazz have to do with it?\"\nI'd like to direct you to the following definition that I found in a dictionary:\n\n```\njazz someone or something up:\n\tto make someone or something more exciting or sexy;\n\tto make someone or something appeal more to contemporary tastes.\n```\n\n**The aim of this library is to do exactly this: jazz up the normal, everyday `ViewPager`**\n\t\nI've included a pretty barebones `apk` to show what the `TransitionEffect.Tablet` animation does. \nThe example app will get better, but this is just to get something in your hands quickly :D!\n\nThis project was inspired by CyanogenMod's Trebuchet launcher.\n\nAnimations Available\n-------\nThe `JazzyViewPager`'s animations are encapsulated in `TransitionEffect`. I'll be adding more, but if you can think of anything \nin particular, let me know by filing an \"Enhancement\" in the Issues section.\n```java\npublic enum TransitionEffect {\n    \tStandard,\n\t\tTablet,\n\t\tCubeIn,\n\t\tCubeOut,\n\t\tFlip,\n\t\tStack,\n\t\tZoomIn,\n\t\tZoomOut,\n\t\tRotateUp,\n\t\tRotateDown,\n\t\tAccordion\n\t}\n```\nYou can select your animation by calling\n```java\nprivate JazzyViewPager mJazzy;\n/* ... */\nmJazzy.setTransitionEffect(TransitionEffect.*);\n```\n\n\nModifying your `PagerAdapter`\n-------\nDue to the limitations of the `ViewPager` class (which `JazzyViewPager` is built upon) in order to get the animations to work correctly \nfor more than 3 Views, you'll have to add the following to the `instantiateItem` method of your `PagerAdapter`.\n```java\nprivate JazzyViewPager mJazzy;\n/* ... */\n@Override\npublic Object instantiateItem(ViewGroup container, final int position) {\n    Object obj = super.instantiateItem(container, position);\n\tmJazzy.setObjectForPosition(obj, position);\n\treturn obj;\n}\n```\nOnce your `Object` is registered with the `JazzyViewPager`, you're good to go!\n\nLicense\n-------\n\n    Copyright 2013 Jeremy Feinstein\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n    http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfeinstein10%2FJazzyViewPager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfeinstein10%2FJazzyViewPager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfeinstein10%2FJazzyViewPager/lists"}