android-appbarlayout

Scrolling is not working with CoordinatorLayout + parallax image + BottomSheetLayout

此生再无相见时 提交于 2019-12-05 09:32:59
问题 Introduction I have an activity, which implements a common pattern with parallax header image and scrolling content using CoordinatorLayout , AppBarLayout and CollapsingToolbarLayout . My xml layout looks like this: <android.support.design.widget.CoordinatorLayout android:fitsSystemWindows="true" android:layout_height="match_parent" android:layout_width="match_parent"> <android.support.design.widget.AppBarLayout android:fitsSystemWindows="true" android:id="@+id/appbar" android:layout_height=

Hiding Toolbar on scroll with recyclerview inside fragment

*爱你&永不变心* 提交于 2019-12-05 08:56:52
问题 I'm trying to get the toolbar to collapse on scroll when a recyclerview inside a fragment is scrolled. To start, heres my main layout: <DrawerLayout> <RelativeLayout android:id="@+id/mainRelativeLayout" android:layout_width="match_parent" android:layout_height="match_parent" > <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <android.support.design.widget.AppBarLayout android:id="@+id/appBarLayout" android:layout_width

AppBarLayout child doesn't collapse when scrolling

两盒软妹~` 提交于 2019-12-05 04:59:30
问题 I have a AppBarLayout which contains an horizontal RecyclerView among its children. The sibling of the AppBarLayout is a ViewPager (which contains a vertical RecyclerView ). Here is the XML: <android.support.design.widget.CoordinatorLayout android:id="@+id/coordinatorLayout" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=

How can BottomSheetBehavior, AppBarLayout.ScrollingViewBehavior, and AppBarLayout.Behavior work together in unison?

主宰稳场 提交于 2019-12-05 03:22:25
问题 In the GIF below you'll see I'm having trouble coordinating (heh) an AppBarLayout, containing a CollapsingToolbarLayout, and a Persistent BottomSheet in such a way that they play nicely together Goal: Have the fragment contents, seen above in turquoise (#26999f), remain above, yet scroll behind, the BottomSheet, seen above in dark green (#12783e), while also respecting the AppBarLayout and its Behavior Again, as you can see from the GIF I'm close; the fragment contents is using a custom

Collapsing Toolbar Like Google Play Store

夙愿已清 提交于 2019-12-04 18:11:51
问题 I want to implement a collapsing toolbar like google Play Store. I have achieved functionality somewhat but that is only working for portrait Screen. Here is a sample of screenshot of what i was able to do. Now what i want to do is when i change my device orientation to LandScape mode it should look Exactly Like This. So what my main question is how to handle these orientation changes. Is there any official android component available that can do this kind of thing or I will have to Z-index

How to recreate Android quick settings sliding panel?

余生长醉 提交于 2019-12-04 14:07:15
问题 In my app I want to recreate something that is very similar to the Lollipop+ quick settings panel that everyone knows. That is: by clicking or dragging the header, I want a panel to slide down from below the header and push down the existing content . Applied to my app now, the header is a Toolbar and the main content is a RecyclerView showing a list of blog posts. By clicking or dragging the Toolbar, I'd like a panel to appear to show some stats about the blog. Like so: I have been messing

(Collapsing)Toolbar title resets its position after Snackbar appearance

ε祈祈猫儿з 提交于 2019-12-04 05:43:37
I have a layout with CollapsingToolbarLayout and CoordinatorLayout as root element. Whenever a Snackbar is shown in the activity the title of the toolbar resets its position to the default expanded title position of the CollapsingToolbar even if the toolbar is not (fully) expanded. The second picture shows that the title is fixed no matter if the toolbar expands or not. The result is the same when I call snackbar.show() in activity or fragment . My layout structure looks like this: <CoordinatorLayout> <AppBarLayout> <CollapsingToolbarLayout> <Toolbar /> <TabLayout /> </CollapsingToolbarLayout>

Scrolling is not working with CoordinatorLayout + parallax image + BottomSheetLayout

人盡茶涼 提交于 2019-12-03 23:50:57
Introduction I have an activity, which implements a common pattern with parallax header image and scrolling content using CoordinatorLayout , AppBarLayout and CollapsingToolbarLayout . My xml layout looks like this: <android.support.design.widget.CoordinatorLayout android:fitsSystemWindows="true" android:layout_height="match_parent" android:layout_width="match_parent"> <android.support.design.widget.AppBarLayout android:fitsSystemWindows="true" android:id="@+id/appbar" android:layout_height="wrap_content" android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay">

CoordinatorLayout + AppbarLayout + Viewpager not resize child layout

十年热恋 提交于 2019-12-03 22:35:31
I have a problem using CoordinatorLayout in conjunction with ViewPager and the ViewPager: the layout does not resize correctly. Supose that the height solved includes tabs height. So when I scroll to bottom i see this: main layout code: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/coordinator" android:layout_width="match_parent" android:layout_height="match_parent" android

Android appbarlayout elevation appears in status bar

故事扮演 提交于 2019-12-03 22:34:15
How do I get rid of the elevation in the status bar? If I set in AppbarLayout the app:elevation to 0dp the elevation doesn't appear anymore in status bar but also not below the AppbarLayout. How do I just get the elevation under the AppbarLayout? Here's a screenshot of what I mean: puush link , notice the shadow in the status bar :( Thanks! Our concern is about shadow of AppBarLayout visible when status bar is transparent. Having an opaque status bar is not viable at all times. This happens on Lollipop & above only because of dynamic shadow rendering. On Marshmallow the wrong shadow looks even