{"id":13396391,"url":"https://github.com/Narfss/ParallaxEverywhere","last_synced_at":"2025-03-13T23:31:01.318Z","repository":{"id":23717654,"uuid":"27090401","full_name":"Narfss/ParallaxEverywhere","owner":"Narfss","description":"Parallax everywhere is a library with alternative android widgets with parallax effects.","archived":false,"fork":false,"pushed_at":"2018-06-20T13:24:30.000Z","size":19553,"stargazers_count":712,"open_issues_count":13,"forks_count":96,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-10-30T03:48:31.872Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Narfss.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":"2014-11-24T19:06:44.000Z","updated_at":"2024-10-18T14:34:48.000Z","dependencies_parsed_at":"2022-08-21T22:00:40.615Z","dependency_job_id":null,"html_url":"https://github.com/Narfss/ParallaxEverywhere","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/Narfss%2FParallaxEverywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narfss%2FParallaxEverywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narfss%2FParallaxEverywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narfss%2FParallaxEverywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Narfss","download_url":"https://codeload.github.com/Narfss/ParallaxEverywhere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243268075,"owners_count":20263801,"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:49.369Z","updated_at":"2025-03-13T23:31:01.295Z","avatar_url":"https://github.com/Narfss.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","滚动视差(Parallex)","Index","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"\r\n# ![](https://raw.githubusercontent.com/Narfss/ParallaxEverywhere/master/sample/src/main/res/drawable-mdpi/ic_launcher.png) Parallax Everywhere#\r\n\r\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ParallaxEverywhere-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1213)\r\n\r\n\r\nParallax everywhere (PEW) is a library with alternative android views using parallax effects.\r\n\r\n## Demo ##\r\n![](https://raw.githubusercontent.com/Narfss/ParallaxEverywhere/master/parallax-everywhere-animation-optimize.gif)\r\n\r\nYou can try the demo app on google play.\r\n\r\nhttps://play.google.com/store/apps/details?id=com.fmsirvent.ParallaxEverywhereSample\r\n\r\n### Views with effect? ###\r\n\r\nAndroid view | PEW view\r\n--- | ---\r\nImageView | PEWImageView\r\nTextView | PEWTextView\r\n\r\n### How it works? ###\r\n\r\n* Any parallax views (PEW*) needs to be inside a view with scroll events, ej: scrollView, listView, gridView....\r\n* Parallax effect on views will be related to its position on device screen.\r\n* Parallax effect in ImageView is calculated with left image in Scale mode centerCrop, centerInside or center. You can't make more parallax effect.\r\n* Parallax effect in no image views needs a size parallax parameter (read:  Attributes)\r\n\r\n### Show me the code ###\r\n\r\nGradle dependencies:\r\n\r\n```groovy\r\ncompile 'com.fmsirvent:parallaxeverywhere:1.0.4'\r\n```\r\n\r\nCode in layout:\r\n\r\n```xml\r\n  \u003c!-- add on top parent layout: xmlns:pew=\"http://schemas.android.com/apk/res-auto\" --\u003e\r\n\r\n\r\n   \u003cFrameLayout\r\n        android:layout_width=\"0dp\"\r\n        android:layout_height=\"match_parent\"\r\n        android:layout_gravity=\"center\"\r\n        android:layout_margin=\"10dp\"\r\n        android:layout_weight=\"1\"\u003e\r\n\r\n        \u003ccom.fmsirvent.ParallaxEverywhere.PEWImageView\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_gravity=\"center\"\r\n            android:layout_margin=\"10dp\"\r\n            android:scaleType=\"centerCrop\"\r\n            android:src=\"@drawable/alicante_explanada\" /\u003e\r\n\r\n        \u003ccom.fmsirvent.ParallaxEverywhere.PEWTextView\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_margin=\"10dp\"\r\n            android:gravity=\"bottom|center_horizontal\"\r\n            android:text=\"@string/alicante_explanada\"\r\n            android:textColor=\"@android:color/white\"\r\n            pew:block_parallax_x=\"true\"\r\n            pew:parallax_x=\"160dp\"\r\n            pew:parallax_y=\"160dp\"\r\n            pew:reverse=\"reverseY\" /\u003e\r\n\r\n    \u003c/FrameLayout\u003e\r\n\r\n```\r\n\r\nProguard:\r\n\r\n```\r\n-dontwarn com.fmsirvent.ParallaxEverywhere.**\r\n```\r\n\r\n### Attributes ###\r\n\r\n**All PEW**\r\n\r\n* **reverse**  = [\"none\", \"reverseX\", \"reverseY\", \"reverseBoth\"]\r\n  Change the direction of parallax effect. Default value \"none\".\r\n\r\n* **block_parallax_x** and **block_parallax_y**  = \"boolean\"\r\n  Blocks parallax effect. Default value false.\r\n\r\n* **interpolation** = [\"linear\", \"accelerate_decelerate\", \"accelerate\", \"anticipate\", \"anticipate_overshoot\", \"bounce\", \"decelerate\", \"overshoot\"]\r\n  Animation interpolation. Default value \"linear\".\r\n\r\n* **update_onDraw**  = = \"boolean\"\r\n  Experimental attribute: update the parallax effect on draw event. Try if the parents don't has scroll. Now only works on +API:16 (Jelly bean). Default value false.\r\n\r\n**Only: no image PEW**\r\n\r\n* **parallax_x** and **parallax_y** = \"dimension\"\r\nIn non widgets images is necessary specify the size of parallax effect. The size will be split in half for each side. Default value 0.\r\n\r\n## License\r\n\r\nParallaxEverywhere is available under the MIT license. See the LICENSE file for more info.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNarfss%2FParallaxEverywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNarfss%2FParallaxEverywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNarfss%2FParallaxEverywhere/lists"}