All Projects → matrixxun → Immersivedetailsample

matrixxun / Immersivedetailsample

A sample application show how to realize immersive parallax effect header like Google Play Store

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Immersivedetailsample

Materialviewpager
A Material Design ViewPager easy to use library
Stars: ✭ 8,224 (+1699.56%)
Mutual labels:  parallax, toolbar
Fancyscrollview
A SwiftUI ScrollView Designed to imitate the App Store and Apple Music ScrollViews (with or without a Parallax Header)
Stars: ✭ 330 (-27.79%)
Mutual labels:  parallax, scrollview
React Native Input Scroll View
Perfect TextInput ScrollView
Stars: ✭ 323 (-29.32%)
Mutual labels:  scrollview
Parallaxbacklayout
无需改动原有activity只需要一个annotation轻松实现任意方向的滑动返回,默认提供微信滑动、跟随滑动、以及单个滑动,并且可以自定义滑动效果
Stars: ✭ 400 (-12.47%)
Mutual labels:  parallax
Raccoon4
APK Downloader for Google Play
Stars: ✭ 369 (-19.26%)
Mutual labels:  playstore
Transformer page view
PageTransformer for flutter
Stars: ✭ 341 (-25.38%)
Mutual labels:  parallax
React Native Parallax Scroll
Parallax scroll view for react-native
Stars: ✭ 385 (-15.75%)
Mutual labels:  parallax
Amazefilemanager
Material design file manager for Android
Stars: ✭ 3,626 (+693.44%)
Mutual labels:  playstore
React Native Store Review
Rate on App/Play Store directly in your React Native app
Stars: ✭ 437 (-4.38%)
Mutual labels:  playstore
Vue Flux
Image slider which comes with 20 cool transitions
Stars: ✭ 359 (-21.44%)
Mutual labels:  parallax
Uiwidget
一个集成TabLayout、UIAlertDialog、UIActionSheetDialog、UIProgressDialog、TitleBarView(自带沉浸式标题栏)、CollapsingTitleBarLayout、RadiusView(圆角及状态背景设置View解放shape文件)、KeyboardHelper(软键盘控制及遮挡控制类)、StatusViewHelper(状态栏沉浸帮助类)、NavigationViewHelper(导航栏沉浸式帮助类)、AlphaViewHelper(View透明度控制帮助类) 等项目常用UI库
Stars: ✭ 400 (-12.47%)
Mutual labels:  toolbar
Indicatorscrollview
🧀 A dynamic scroll view that animates indicators according to its scroll position.
Stars: ✭ 355 (-22.32%)
Mutual labels:  scrollview
Extended text
A powerful extended official text for Flutter, which supports Speical Text(Image,@somebody), Custom Background, Custom overFlow, Text Selection.
Stars: ✭ 345 (-24.51%)
Mutual labels:  toolbar
Tlyshynavbar
Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
Stars: ✭ 3,780 (+727.13%)
Mutual labels:  scrollview
Sppagemenu
分页菜单,功能非常齐全,满足绝大多数APP,简书地址:
Stars: ✭ 402 (-12.04%)
Mutual labels:  scrollview
Androidfastscroll
Fast scroll for Android RecyclerView and more
Stars: ✭ 316 (-30.85%)
Mutual labels:  scrollview
Android
An app for creating push notifications for new messages posted to gotify/server.
Stars: ✭ 353 (-22.76%)
Mutual labels:  playstore
Jxpagelistview
高仿闲鱼、转转、京东、中央天气预报等主流APP列表底部分页滚动视图
Stars: ✭ 377 (-17.51%)
Mutual labels:  scrollview
Prophiler
PHP Profiler & Developer Toolbar (built for Phalcon)
Stars: ✭ 445 (-2.63%)
Mutual labels:  toolbar
Minimap.vim
📡 Blazing fast minimap / scrollbar for vim, powered by code-minimap written in Rust.
Stars: ✭ 404 (-11.6%)
Mutual labels:  scrollview

Android Arsenal

ImmersiveDetailSample

A sample application show how to realize immersive parallax effect header like Google Play Store

Feature

  1. Toolbar quick return.
  2. Statusbar&toolbar changes between transparent and solid when gallery visible/invisible.
  3. Gallery parallax effect.

How to use it

  1. Your detail Activty's theme should be:

res/values/style.xml:

<style name="AppTheme.NoActionBarTransparentStatusBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

and res/values-v21/style.xml:

<style name="AppTheme.NoActionBarTransparentStatusBar">
    <item name="windowActionBar">false</item>    
    <item name="windowNoTitle">true</item>   
    <item name="android:windowDrawsSystemBarBackgrounds">true</item>    
    <item name="android:statusBarColor">@android:color/transparent</item>
</style>
  1. add "LollipopCompatSingleton.translucentStatusBar()" and "LollipopCompatSingleton.getInstance().fitStatusBarTranslucentPadding()" to Activity onCreate() method:
protected void onCreate(Bundle savedInstanceState) {    
    LollipopCompatSingleton.translucentStatusBar(this);    
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.xxxx);
    ......
    LollipopCompatSingleton.getInstance().fitStatusBarTranslucentPadding(toolbar, this);
  1. Add ObservableScrollView to your layout xml.
<com.matrixxun.immersivedetail.sample.widget.ObservableScrollView        
    android:id="@+id/scrollview"        
    android:scrollbars="none"        
    android:layout_width="match_parent"        
    android:layout_height="match_parent">
    ......
  1. initialize immersive feature.
scrollview.setupImmersiveEffect(getActivity(),imageContainer,toolbar,toolbarColor,toolbarTitle);

Compat

API level 14+ supported

Example

See example code here on Github. You can also see it live downloading this apk

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].