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
7
votes
1 answer
7
votes
4 answers

Remove space between back arrow & image in toolbar

I want to remove space between in-built back arrow & imageview in toolbar. Below is my xml :
7
votes
1 answer

Can AppBarLayout with RecyclerView works without letting RecyclerView over-scroll?

I have a layout with CoordinatorLayout, AppBarLayout and RecyclerView as below.
7
votes
3 answers

(Collapsing)Toolbar title resets its position after Snackbar appearance

I have a layout with CollapsingToolbarLayout and CoordinatorLayout as root element. Whenever a Snackbar is shown in the activity the title of the toolbar resets its position to the default expanded title position of the CollapsingToolbar even if the…
7
votes
4 answers

ImageView not fading in CollapsingToolbarLayout

I am trying to get a fading effect on the ImageView when collapsing the AppbarLayout but the image still remains. I have read other solutions but its not working for me. I cant seem to find what is wrong with the…
Yasir Abbas
  • 201
  • 2
  • 12
7
votes
3 answers

Prevent RecyclerView from scrolling under AppBarLayout before AppBarLayout is collapsed

I'm creating a RecyclerView with header where the header collapses as you scroll up the RecyclerView. I can achieve this very closely with the layout below, with a transparent AppBarLayout, and MyCoolView which is the header. The parallax effect…
7
votes
2 answers

Dealing With RecyclerView, NestedScrollView, and CardView

I'm going to achieve this UI in my App: Well, Some ways that I tried before: 1. Using CollapsingToolbarLayout I put my CardView insid of CollapsingToolbarLayout and put them all in AppBarLAyout.
7
votes
2 answers

AppBarLayout scrolling content below Toolbar

I'd like to have a content area below my Toolbar. Its behavior should be to scroll while scrolling up and to enter immediately while scrolling down. Toolbar should stay on its place without any scrolling. My layout is like that:
7
votes
1 answer

How to collapse the AppBarLayout animated without pushing the content, similar to WhatsApp Android?

How to collapse a Toolbar independently when scrolling a RecyclerView in a ViewPager fragment, without the collapse effect affecting the ViewPager? What I mean is that in WhatsApp Android if you scroll any of the 3 main lists the toolbar doesn't…
7
votes
3 answers
7
votes
3 answers

CoordinatorLayout/AppBarLayout ExpandableListView being rendered off screen

Yet more problem in using CoordinatorLayout and AppBarLayout. I'm trying to achieve the basic functionality of having the Toolbar scroll off screen when scrolling down and coming back on screen when scrolling up. However, my current set up is…
Graeme
  • 25,714
  • 24
  • 124
  • 186
7
votes
3 answers

AppBarLayout weirdly taking space & pushing content down

I'm using the new Android Design Library & Auto hide of Toolbar feature. Currently the auto hide on scroll works fine. But the having this issue, take a look at screenshot below As you see the FloatingActionButton is pushed bit…
7
votes
1 answer

CollapsingToolbarLayout with Image, fixed aspect ratio

I have a image inside CollapsingToolbarLayout (just the same as the example https://github.com/chrisbanes/cheesesquare). However, I want to fixed the aspect ratio of the backdrop as 16:9. I tried setting the android:layout_height="wrap_content",…
Fung
  • 961
  • 1
  • 8
  • 17
7
votes
1 answer

Toolbar is not scrolling off even after providing "app:layout_scrollFlags" flag

I am trying implement Toolbar and TabLayout in which when you scroll the recycleview it should hide toolbar just like whatsapp application. I was referring google Blog and Michal Z's Blog. I have view pager in main activity and i am showing list of…