android-collapsingtoolbarlayout

DrawerLayout + CollapsingToolbar + Fragments; Toolbar won't collapse or show image

江枫思渺然 提交于 2019-12-04 01:54:53
问题 As the title suggests, I have an activity that has a FrameLayout that houses my Fragments [I am NOT using a Tabs, just Transactions]. I also have a NavigationDrawer and Toolbar . All of these things work fine. The issue is that I'm trying to add a CollapsingToolbarLayout to the Activity layout and have RecyclerView in the Fragment scroll and control the collapsing of the CollapsingToolbarLayout . With the setup shown below, I'm able to use the NavigationDrawer , see the Toolbar and the

footer scrolls off screen when used in CoordinatorLayout

大憨熊 提交于 2019-12-04 01:38:30
问题 I have HomeActivity which contains fragment and at the bottom it has custom navigation view as shown below. By clicking on profile pic, it replaces the fragment with UserProfileView fragment. userProfileView fragment has Collapsing toolbar inside coordinatorLayout. userprofileview.xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:bind="http://schemas.android.com/apk/res-auto"

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">

Collapsing toolbar with image, tabs and FAB

北战南征 提交于 2019-12-03 22:09:10
I'm having difficulties trying to implement the toolbar as in images below: However, I've failed to add the Floating Action Button like shown on image. I'm using Googles design support library. Any ideas? My current XML 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" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match

Scroll doesn't work in NestedScrollView when try to scroll from views with click events

余生长醉 提交于 2019-12-03 18:30:02
问题 I'm using a NestedScrollView in a layout, and am attempting to use the new CoordinatorLayout from the design support library for CollapsingToolbarLayout. My layout file looks like this: <?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" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget

How to have a textview transition to the title in a collapsing toolbar?

寵の児 提交于 2019-12-03 17:27:53
I have a CollapsingToolbarLayout that contains a TextView and a RatingBar under the TextView . Would it be possible to have the TextView somehow transition to the title? My current layout looks like this: I want "Title" to transition up as the toolbar collapses. There will also be a back button, so how would I ensure that the textview transitions to the proper place (to the right side of the back button)? EDIT: Here is my XML <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

Detecting when AppBarLayout/CollapsingToolbarLayout is completely expanded

只愿长相守 提交于 2019-12-03 15:20:21
问题 I have a fragment that uses the new CoordinatorLayout/AppBarLayout/CollapsingToolbarLayout paradigm, and I'd like to be able to detect when the collapsing toolbar is fully expanded so that I can perform an operation on the entire fragment it's in, e.g. popping the fragment off the stack and going to a new one, dismissing the fragment. I have the dismissing code working, I just need to know when and when not to use it. I've experimented a bit with AppBarLayout.OnOffsetChangedListener, but didn

no resource id found for app:layout_scrollflags from CollapsingToolbarLayout

房东的猫 提交于 2019-12-03 14:31:39
问题 The title of this question basically says it all. I get the error: no resource identifier found for app:layout_scrollflags from CollapsingToolbarLayout. I use eclipse and imported the design library jar file. I'm able to use the design support layouts in my classes so that's correct this is a piece of the code i use: <LinearLayout 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"

Fading the whole layout as scrolled up in collapsing bar layout android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 12:40:50
问题 Below is the code of my coordinator layout. It works well. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows=

Expand appbarlayout when recyclerview is scrolled/fling to top

岁酱吖の 提交于 2019-12-03 11:28:56
I implemented a collapsingtoolbar layout with a recyclerview as shown in the sample code attached. My issue is that, when I fling the list downward, it does not go all the way to the top. What happens is that, the scrolling stops right at the point where the AppBarLayout is supposed to end. The effect that I want is upon flinging the list downward, the list will go all the way to the top AND reveal/expand the AppBarLayout My minSdk is 14. Any help or suggestion is greatly appreciated. <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.AppBarLayout> <android.support.design