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
9
votes
1 answer

Why do we need AppBarLayout when we are using CollapsingToolbarLayout?

Also, what's the difference between an appbar layout and a collapsing toolbar layout? Thanks a lot :)
9
votes
2 answers

Is it possible to have the Status Bar scroll away along with the toolbar using coordinator layout on Android?

I would like to know if it is possible to scroll the entire status bar (icons and background), not just the background. Almost as if as if it was part of the toolbar. I am experiencing the same situation as the question below, the difference is I…
9
votes
1 answer

Android JNI crash when setting elevation / StateListAnimator for AppBarLayout

I'm trying to set the elevation of a AppBarLayout to 0 (and back to the default-value). It crashes some times (not always) and only on API 21 (>= 22 etc. working fine). I'm using a StateListAnimator as described in the link below (since it's the…
9
votes
2 answers

View jumps and blinks instantly, though animateLayoutChanges="true"

I am making my TabLayout animated by using android:animateLayoutChanges="true" in AppBarLayout. But when I set TabLayout.setVisibility(View.GONE), container for my fragment goes up to ActionBar instantly for a few milliseconds. And then it returns…
9
votes
2 answers

How to properly implement NestedScrollingChild on a WebView

The NestedScrollView provided with the support library doesn't work properly with the WebView (related bug report). Because of this I have set out to implement NestedScrollingChild for a WebView and it appears to work fine for the first scroll,…
9
votes
3 answers

How to show collapsed elements in CoordinatorLayout programmatically?

I have CoordinatorLayout as described in blog: http://android-developers.blogspot.ru/2015/05/android-design-support-library.html
8
votes
0 answers

BottomSheet Fragment Scroll behaviour issue in NestedScrollview present in Bottom sheet layout

my Scenario is on button click i need to open a bottomsheet which is half expanded and when we drag up it should behave like collasping toolbar. Here Appbar behaviour is in sync with bottomsheet but somehow NestedScrollview behaviour is only sync…
8
votes
2 answers

Difference between enterAlwaysCollapsed and exitUntilCollapsed scroll flags in coordinate layout

I'm unable to understand difference between these two scroll flags applied to the toolbar or collapsing toolbar, when scroll up and scroll down
8
votes
4 answers

Is it possible to easily center the content of the view below AppBarLayout, inside CoordinatorLayout?

Background Suppose you have a scrolling activity, with CoordinatorLayout and AppBarLayout, where you have a top header that can collapse upon scrolling at the bottom (which might have a RecyclerView or NestedScrollView). Something like this: Now,…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
8
votes
9 answers

Android Toolbar Title

Unable to change toolbar title I set title in manifeast.xml & also used setTitle("TITLE"); I set title as History & Reports but it display different title Notifications which is another activity title. I checked manifeast.xml but No change, Can…
8
votes
1 answer

when set app:elevation="0dp" then hamburgermenu not showing to toolbar

Hi I wanted to remove the below shadow of toolbar for that I have used elevation property, Currently my code is
Shree
  • 787
  • 8
  • 23
8
votes
1 answer

Change AppBarLayout theme programmatically

First I set AppBarLayout theme via…
8
votes
2 answers

ListView nested scrolling on API<21

Title is clear. I'm having this layout: _________________ |_______________| <- Toolbar |___|___|___|___| <- Tablayout | | | | | ViewPager | | | |_______________| Both toolbar and tablayout are…
7
votes
3 answers

Flutter/Material 3: AppBar ignores icon themes

In my AppBar the title is displayed with white text, but the icons are a dark grey or something. I Would like to have the icons white, too. But the colors in the icon themes have no effect! Not when added directly to the AppBar... Scaffold( …
7
votes
2 answers

AppBarLayout CollapsingToolbar how to disable expand on EditText click?

In my test app I disable expansion of AppBarLayout when it is collapsed (by scrolling RecycleView). I do that by adding addOnOffsetChangedListener to AppBarLayout. However, when I click EditText it expands again but, I do not want it to expand. How…