{"id":18004730,"url":"https://github.com/matrixxun/immersivedetailsample","last_synced_at":"2025-04-06T20:10:49.148Z","repository":{"id":151025635,"uuid":"94215197","full_name":"matrixxun/ImmersiveDetailSample","owner":"matrixxun","description":"A sample application show how to realize immersive parallax effect header like Google Play Store","archived":false,"fork":false,"pushed_at":"2017-09-22T02:09:18.000Z","size":13330,"stargazers_count":462,"open_issues_count":1,"forks_count":46,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-30T18:09:48.981Z","etag":null,"topics":["android","immersive","parallax","parallax-scrolling","play","playstore","scrollview","toolbar"],"latest_commit_sha":null,"homepage":"","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/matrixxun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-13T13:19:50.000Z","updated_at":"2025-03-16T10:05:22.000Z","dependencies_parsed_at":"2023-04-12T04:31:37.955Z","dependency_job_id":null,"html_url":"https://github.com/matrixxun/ImmersiveDetailSample","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/matrixxun%2FImmersiveDetailSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixxun%2FImmersiveDetailSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixxun%2FImmersiveDetailSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixxun%2FImmersiveDetailSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matrixxun","download_url":"https://codeload.github.com/matrixxun/ImmersiveDetailSample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543591,"owners_count":20955865,"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","immersive","parallax","parallax-scrolling","play","playstore","scrollview","toolbar"],"created_at":"2024-10-30T00:15:44.795Z","updated_at":"2025-04-06T20:10:49.128Z","avatar_url":"https://github.com/matrixxun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ImmersiveDetailSample-brightgreen.svg?style=flat)](https://android-arsenal.com/details/3/5934)\n# ImmersiveDetailSample\nA sample application show how to realize immersive parallax effect header like **Google Play Store**\u003cbr\u003e\n\u003cbr\u003e\n![](https://github.com/matrixxun/ImmersiveDetailSample/raw/master/art/demo.gif) ![](https://github.com/matrixxun/ImmersiveDetailSample/raw/master/art/demo01.gif)\n\n# Feature\n1. Toolbar quick return.\n2. Statusbar\u0026toolbar changes between transparent and solid when gallery visible/invisible.\n3. Gallery parallax effect.\n\n# How to use it\n1. Your detail Activty's theme should be:\n\nres/values/style.xml:\n``` xml\n\u003cstyle name=\"AppTheme.NoActionBarTransparentStatusBar\"\u003e\n    \u003citem name=\"windowActionBar\"\u003efalse\u003c/item\u003e\n    \u003citem name=\"windowNoTitle\"\u003etrue\u003c/item\u003e\n\u003c/style\u003e\n```\nand res/values-v21/style.xml:\n``` xml\n\u003cstyle name=\"AppTheme.NoActionBarTransparentStatusBar\"\u003e\n    \u003citem name=\"windowActionBar\"\u003efalse\u003c/item\u003e    \n    \u003citem name=\"windowNoTitle\"\u003etrue\u003c/item\u003e   \n    \u003citem name=\"android:windowDrawsSystemBarBackgrounds\"\u003etrue\u003c/item\u003e    \n    \u003citem name=\"android:statusBarColor\"\u003e@android:color/transparent\u003c/item\u003e\n\u003c/style\u003e\n```\n2. add \"LollipopCompatSingleton.translucentStatusBar()\" and  \"LollipopCompatSingleton.getInstance().fitStatusBarTranslucentPadding()\" to Activity onCreate() method:\n``` java\nprotected void onCreate(Bundle savedInstanceState) {    \n    LollipopCompatSingleton.translucentStatusBar(this);    \n    super.onCreate(savedInstanceState); \n    setContentView(R.layout.xxxx);\n    ......\n    LollipopCompatSingleton.getInstance().fitStatusBarTranslucentPadding(toolbar, this);\n```\n3. Add ObservableScrollView to your layout xml.\n``` xml\n\u003ccom.matrixxun.immersivedetail.sample.widget.ObservableScrollView        \n    android:id=\"@+id/scrollview\"        \n    android:scrollbars=\"none\"        \n    android:layout_width=\"match_parent\"        \n    android:layout_height=\"match_parent\"\u003e\n    ......\n```\n4. initialize immersive feature.\n``` java\nscrollview.setupImmersiveEffect(getActivity(),imageContainer,toolbar,toolbarColor,toolbarTitle);\n```\n\n## Compat\nAPI level 14+ supported\n\n## Example\nSee example code here on Github. You can also see it live downloading [this apk](https://raw.githubusercontent.com/matrixxun/ImmersiveDetailSample/master/art/app-debug.apk)\n\nLicense\n--------\n\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%2Fmatrixxun%2Fimmersivedetailsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixxun%2Fimmersivedetailsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixxun%2Fimmersivedetailsample/lists"}