Questions tagged [coordinator-layout]

An Android Layout used as a container for a specific interaction with one or more child views

An Android Layout used as a container for a specific interaction with one or more child views

See: https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.html

145 questions
5
votes
1 answer

CoordinatorLayout - flinging in opposite directions causes jittering

I need to make a scrollable fragment with static views at the top and a ViewPager with a RecyclerView in each page at the bottom. I am trying to achieve the desired outcome using a CoordinatorLayout, but ran into a problem - when I fling the top…
5
votes
2 answers

Fixed header with CoordinatorLayout showing shadow when scrolling

The classic coordinator layout gives you the following [source]: However, I don't want the top header views to scroll until they "become" a toolbar pinned at the top, with a shadow below. I want them all fixed (or pinned) but to show the shadow…
5
votes
2 answers

Nested scrollview doesnt take available space in CoordinatorLayout

I am facing a problem regarding implementing a NestedScrollview inside a CoordinatorLayout. See the following layout code:
Sjaak Rusma
  • 1,267
  • 3
  • 17
  • 34
5
votes
1 answer

Android SnackBar above keyboard with FAB

I have a problem with my app: a strange behavior on Version >= Lollipop, due to AndroidBug5497Workaround. I'm using coordinator layout, collapsing toolbar, fragments, floating action buttons and snackbar, everything works fine on pre-lollipop. I…
5
votes
1 answer

webview inside NestedScrollView cause height issue

I use support.v4.widget.NestedScrollView and i have an issue with my webview. Here is my…
5
votes
1 answer

Using CoordinatorLayout with SwipeRefreshLayout and RecyclerView and FloatingActionButton together

I am trying to put all this elements together, but i can't see the the FloatingActionButton My code is this:
5
votes
1 answer

Coordinator layout with viewpager with recyclerview as adapter

I have this layout with coordinator layout, that has tabs with viewpager and in viewpager adapter I create recyclerview for each page. Layout : 08-09 11:28:17.816 2804-2804/com.xxx.yyy.debug E/AndroidRuntime﹕ FATAL EXCEPTION:…
4
votes
2 answers

Arrange views in Coordinator Layout

I have problem making my Frame layout be below Bottom Navigation Drawer (yes I put it on the top :)). Right now the top of Frame layout is hidden by BND because it is aligned with parents top just like BND instead of being aligned with BNDs…
Nemanja
  • 220
  • 6
  • 13
4
votes
1 answer

RecyclerView not scrolling in Collapsing Toolbar

I have a very simple RecyclerView inside a Collapsing Toolbar layout. I have tried every possible flag / researched everywhere I could but cannot get my collapsing toolbar to collapse. The Recycler scrolls freely, but the collapsingtoolbar just…
4
votes
0 answers

pull down nested scrollview to enlarge the imageview on its top

I am using coordinatorlayout to make my profile page. Here is my code.
Bunny
  • 516
  • 3
  • 19
4
votes
1 answer

How to wrap Coordinator Layout in a LinearLayout?

I´m attempting to use the new Android Design Library´s CoordinatorLayout inside of another layout. The CoordinatorLayout contains a RecyclerView. What I´m attempting to do is to place a simple LinearLayout below the CoordinatorLayout. This layout…
stamppot
  • 195
  • 1
  • 2
  • 10
3
votes
0 answers

Is it possible to collapse multiple views in AppBarLayout?

I have an AppBarLayout with CollapsingToolbarLayout, two views below and ViewPager at the rest of the screen // Toolbar stuff inside
3
votes
2 answers

How to hide the searchbar as it starts

I have an topbar for title and icons and a searchbar. When I scroll up both of that hiding and its ok. But I want to hide searchbar when activity start first and show when scroll down first. (Like ios whatsapp application, default is…
6155031
  • 3,352
  • 4
  • 19
  • 49
3
votes
0 answers

Collapse app bar layout when scroll reach 20 percent of the height. I want snap to work as well

So, I have a special case where the height of my appbarlayout fills the whole screen. I am using scroll|snap layout behavior for collapsingtoolbarlayout. The problem is that by default appbarlayout is collapsed when the user reaches more than 50…
3
votes
1 answer

AppBarLayout.ScrollingViewBehavior - bottom of view off screen

When using an AppBarLayout with the standard ScrollingViewBehavior, the AppBarLayout's sibling will by default be the height of the CoordinatorLayout and the sibling's bottom will be offscreen by the height of the AppBarLayout. In my use case, the…
1 2
3
9 10