{"id":18270212,"url":"https://github.com/chrisjenx/Paralloid","last_synced_at":"2025-04-04T23:31:50.875Z","repository":{"id":10841031,"uuid":"13121000","full_name":"chrisjenx/Paralloid","owner":"chrisjenx","description":"Paralloid - (Pah-rah-loid) The Android Parallax library - DEPRECATED. ","archived":false,"fork":false,"pushed_at":"2015-09-01T09:13:30.000Z","size":2544,"stargazers_count":440,"open_issues_count":14,"forks_count":88,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-03-29T10:49:54.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/chrisjenx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-09-26T11:55:52.000Z","updated_at":"2024-10-29T14:41:35.000Z","dependencies_parsed_at":"2022-06-29T19:50:04.712Z","dependency_job_id":null,"html_url":"https://github.com/chrisjenx/Paralloid","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/chrisjenx%2FParalloid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisjenx%2FParalloid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisjenx%2FParalloid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisjenx%2FParalloid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisjenx","download_url":"https://codeload.github.com/chrisjenx/Paralloid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"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-11-05T11:38:24.907Z","updated_at":"2025-04-04T23:31:48.840Z","avatar_url":"https://github.com/chrisjenx.png","language":"Java","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"Paralloid - DEPRECATED\n=========\n\nDEPRECATED - Use the project for more of guide and ideas how to apply parallax techniques. I will not support this library anymore.\n\nParalloid - (Pah-rah-loid) The Android Parallax library\n\nCompatible back to API 7\n\nAn example application, [Paralloid Library Example](https://play.google.com/store/apps/details?id=uk.co.chrisjenx.paralloidexample\u0026hl=en),  can be downloaded from the Play Store.\n\nParallaxScrollView is dead..\n----------------------------\n\nI originally wrote ParallaxScrollView a while back as proof of concept, people took surprisingly well to it;\nbut from the get-go it was a fundamentally flawed.\n\nTightly-coupled and inflexible, made it difficult to maintain and confusing for people to use.\n\nFeatures\n--------\n\nCurrently limited but will expand when requests.\n\n+ Parallax another view when the parent scrolls.\n+ Parallax multiple backgrounds.\n+ Transformers, Parallax in different ways and directions\n\n__Supports:__\n\n- `ListView`\n- `ScrollView`\n- `HorizontalScrollView`\n\n\nModular\n-------\n\nParalloid is designed to be modular and very loosely coupled (to an extent).\n\nTwo high level modules exist\n\n- `paralloid` - which is the library which everything extends from.\n- `paralloidviews` - which extends the library with a couple of pre-extended ScrollableViews.\n- `paralloidexamples` - which is of course the examples App.\n\nGenerally use `paralloidviews` as it contains everything you need to get going.\n\nGetting Started\n---------------\n\n### Dependency\n\n_Currently I only support Gradle_\n\n#### Locally:\n\nTemporary steps from @therealkris.\n\n- First, I cloned the library into `myproject/libs/paralloid`.\n- In my `settings.gradle`, I added include `':libs:paralloid:paralloid'`, `':libs:paralloid:paralloidviews'`.\n- In my `build.gradle`, I added `compile project(':libs:paralloid:paralloid')`, `project(':libs:paralloid:paralloidviews')`.\n- In `libs/paralloid/paralloid`, I removed the `uploadArchives {}` block.\n- In `libs/paralloid/paralloidviews`, I removed the `uploadArchives {}` block AND changed the dependency to read: `compile project(':libs:paralloid:paralloid')` instead of `compile project(':paralloid')`\n\n#### Or Repository (coming soon):\n\n    dependencies {\n        compile 'uk.co.chrisjenx.paralloid:paralloid:0.1.+'\n    }\n\n### Layout\n\n#### ScrollView\n\nThis is an example, please refer to the `paralloidexample` App for full code.\n\n    \u003cFrameLayout ..\u003e\n    \u003cFrameLayout\n    \t\tandroid:id=\"@+id/top_content\"\n               \tandroid:layout_width=\"match_parent\"\n               \tandroid:layout_height=\"192dp\"/\u003e\n\n    \u003cuk.co.chrisjenx.paralloid.views.ParallaxScrollView\n            android:id=\"@+id/scroll_view\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:fillViewport=\"true\"\u003e\n\n        \u003cLinearLayout\n        \tandroid:id=\"@+id/scroll_content\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:orientation=\"vertical\"\n                android:paddingTop=\"192dp\"/\u003e\n\n    \u003c/uk.co.chrisjenx.paralloid.views.ParallaxScrollView\u003e\n    \u003c/FrameLayout\u003e\n\n\n### Fragment\n\nInside your `onViewCreated()` or `onCreateView()`.\n\n    //...\n    FrameLayout topContent = (FrameLayout) rootView.findViewById(R.id.top_content);\n    ScrollView scrollView = (ScrollView) rootView.findViewById(R.id.scroll_view);\n    if (scrollView instanceof Parallaxor) {\n            ((Parallaxor) scrollView).parallaxViewBy(topContent, 0.5f);\n    }\n    // TODO: add content to top/scroll content\n\n\nThats it!\n\nHave a look at the `Parallaxor` interface for applicable Parallax methods.\n\n\nCustom Views\n-------------\n\nI tried to keep this as simple as possible, you can nearly copy and paste this.\n\n- Extend the Scrollable view (or the one you allready have).\n- Implement the `Parallaxor` interface.\n- Job done! See below for an example\n\n__Example implementation:__\n\n    public class MyScrollView extends ScrollView implements Parallaxor {\n      //...\n      ParallaxViewController mParallaxViewController;\n\n      // Call init() in constructors\n      private void init() {\n        mParallaxViewController = ParallaxViewController.wrap(this);\n      }\n\n      @Override\n      protected void onScrollChanged(int l, int t, int oldl, int oldt) {\n        super.onScrollChanged(l, t, oldl, oldt);\n        mParallaxViewController.onScrollChanged(this, l, t, oldl, oldt);\n      }\n\n      // region Implementation of Parallaxor\n\n      @Override\n      public void parallaxViewBy(View view, float multiplier) {\n        mParallaxViewController.parallaxViewBy(view, multiplier);\n      }\n\n      @Override\n      public void parallaxViewBy(View view, Transformer transformer, float multiplier) {\n        mParallaxViewController.parallaxViewBy(view, transformer, multiplier);\n      }\n\n      @Override\n      public void parallaxViewBackgroundBy(View view, Drawable drawable, float multiplier) {\n        mParallaxViewController.parallaxViewBackgroundBy(view, drawable, multiplier);\n      }\n\n      // endregion\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisjenx%2FParalloid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisjenx%2FParalloid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisjenx%2FParalloid/lists"}