{"id":13396164,"url":"https://github.com/xgc1986/ParallaxPagerTransformer","last_synced_at":"2025-03-13T22:31:47.978Z","repository":{"id":16403580,"uuid":"19154494","full_name":"xgc1986/ParallaxPagerTransformer","owner":"xgc1986","description":"A pager for Android with parallax effect","archived":false,"fork":false,"pushed_at":"2016-07-11T10:24:40.000Z","size":7251,"stargazers_count":658,"open_issues_count":5,"forks_count":93,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-07-31T18:16:40.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xgc1986.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-25T17:27:52.000Z","updated_at":"2024-07-06T12:47:37.000Z","dependencies_parsed_at":"2022-09-17T15:42:57.815Z","dependency_job_id":null,"html_url":"https://github.com/xgc1986/ParallaxPagerTransformer","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/xgc1986%2FParallaxPagerTransformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgc1986%2FParallaxPagerTransformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgc1986%2FParallaxPagerTransformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgc1986%2FParallaxPagerTransformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xgc1986","download_url":"https://codeload.github.com/xgc1986/ParallaxPagerTransformer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493909,"owners_count":20299739,"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-07-30T18:00:41.626Z","updated_at":"2025-03-13T22:31:47.377Z","avatar_url":"https://github.com/xgc1986.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Java","Index","Libs"],"sub_categories":["\u003cA NAME=\"Animations\"\u003e\u003c/A\u003eAnimations"],"readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ParallaxPagerTransformer-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1312)\n\n# ParallaxPagerTransformer\n\nA pager transformer for Android with parallax effect\n\n## Installation\n\nin your build.gradle file\n\n    dependencies {\n        // ...\n        compile 'com.xgc1986.android:parallaxpagertransformer:1.0.4'\n    }\n\n## Usage\n\nminSdkVersion 11\n\nYou only have to pass to the ParallaxTransformer the id of the element you want have the parallax effect\n\n```java\n\n\t//...\n\timport com.xgc1986.parallaxPagerTransformer.ParallaxPagerTransformer;\n\n\tpublic class MainActivity extends Activity {\n\n\t\tViewPager mPager;\n    \tFragmentStatePagerAdapter mAdapter;\n\n\t\tpublic void onCreate(Bundle savedInstanceState) {\n\t\t\t/** ... **/\n\n\t\t\tmPager = (ViewPager) findViewById(R.id.pager);\n\n        \t// creating the parallaxTransformer, you only need to pass the id of the View (or ViewGroup) you want to do the parallax effect\n\n        \tmPager.setPageTransformer(false, new ParallaxPagerTransformer(R.id.parallaxContent));\n        \tmAdapter = new FragmentStatePagerAdapter(getSupportFragmentManager());\n        \tmAdapter.setPager(mPager);\n\n        \t/** ... **/\n\t\t}\n\t}\n\n```\n\nAnd that's all, you can see in action \u003ca href=\"https://www.youtube.com/watch?v=5zEOUWY9Hvo\" target=\"_blank\"\u003eHere\u003c/a\u003e\n\n## Other works\n\u003ca href=\"https://github.com/xgc1986/RippleButton\" target=\"_blank\"\u003eRipple Button\u003c/a\u003e\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ParallaxPagerTransformer-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1312)\n\nLicense\n--------\n\n    Copyright 2015 Javier Gonzalez\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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgc1986%2FParallaxPagerTransformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxgc1986%2FParallaxPagerTransformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgc1986%2FParallaxPagerTransformer/lists"}