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

CollapsingToolbarLayout leaving empty space below Recyclerview

I'm having this strange issue with CoordinatorLayout and RecyclerView. As you can see in the image, the RecyclerView is leaving an empty blank space below it with the exact same height as declared for CollapsingToolbarLayout's minHeight…
MiguelS
  • 117
  • 12
3
votes
1 answer

android.support.v4.widget.SwipeRefreshLayout does not swipe when inside a android.support.design.widget.AppBarLayout

The goal is to have a collapsing toolbar and a SwipeRefreshLayout which has items. To be able to use the support library, I use CoordinatorLayout which hosts an AppBarLayout. That AppBarLayout has a toolbar and SwipeRefreshLayout which has a grid…
3
votes
1 answer

Custom CoordinatorLayout.Behavior and RecyclerView scroll issue

I have a CoordinatorLayout with two children, a View that acts as header and a RecyclerView:
antonicg
  • 844
  • 7
  • 23
3
votes
2 answers

viewpager parallax scrolling and collapse toolbar on scroll

refer to the image, I want to create a parallax scrolling effect within a viewpager. the ImageView and the webview is the layout from the view pager fragment while the toolbar is on the activity that hold the viewpager. I had my parallax scrolling…
MinFu
  • 343
  • 1
  • 13
3
votes
2 answers

android Studio layout preview is empty when include layout into the coordinatior view

After I have posted this question, it wasnt giving enough detail, now I have come to a point where the problem occurs. so I have edited my question to a specific way below EDITED Hi , I have tried many possible solutions but preview layout not…
3
votes
1 answer

CoordinatorLayout with NestedScrollView doesn't resize with adjustResize

I have a view which contains a CoordinatorLayout which wraps an AppBarLayout and a NestedScrollView. Inside the NestedScrollView there is an EditText I'm having problems showing the soft input keyboard and having it correctly resize the view. With…
Graeme
  • 24,857
  • 23
  • 121
  • 182
3
votes
1 answer

Android support design library CoordinatorLayout with webview problem

I am using CoordinatorLayout with webview in my app. but I have a problem like the image: (source: duitang.com) on 4.4+. I don't know what's the problem with my layout. this is my xml layout.
adamin1990
  • 66
  • 4
3
votes
0 answers

Strange behavior with CoordinatorLayout, AppbarLayout and SwipeRefreshView

I'm trying to use the new Android Support Design Library, but I've encountered a strange behavior (maybe it's not so strange) with CoordinatorLayout having as children a AppBarLayout and a SwipeRefreshView: in fact, when I swipe to up the…
n0x3n
  • 31
  • 3
3
votes
1 answer

Android: AppCompat Snackbar and non AppCompat FloatingActionButton

It's possible to use CoordinatorLayout and custom FloatingActionButton like this: Futuresimple - FloatingActionButton or Clans - FloatingActionButton in new AppCompat Snackbar (to automatically move upward as the snackbar animates in and returns to…
2
votes
0 answers

How to get ExtendedFloatingActionButton to behave similar to FloatingActionButton when interacting with CoordinatorLayout and scrolling?

Trying to use the new ExtendedFloatingActionButton. It seems by default ExtendedFloatingActionButton acts differently from FloatingActionButton when interacting with CoordinatorLayout. See here the red one is the typical FloatingActionButton and the…
2
votes
0 answers

ViewPager and TabLayout inside CoordinatorLayout results to NoMatchingViewException

I'm doing instrumentation test using espresso, problem is it can't find the ids of the CoordinatorLayout/ViewPager/AppBarLayout/TabLayout, this is a new screen/activity, shown after I successfully performed click on a button from my main…
2
votes
2 answers

Android @string/appbar_scrolling_view_behavior is marked as unresolved reference

I am using androidx dependencies, everything is working fine. But the linter assumes that @string/appbar_scrolling_view_behavior is an unresolved reference. See image below: The code itself totally works fine, no problems. I just want to get rid of…
Mike
  • 1,191
  • 10
  • 20
2
votes
4 answers
2
votes
1 answer

BottomAppBar And FloatingActionButton app:layout_scrollFlags behavior

I am currently using the combination of BottomAppBar And FloatingActionButton in my Layout (obviously inside CoordinatorLayout): see layout: