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

CoordinatorLayout layout_anchor does not work

I just tried out the new Support Design Library with CoordinatorLayout, but I'm having problems anchoring child views. My layout currently looks like…
14
votes
3 answers

Click not working on RecyclerView in CoordinatorLayout when scrolling

I am facing a strange behaviour with a RecyclerView as a second child of CoordinatorLayout, just after an AppBarLayout (as described in a lot of examples). My problem is when I scroll the recycler view and I want to click on a particular item.…
13
votes
5 answers

NestedScrolling with NestedScrollView, RecyclerView (Horizontal), inside a CoordinatorLayout

I have a UI design with CollapsingToolbarLayout, like following.
11
votes
3 answers

Android, DrawerLayout + Fragments + CollapsingToolbarLayout

Is it possible to have a CoordinatorLayout / CollapsingToolbarLayout in the fragments shown in the main container of a DrawerLayout? An answer to another question suggests that each fragment could have its own Toolbar. But this doesn't work well…
9
votes
0 answers

Achieve behaviour same as AppBarLayout for any ViewGroup in CoordinatorLayout

I'm facing following problem with custom views in CoordinatorLayout: I need to collapse ViewGroup (f.e LinearLayout) when scrolling RecyclerView. ViewGroup acts as header of RecyclerView. When using following…
9
votes
2 answers

Is it possible to do a simple image view parallax with coordinator layout without the collpsing toolbar layout?

Hello lets say I have a layout which contains the following
Ersen Osman
  • 6,106
  • 6
  • 34
  • 75
8
votes
1 answer

View can not be anchored to the parent CoordinatorLayout

I just updated to appcompat library from 23.1.1 to 23.2 and now application stopped working on java.lang.IllegalStateException: View can not be anchored to the the parent CoordinatorLayout. java.lang.IllegalStateException: View can not be anchored…
jakub
  • 176
  • 1
  • 10
8
votes
1 answer

How to use coordinator layout with fragment as "scrolling view"

I'm trying to use a coordinator layout with an appbar layout that hosts a fragment as the "scrolling view". The fragment consists of a recyclerView and a bottom aligned layout holding a button, like so: However, the bottom section is hidden by…
8
votes
3 answers

How to show collapsed elements in CoordinatorLayout programmatically?

I have CoordinatorLayout as described in blog: http://android-developers.blogspot.ru/2015/05/android-design-support-library.html
7
votes
1 answer
7
votes
2 answers

Collapsing layout during scrolling in Android

I would like to have custom view collapsed with a transition during scrolling. I have AppBarLayout with a Toolbar inside. Below that there is a custom view that I want to collapse. Below custom view there is a NestedScrollView with…
7
votes
0 answers

Hero View's Position Calculated Wrongly During Shared Element Transition

I have two activities, Toolbars and CoordinatorLayouts in both of them. Toolbars can be hidden by scrolling, thanks to CoordinatorLayout. I'm trying to make a shared element transition between them and these are the steps I've taken so far: Set an…
6
votes
1 answer

use CoordinatorLayout to hide/show RelativeLayout when scrolling a RecyclerView

I have a layout (as generated by android studio) where i added a RelativeLayout to the AppBarLayout. The code is below and it looks like this: Where i am stuck: What i want to achieve is when scrolling the Recyclerview down i want that the green…
stamanuel
  • 3,341
  • 24
  • 42
6
votes
2 answers

CoordinatorLayout.Behavior callbacks don't trigger

I wrote a CordinatorLayout.Behaviour class and assigned it in a CordinatorLayout's child, a LinearLayout using app:layout_behavior="com.mob2.zd2duta.infodrawer.components. FloatingHeaderBehaviour" but only layoutDependsOn, onStartNestedScroll,…
1
2
3
9 10