Questions tagged [android-appbarlayout]

AppBarLayout is a vertical LinearLayout which implements many of the features of material designs app bar concept, namely scrolling gestures.

AppBarLayout is a vertical which implements many of the features of material designs app bar concept, namely scrolling gestures.

Check the official layout documentation for additional details.

More Info

830 questions
17
votes
5 answers

Add icon with title in CollapsingToolbarLayout

I am using CoordinatorLayout to get this effect : Here is the layout code:
17
votes
2 answers

Smooth scroll and Fling with NestedScrollView,AppBarLayout and CoordinatorLayout

I am working on an application where I'm using AppBarLayout with CollapsingToolbarLayout and NestedScrollView. I have successfully implemented this and it is working fine. Now what i am trying to do is, that on fling(fast swipe up) on the …
17
votes
7 answers

Hide AppBar when scrolling down

I have an AppBar and a horizontal linearlayout (which includes an edit text and two imagebuttons) and other things in my layout. When user scrolls down, I want AppBar(actually, the Toolbar to hide. This is what I have tried, the appbar isn't hiding…
jason
  • 6,962
  • 36
  • 117
  • 198
17
votes
6 answers

How to scroll up/down of bottom bar on scrolling of RecyclerView

With Google’s recent release of the Design Support Library several cool new views have been introduced. Using some of the new components (e.g. CoordinatorLayout ) might (!) enable you to achieve the scrolling behavior. I was tryed with some built in…
Lavekush Agrawal
  • 6,040
  • 7
  • 52
  • 85
17
votes
2 answers

Android AppBarLayout overlaps listview

I am writing a simple app to play with ContentProvider, I have a db, a ContentProvider, a main activity, a class that forwards commands to the ContentProvider using ContentResolver. On the gui I just want to display all items stored in the db. I…
eqtèöck
  • 971
  • 1
  • 13
  • 27
16
votes
7 answers

Toolbar expands on swipe down

In my application I have a collapsing Toolbar. If I start a specific Fragment I want to collapse the Toolbar so it behaves like a "normal" one and that the user can not expend it by himself. Here is my layout which I use for my…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
16
votes
4 answers

Stop AppBarLayout scrolling off screen when NestedScrollView is empty

I have a fairly typical List functionality using a CoordinatorLayout, AppBarLayout, SwipeRefreshLayout and RecyclerView - When the RecyclerView has enough content to scroll, the page seems fine. When the RecyclerView is empty or doesn't have enough…
Graeme
  • 25,714
  • 24
  • 124
  • 186
16
votes
3 answers

Nested RecyclerView in ViewHolder breaks Collapsing Toolbar Layout

I have a vertical RecyclerView hosted in a CoordinatorLayout featuring a collapsing toolbar layout. The ViewHolder for this RecyclerView contains yet another RecyclerView with a GridLayoutManager. The reason for this nesting is that the inner…
15
votes
6 answers

Android Accessibility - Unable to focus on any element in the Appbar

I have this issue in 2 of my activities. When I navigate using keyboard Tab keys or arrow keys - I am unable to reach any element in the App bar. 1) Activity 1 -> My appbar has a hamburger menu icon to access the NavigationView. I am not able to…
15
votes
1 answer

Collapsing Toolbar bouncing glitch since support lib 26.0.0

Since update of Android Support libs from version 25.4.0 to 26.0.0 (up to 27.0.0) I'm experiencing some weird behaviour in Collapsing Toolbar inside activity. See difference on these gifs: 25.4.0 26.0.0 (+) When scrolling up you will see strange…
15
votes
1 answer

How AppBarLayout.ScrollingViewBehavior's math works?

I would watch the math flow of the offsetChildAsNeeded method in AppBarLayout.ScrollingViewBehavior on running scrolling changes. As it is private method and private is mOffsetDelta, how can programmatically monitor them? (It is not clear how the…
GPack
  • 2,494
  • 4
  • 19
  • 50
15
votes
4 answers

CollapsingToolbarLayout.setTitle(title) does not work after changing appbarLayout

I want to load a fragment with the collapsed collapsingToolbar (i.e. in its non-expanded form). When I set the title of the collapsingToolbar without altering the appbarLayout layout parameters, the title is set properly and I can see the title. The…
VIN
  • 6,385
  • 7
  • 38
  • 77
15
votes
6 answers

collapsing toolbar layout like google play store

i want to make a collapsing toolbar layout like google play store. like this: https://sendvid.com/ugjspx8r and here is my layout: http://sendvid.com/s4mx3xem how can i do that with new android support library? here is my layout xml…
14
votes
1 answer

How to have a collapsing of top view into a smaller sized view?

This question was asked before in a too broad and unclear way here, so I've made it much more specific, with full explanation and code of what I've tried. Background I'm required to mimic the way the Google Calendar has a view at the top, that can…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
14
votes
1 answer

How to get a progress bar under the ActionBar in Material Design?

The Material Design specifications for Progress and activity specifically show in several areas a horizontal progress indicator of only a few pixels (dips) thick below whatever it is we are calling the ActionBar these days (probably…
1 2
3
55 56