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

Is it possible to touch the ImageView inside CollapsingToolbarLayout and scroll it?

I'm trying to get a fullscreen CollapsingToolbar but when I set match_parent to the height of AppBarLayout I'm not able to scroll the ImageView which is inside CollapsingToolbarLayout. I have to leave some space so that I can touch the "white" of…
0
votes
1 answer

Why toolbar has no elevation?

I've been trying to use the new design library and I have a toolbar instead of deprecated action bar. The problem is that the toolbar has no elevation. I added elevation everywhere in layouts, in code, I even added AppBarLayout. Nothing works. I'm…
0
votes
0 answers

CoordinatorLayout (with AppBarLayout) inside ViewPager inside CoordinatorLayout

So I have my root activity layout (with CoordinatorLayout, ToolbarLayout, Viewpager) like so:
kassim
  • 3,880
  • 3
  • 26
  • 27
0
votes
2 answers

How to add custom font to the action bar?

I wanted to know how to add my own custom font to the app name that appears in the action bar in android studio.
0
votes
2 answers

Make Toolbar Transparent when Scrolled Up and Make it Visible when Scrolled Down

I just want to make the android.support.v7.widget.Toolbar transparent when we scroll down the RecyclerView and make clearly visible when we scroll up This is my…
0
votes
1 answer

Parallax effect with recyclerView

I have following layout with RecyclerView and AppBarLayout. I am getting perfect view but not getting parallax effect, recyclerView is just scrolling in bottom area of screen.
0
votes
1 answer

How to autohide TabLayout in on Scrollup/Scrolldown

After going through lot of tutorials for auto hiding toolbar/tabbar. i came across material design support library in which we can autohide toolbar/tabbar easily using this: app:layout_scrollFlags="scroll|enterAlways" (In XML toolbar) This is…
shaiban
  • 331
  • 5
  • 12
0
votes
1 answer

Appbar scrolls the background Image up without decreasing the overall toolbar size

I am trying to use the Material Design Library to create a toolbar that has a big background Image. The toolbar is followed by a ScrollView . On Scrolling , my expectation is that the toolbar will slowly get reduced to its min height while the rest…
0
votes
1 answer

Toolbar text size in Android Support Library 22.2.1 vs 22.2.0

Yet another question based on Chris Banes's cheesesquare demo. After updating to the latest release of the library, I couldn't help notice an outstanding difference in the toolbar text size, when it is not collapsed. Previous release,…
0
votes
0 answers

AppBarLayout isn't working with Toolbar and Tabs

I am trying to use the AppBarLayout with Toolbar and Tabs so that Toolbar becomes hidden when user scrolls. I tried to do it exactly the same way as Cheesesquare example but it still doesn't work. Here is my XML…
Guy
  • 6,414
  • 19
  • 66
  • 136
0
votes
1 answer

Design Library Android

I'm using Android Design Library components, and I would like to have an image behind my ToolBar and TabLayout. The image must be cropped and not fit to the size. I'm actually setting my image as android:background="@drawable/AppBarBg" in…
0
votes
0 answers

How to fully customize the Android AppBar?

I would like to implement an AppBar, in my application, in a way similar to what Airbnb did: So: actionable icons equally distributed horizontally, no title, but a navigation drawer which is opened by clicking the icon on the right. Do you think…
-1
votes
1 answer

nestedScrollingEnabled not working in AppBarLayout

I have a horizontal recyclerview inside the AppBarLayout, which is inside the CoordinatorLayout, which is inside the SwipeRefreshLayout. I want that when I move horizontally in recyclerview it can't if the user accidentally pulls down to do a…
-1
votes
1 answer

Change text and style for default title label of action bar

I have created a new project with a navigation drawer activity. By default i am getting a title in the action bar as follows. I want to change the "Media Lines" text and change the font and size as well. I searched entire project and couldn't find…
-1
votes
2 answers

Toolbar shadow not showing

My app has a fragment with tablayout and it shows a shadow with elevation: