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
44
votes
2 answers

Collapsing Toolbar layout with logo, title, subtitle in toolbar

I want do this but with Collapsing toolbar layout or display the logo and title in toolbar after scroll.
40
votes
6 answers

Smooth animated Collapsing Toolbar with Android Design Support Library

Are there anyway to make Android Design Support Library's Collapsing animation smoother while scrolling? When I release scrolling, it stops suddenly. But what I want is: collapsing animation will continue smoothly even if you stop…
37
votes
6 answers

Prevent CollapsingToolbarLayout collapse if not needed

Using: compile 'com.android.support:design:23.0.0' compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.android.support:cardview-v7:23.0.0' compile 'com.android.support:recyclerview-v7:23.0.0' With the project Cheesesquare updated. Into…
35
votes
8 answers

no resource id found for app:layout_scrollflags from CollapsingToolbarLayout

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…
35
votes
7 answers

Using windowTranslucentStatus with CollapsingToolbarLayout

I'm trying to get a similar effect to what is seen on google play. I've got the below layout to show a transparent toolbar with an image behind it. When the user scrolls there is a parallax effect on the imageview as it scrolls off the screen. The…
34
votes
5 answers

How I can multiline the expanded title of CollapsingToolbarLayout?

My problem is the next. I would use relatively large texts as CollapsingToolbarLayout title so I need to show it as multiline mode. When I try to change text appearance through the setExpandedTitleTextAppearance() method it doesn't work. The code…
33
votes
4 answers

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

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:
Arun
  • 613
  • 1
  • 7
  • 14
32
votes
2 answers

What is layout_collapseParallaxMultiplier used in CollapsingToolbarLayout?

What is layout_collapseParallaxMultiplier used in CollapsingToolbarLayout ? I have seen the android developer doc, but I didn't understand. please explain this parameter & it's effect when it used with layout_collapseMode with example. Below is a…
32
votes
2 answers

CollapsingToolbarLayout title as a shared element transition

I have a TextView in my activity A. How can I make shared element transition of TextView from activity A and a title of CollapsingToolbarLayout.setTitle() from activity B? Is there way to obtain its title view id from CollapsingToolbarLayout's…
31
votes
1 answer

CollapsingToolbarLayout with a custom view

I'm trying to implement the CollapsingToolbarLayout with a custom view, but I'm unable to do it : What I want to do (sorry I can't post images so it's on imgur) : Expanded, the header is a profile screen with image and title Not expanded (on…
ChargerDukes
  • 373
  • 1
  • 4
  • 9
30
votes
5 answers

How to avoid CollapsingToolbarLayout not being snapped or being "wobbly" when scrolling?

Background Suppose you have an app you've created that has a similar UI as the one you can create via the wizard of "scrolling activity", yet you wish the scrolling flags to have snapping, as…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
30
votes
5 answers

How to disable scrolling of AppBarLayout in CoordinatorLayout?

I have MapFragment with parallax effect inside AppBarLayout: I want to disable scrolling on AppBarLayout, because it is not possible to move across map, since touch evenys on the map are always handled as scroll events. I would like to handle…
30
votes
3 answers

How to restore Collapsing Toolbar Layout State after screen orientation change

I've been searching for the solution of my problem for some time and didn't find solution. I want to restore my fragment's layout after screen orientation change. I have Collapsing Toolbar Layout with banner image. After screen rotation my toolbar…
29
votes
5 answers

CollapsingToolBarLayout - status bar scrim color doesn't change

I updated my android studio few days ago and started working with the CoordinatorLayout and CollapsingToolbarLayout just trying stuff. It seems that the Toolbar scrim colour override the status bar initial colour and the status bar scrim colour…
28
votes
7 answers

How to center the title of a CollapsingToolbarLayout?

I tried setExpandTitleTextAppearance, but it didn't work. I want to center the expanded title text.
Javed Khatri
  • 719
  • 2
  • 7
  • 9
1
2
3
82 83