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
26
votes
3 answers

Soft Keyboard Hides Actionbar

I have a simple activity with a text view followed by two edit texts. When I start typing, the soft keyboard pushes layout up and hides the action bar, and I won't be able to select/copy/paste text. My activity looks like this: When I start…
25
votes
3 answers

Detecting when AppBarLayout/CollapsingToolbarLayout is completely expanded

I have a fragment that uses the new CoordinatorLayout/AppBarLayout/CollapsingToolbarLayout paradigm, and I'd like to be able to detect when the collapsing toolbar is fully expanded so that I can perform an operation on the entire fragment it's in,…
24
votes
4 answers
24
votes
4 answers

AppBarLayout take space after setVisibility(View.GONE)

I want to hide my AppBarLayout for adding a view dynamically which will take the height of the screen. For this, i want to remove a view temporaly by setting the visibility of my AppBarLayout to GONE. The view is not visible, but take space in the…
23
votes
6 answers

Scrolling is not working with CoordinatorLayout + parallax image + BottomSheetLayout

Introduction I have an activity, which implements a common pattern with parallax header image and scrolling content using CoordinatorLayout, AppBarLayout and CollapsingToolbarLayout. My xml layout looks like…
21
votes
5 answers

How to make some icons at Appbar with different alignment?

I faced some problem. I want make an image, a text and two icons in AppBar but I can't make it work as I want. I tried to make some fonts in a row after the images and text. The images and the text successful show in my AppBar, but the rest of 2…
Roman Traversine
  • 868
  • 4
  • 12
  • 22
21
votes
2 answers

CoordinatorLayout custom behavior with AppBarLayout

I am trying to achieve a similar behavior to that of Telegram, on the settings page, that is, there is a CircleImage that when scrolling up goes to the left of the Topbar title, and when scrolling down goes to the middle of the expanded…
MichelReap
  • 5,630
  • 11
  • 37
  • 99
20
votes
1 answer

Android appbarlayout elevation appears in status bar

How do I get rid of the elevation in the status bar? If I set in AppbarLayout the app:elevation to 0dp the elevation doesn't appear anymore in status bar but also not below the AppbarLayout. How do I just get the elevation under the…
Joestoen
  • 545
  • 1
  • 5
  • 14
19
votes
6 answers

How to implement new material BottomAppBar as BottomNavigationView

I was trying to implement the new BottomAppBar that usually looks like this: material BottomAppBar as a BottomNavigationView like in the Google home app that looks like this. My problem is that since I can fill the BottomAppBar only with a menu…
19
votes
5 answers

CoordinatorLayout + AppbarLayout + Viewpager not resize child layout

I have a problem using CoordinatorLayout in conjunction with ViewPager and the ViewPager: the layout does not resize correctly. Supose that the height solved includes tabs height. So when I scroll to bottom i see this: main layout code:
19
votes
1 answer

How to expand AppBarLayout when scrolling down reaches at top of the RecyclerView

I am working on one android app in which I am using CoordinatorLayout,AppBarLayout and CollapsingToolbarLayout to use the advance collapse bar functionality. I am using recyclerview to show the number of items in the fragment. When I'm scrolling up…
19
votes
7 answers

NestedScrollView wont't scroll to the end when used with CollapsingToolbarLayout

I want to use NestedScrollView with CollapsingToolbarLayout. In NestedScrollView there is really long content. Unfortunately I can't scroll to the end. Some of this long content is cut. What is strange when I turn screen, scrolling works fine and…
19
votes
3 answers

Clickable CardView inside NestedScroll doesn't trigger scrolling

I have a layout with a CoordinatorLayout, and AppBarLayout and a NestedScrollView, inside the NestedScrollView I have multiple CardViews, everything works ok until I set the CardViews to be clickable, then if I start a scroll within a CardView,…
18
votes
1 answer

Scroll second child in AppBarLayout

I'm trying to obtain this effect where if the user scroll a RecyclerView a certain layout scroll up together with the recycler and disappear behind a Toolbar. A similar behavior could be obtained using the CoordinatorLayout, this would be possible…
18
votes
1 answer

CoordinatorLayout with RecyclerView and bottom-pinned EditText

I'm developing a chat screen. It consists of CollapsingToolbarLayout for user profile image, RecyclerView for messages list and an edit box to send messages. I can't figure out if it's possible to pin edit box to the bottom screen and prevent it…
1
2
3
55 56