Questions tagged [android-collapsingtoolbarlayout]

CollapsingToolbarLayout is a wrapper for Toolbar that provides several visual effects that are bind to the content scroll events.

CollapsingToolbarLayout is a ViewGroup that serves as a wrapper for Toolbar providing several visual effects to it. The class is part of the library.

The effects provided by the class include

  • Collapsing title
  • Content scrim
  • Status bar scrim
  • Parallax scrolling children
  • Pinned position children

For the correct behavior the CollapsingToolbarLayout has to be direct child of AppBarLayout placed within a CoordinatorLayout that contains a vertically scrollable View with app:layout_behavior parameter specified. The effects are bind to the vertical scrolling of this View.

For more information visit class reference or the Android developers blog.

1241 questions
23
votes
3 answers

(Design Support Library) CollapsingToolbarLayout -- Toolbar not getting pinned on collapse

I'm having trouble integrating the Design Support Library into my application. For some reason, the toolbar collapses with the CollapsingToolbarLayout, and does not leave it pinned like in the Cheesesquare example by Chris…
22
votes
3 answers

Stop scroll on CollapsingToolbarLayout so it doesn't completely collapse

I have a CollapsingToolbarLayout setup and im placing a wallpaper there. I want to be able to stop it from collapsing all the way. I have tried minheight and many other things but can't figure it out. How can i get it to stop collapsing to the…
BigDX
  • 3,519
  • 5
  • 38
  • 52
21
votes
8 answers

How to avoid blocking of scrolling itself when using setNestedScrollingEnabled(false)?

Background We have quite a complex layout that has CollapsingToolbarLayout in it, together with a RecyclerView at the bottom. In certain cases, we temporarily disable the expanding/collapsing of the CollapsingToolbarLayout, by calling…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
21
votes
5 answers

Error Inflating CollapsingToolbarLayout

I recently updated the support design library to the latest version and now every activity that has a CollapsingToolbarLayout throws the following exception: java.lang.NoSuchMethodError: No static method…
20
votes
5 answers

Collapsing ToolBar Layout with viewpager

I am using CollapsingBarLayout with viewpager and the fragments of viewpager are having listview, gridview. Here is my code:
20
votes
5 answers

CollapsingToolbarLayout: Change home button color when expanded

I have implemented the new CollapsingToolbarLayout from Chris Banes example code. However, the images for the backdrop image view have all a white background. The toolbar theme is ThemeOverlay.AppCompat.Dark.ActionBar so the icons are white too,…
Denis Loh
  • 2,194
  • 2
  • 24
  • 38
19
votes
1 answer

CollapsingToolbarLayout fade out animation speed

Is there any way to edit animation speed for CollapsingToolabrLayout ? I mean the fade out animation of View thats collapsed on scroll down.
TheJudge
  • 576
  • 1
  • 9
  • 30
19
votes
1 answer

Transparent AppBarLayout and CollapsingToolbarLayout

I would like to achive the following layout: Map as a base layout Transparent window above inside a CollapsingToolbarLayout RecyclerView for content I included an example of how this should look like. I was following this great example from …
19
votes
1 answer

How to expand AppBarLayout when scrolling down reaches at top of the RecyclerView

I am working on one android app in which I am using CoordinatorLayout,AppBarLayout and CollapsingToolbarLayout to use the advance collapse bar functionality. I am using recyclerview to show the number of items in the fragment. When I'm scrolling up…
19
votes
7 answers

NestedScrollView wont't scroll to the end when used with CollapsingToolbarLayout

I want to use NestedScrollView with CollapsingToolbarLayout. In NestedScrollView there is really long content. Unfortunately I can't scroll to the end. Some of this long content is cut. What is strange when I turn screen, scrolling works fine and…
19
votes
3 answers

CoordinatorLayout leaves empty space at the bottom after scrolling

I am trying to implement Google's newest design tricks with CoordinatorLayout and have problems with scrolling and parallax effect. After Activity is displayed, everything looks ok but the problem occurs when I try to scroll. It seems the bottom…
19
votes
4 answers

How to disable CollapsingToolbar's collapse when scroll has not content?

I am using android support design 'com.android.support:design:22.2.1' my problem is that when the scroll has no content in it, the collapsing toolbar still enables the collapse action. I need to remove the collapsing of the view if the scroll has no…
19
votes
3 answers

Clickable CardView inside NestedScroll doesn't trigger scrolling

I have a layout with a CoordinatorLayout, and AppBarLayout and a NestedScrollView, inside the NestedScrollView I have multiple CardViews, everything works ok until I set the CardViews to be clickable, then if I start a scroll within a CardView,…
19
votes
2 answers

CollapsingToolbarLayout | Scrolling and layout issues 2

Related Questions CollapsingToolbarLayout | Scrolling and layout issues Backgroud I want to use 2 different fragments that will allow me to change the layout based on orientation and screen size Header Image (Currently just an…
18
votes
3 answers

CollapsingToolbarLayout not collapsing when EditText get focused

I am using CollapsingToolBar inside CoordinatorLayout and I've NestScrollView containing some EditText as child views. What i am facing is when edittext get focused and keybaoard appear my complete view doesn't scroll up. Below is the code and image…