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
94
votes
10 answers

ERROR: Module 'app': platform 'android-28' not found. and Design editor is unavailable until after a successful project sync

So, I am new here just installed Android Studio and then wanted to create a basic activity. But the thing is they want me to install the SDKs and Haxm which is not being installed through SDK manager. I have tried a lot and have used all the ways…
nav2236
  • 1,053
  • 1
  • 7
  • 11
92
votes
3 answers

what is exact difference between appbar, toolbar, actionbar ? and when to use them specifically?

what is exact difference between appbar, Toolbar, Actionbar? and when to use them specifically? I try to find about them but it make me confuse so can any buddy explain to me what is exact difference between them and when to use them or are this are…
74
votes
9 answers

Toolbar in AppBarLayout is scrollable although RecyclerView has not enough content to scroll

Is it really intended that the Toolbar in a AppBarLayout is scrollable although the main container with the "appbar_scrolling_view_behavior" has not enough content to really scroll? What I have tested so far: When I use a NestedScrollView (with…
70
votes
7 answers

Android Layout: Horizontal Recyclerview inside a Vertical Recyclerview inside a Viewpager with Scroll Behaviors

This is the app I'm trying to build with all the elements mapped out below: Everything works, however, I want the inner horizontal recyclerview not to capture any of the vertical scrolls. All vertical scrolls must go towards the outer vertical…
69
votes
2 answers

CoordinatorLayout + AppBarLayout + NavigationDrawer

I have a layouting problem when combining CoordinatorLayout with an AppBarLayout and a NavigationDrawer. The problem is, that the NavigationDrawer and it's content are hidden behind the toolbar. I have already did a lot of research and tried a lot…
66
votes
2 answers

Remove elevation shadow without removing elevation itself

Is there a way for AppBarLayout to no drop shadow and keep its elevation?
66
votes
17 answers

Need to disable expand on CollapsingToolbarLayout for certain fragments

I have an AppCompatActivity that controls replacing many fragments. Here is my layout for it. activity_main.xml
54
votes
5 answers

Add app bar scrolling view behavior to multiple views in CoordinatorLayout

I am looking to add scroll support to more than just a single, scrollable, child view of CoordinatorLayout in conjunction with an AppBarLayout and CollapsingToolbarLayout. When scrolling the RecyclerView or the AppBarLayout (condensed code below),…
41
votes
8 answers

CoordinatorLayout inside another CoordinatorLayout

CorodinatorLayout inside another CoordinatorLayout such that scrolling the child-view should also scroll the Parent CoordinatorLayout. I have a coordinatorLayout with ViewPager that contains different Fragment such that on Scroll will hide the…
41
votes
10 answers

ListView not expanding inside NestedScrollView

I am using CoordinatorLayout in my activity page. In that there is ListView below the app bar. But its not working when I use ListView instead of NestedScrollView. And if I put ListView inside NestedScrollView, ListView is not expanding
37
votes
5 answers

After migrating to AndroidX, Error inflating class android.support.design.widget.AppBarLayout

After using Android Studio to migrate my project to AndroidX (and manually fixing a lot of import errors), I'm getting no compile errors but when the app starts I get a crash with: Error inflating class android.support.design.widget.AppBarLayout.…
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43
30
votes
10 answers

Hiding Toolbar on scroll with recyclerview inside fragment

I'm trying to get the toolbar to collapse on scroll when a recyclerview inside a fragment is scrolled. To start, heres my main layout:
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
4 answers

How to keep the toolbar fixed at the top when AppBar collapses/expands?

Overview I am trying to implement one of the Scrolling Techniques, Flexible space with overlapping content, described in Material Design. Flexible space with overlapping content Content can overlap the app bar. Behavior: The app bar’s starting…
Abhishek
  • 2,959
  • 2
  • 17
  • 24
27
votes
7 answers

Collapsing toolbar and nestedscrollview not scrolling smoothly

Nested scroll view scrolls smoothly on scrolling down but on scroll up it is sluggish.Collapsing toolbar(with an image view and framelayout) upon scrolling up doesn't renders its content(remains blank). I have tried every flag in collapsing…
1
2 3
55 56