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

Explanation of CollapsingToolbarLayout

In the design library, CollapsingToolbarLayout introduces some cool new effects. How many children can CollapsingToolbarLayout have? Is there anything to keep in mind when adding additional children? I've seen code online where AppBarLayout,…
0
votes
1 answer
0
votes
0 answers

Inflating Toolbar on different activity with same layout

I want to use one toolbar across the Application. But don't want to include it in a layout. Because I have a different hierarchy of fragment and activity. I wish to do an operation of setting of the action bar in base activity only. I tried it with…
0
votes
1 answer

Set RecyclerView Scroll first and then viewpager swipe in CoordinatorLayout

I have a very annoying problem with the typical CoordinatorLayout + AppBarLayout + Toolbar + TabLayout + Viewpager where the Toolbar has the layout_scrollFlags with "scroll|enterAlways|snap" Here is the xml which also has a DrawerLayout with a…
0
votes
1 answer

Using CollapsingToolbar animation only

The brief question: What is the best way of having a collapsing view (like CollapsingToolbarLayout) which is not your toolbar? And the long story: I have an application which lists user application and let him to lock em. So I created an Activity…
0
votes
1 answer

AppBar appears where it shouldn't?

I have an android app with two activities main and secondary. main activity has following lines in its XML:
dark_ruby
  • 7,646
  • 7
  • 32
  • 57
0
votes
2 answers

How to check AppBarLayout.Behavior dragCallback was set?

I am trying to unit test that the behavior with a custom DragCallback was set on my AppBarLayout. There is a set method for setting the dragCallback but not a getter method. AppBarLayout.Behavior behavior = new…
0
votes
1 answer

I use CollapsingToolbar but it is not working?

I want to use CollapsingToolbar but I have used two AppBarLayout. Technically it's working but it is not scrolling?? Why it is not scrolling? I think it's because of LinearLayout. But if it is not there then other ViewPager and Tablayouts are not…
0
votes
1 answer

coordinator layout with recycler + button

I am having an issue where I am trying to add a button and a recyclerview to a linearLayout that linear layout is contained in a coordinatorlayout. The issue I am having is when I apply scrolling behavior to the linearLayout the button then scrolls…
0
votes
1 answer

Collapsing Toolbar not working as desired

I am working on Collapsing Toolbar. I added a RecyclerView below the Toolbar. I am facing few issues: On scrolling up the RecylerView the Toolbar must also scroll up but it isn't. to scroll up the Toolbar we need to touch the Toolbar and scroll it…
Parth Anjaria
  • 3,961
  • 3
  • 30
  • 62
0
votes
1 answer

hamburger doesn't toggle if drawer is not opened previously

i have a v7 Toolbar inside an AppBarLayout and when i try to toggle it from the hamburger icon it does not toggle the drawer unless i open it swiping it, after this the hamburguer works properly. The code below contains the Layout content and the…
0
votes
1 answer

CoordinatorLayout with AppBarLayout and scrollFlags

I was looking at Slidenerd's example code on github and I'm trying to modify it to suit my needs: https://github.com/slidenerd/Android-Design-Support-Library-Demo Now this is his original layout, except that I took out his tabLayout and inserted a…
0
votes
1 answer

How to center Title toolbar from within FRAGMENT on Android?

For a specific design I want to have Toolbar title text centered. I haven't been able to get it working from within a fragment, although I have managed to do this in an activity by following these instructions where I create a custom toolbar widget…
0
votes
1 answer

set background for activity containing AppbBarLayout

I am trying to use androids CoordinatorLayout and FrameLayout. What I want to have is a toolbar LinearLayout showing some info tablayout listviews when the listviews are scrolled the toolbar and the LinearLayouts should scrollup and hide and the…
user2759617
  • 597
  • 1
  • 8
  • 20