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

Expand appbarlayout when recyclerview is scrolled/fling to top

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…
11
votes
2 answers

Android Collapsing Toolbar not using inertia like Google Play App does

I'm using the Android Design Support Library to create an Activity with a Collapsible Toolbar with a nice fading effect, just like Google Play or Whatsapp's Contact profile. I will put the activity layout at the end but bear in mind this is just the…
dbar
  • 1,740
  • 1
  • 16
  • 20
11
votes
1 answer

How to change toolbar icons color on collapsing

I'm using CoordinatorLayout in my project . It works fine but there is a problem I need to fix .I'm using white actionbar icons and When the CoordinatorLayout is expanded and the background color is white, I can't see any of those icons . I saw…
11
votes
1 answer

Android AppBarLayout pushes ViewPager down

I have below xml file which has 1)Toolbar 2)TabLayout 3)Custom View and 4) ViewPager. When i put Toolbar, TabLayout, Custom View inside AppBarLayout, it pushes ViewPager down as like this: xml:
11
votes
2 answers

CoordinatorLayout not working well with NestedScrollView and viewpager

Recently, I used Android Design Support Library and I have the following code for my collapsing toolbar.
11
votes
3 answers

CollapsingToolbarLayout and NestedScrollView not working

I am trying to implement CollapsingToolbarLayout with a NestedScrollView and it is displaying the TextView within the NestedScrollView at the bottom and not allowing, scrolling or collapsing the Toolbar. I have gotten this to work with a…
10
votes
5 answers

Sliver Appbar [Collapsing Toolbar] animate title from left to center in Flutter

Here is my Build method for collapsing toolbar:- @override Widget build(BuildContext context) { return SafeArea( child: CustomScrollView( controller: controller, slivers: [ SliverAppBar( …
Hardy
  • 2,576
  • 1
  • 23
  • 45
10
votes
2 answers

How to create bottomsheet with toolbar when expanded,

I want to create bottom sheet layout, which when expanded to full screen should display toolbar. I have used following code but it is displaying toolbar even if its not expanded to full screen.
Ragini
  • 765
  • 1
  • 11
  • 29
10
votes
4 answers

How to make CollapsingToolbarLayout stretching

I used CollapsingToolbarLayout and i need to make it stretching something like this: this is my layout:
10
votes
5 answers

Collapsing Toolbar Layout always expanded when returned from fragment

I have 2 fragments (Fragment A and Fragment B) both with collapsing toolbar layouts and corresponding recyclerviews within a coordinatorlayout. If I scroll up in my recyclerview (so the CollapsingToolbarLayout has collapsed) and then open Fragment B…
10
votes
1 answer

Android CollapsingToolbarLayout without Toolbar to stop at a certain point and not completely close

I understand that a toolbar is needed so that the CollapsingToolbarLayout does not completely close when you scroll: eg: https://i.stack.imgur.com/nIxrx.jpg I'm trying to figure out if I can get away with the CollapsingToolbarLayout without a…
gdubs
  • 2,724
  • 9
  • 55
  • 102
10
votes
1 answer

Why does Android CollapsingToolbarLayout + NestedScrollView not Scroll to End when soft keyboard shown

Using appcompat 23.1.1, you cannot scroll to the end of a EditText inside the NestedScrollView, when the soft keyboard is shown. What happens is that it will scroll as far as the end would be if the keyboard were hidden. In other words, the soft…
jkj yuio
  • 2,543
  • 5
  • 32
  • 49
10
votes
1 answer

Transparent toolbar for expanded collapsing toolbar

I have a collapsing toolbar in my activity with a navigationview. I have followed tutorials to set the collapsing toolbar but I can't have the toolbar transparent as I see on the website. I want this to be transparent when it's expanded (see the…
Jey10
  • 681
  • 10
  • 30
10
votes
2 answers
10
votes
3 answers

Menu options not showing on Collapsing Toolbar

I am trying to implement a Collapsing Toolbar Layout with menu options but whenever I set the image view source in the below code, the image covers the menu and the back button. The options are there as I can click on them, they are just hidden by…
Carl
  • 841
  • 1
  • 13
  • 33