From 933e06a7effc7697f29bafddcb0dfd0ea53d295b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 10 Jun 2019 15:24:25 +0200 Subject: [PATCH] Auto collapse toolbar --- .../main/res/layout/fragment_public_rooms.xml | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/vector/src/main/res/layout/fragment_public_rooms.xml b/vector/src/main/res/layout/fragment_public_rooms.xml index 610e923383..de6fa43685 100644 --- a/vector/src/main/res/layout/fragment_public_rooms.xml +++ b/vector/src/main/res/layout/fragment_public_rooms.xml @@ -5,22 +5,33 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/publicRoomsCoordinator" android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?riotx_header_panel_background"> + android:layout_height="match_parent"> - + android:layout_height="match_parent" + android:background="?riotx_header_panel_background" + app:layout_behavior="@string/appbar_scrolling_view_behavior" + tools:listitem="@layout/item_public_room" /> + + + app:layout_constraintTop_toTopOf="parent" + app:layout_scrollFlags="scroll|exitUntilCollapsed|snap|enterAlways"> - - - + \ No newline at end of file