BayernMessenger/vector/src/main/res/layout/fragment_public_rooms.xml

86 lines
3.7 KiB
XML
Raw Normal View History

2019-05-24 09:35:46 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2019-05-24 15:38:46 +00:00
android:id="@+id/publicRoomsCoordinator"
2019-05-24 09:35:46 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/pale_grey">
<com.airbnb.epoxy.EpoxyRecyclerView
2019-05-24 13:00:43 +00:00
android:id="@+id/publicRoomsList"
2019-05-24 09:35:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
2019-05-24 13:00:43 +00:00
tools:listitem="@layout/item_public_room" />
2019-05-24 09:35:46 +00:00
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:expandedTitleGravity="top"
app:layout_scrollFlags="scroll|enterAlways|exitUntilCollapsed|snap">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
2019-05-24 13:00:43 +00:00
android:id="@+id/publicRoomsFilter"
2019-05-24 09:35:46 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/layout_horizontal_margin"
android:layout_marginRight="@dimen/layout_horizontal_margin"
android:hint="@string/home_filter_placeholder_rooms" />
</androidx.appcompat.widget.Toolbar>
<Button
2019-05-24 13:00:43 +00:00
android:id="@+id/publicRoomsCreateNewRoom"
2019-05-24 09:35:46 +00:00
style="@style/VectorButtonStyleFlat"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:drawableStart="@drawable/ic_plus_circle"
android:drawableLeft="@drawable/ic_plus_circle"
android:drawablePadding="13dp"
android:text="@string/create_new_room" />
2019-05-24 13:00:43 +00:00
<!-- TODO Layout -->
<Button
android:id="@+id/publicRoomsChangeDirectory"
style="@style/VectorButtonStyleFlat"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:text="RoomDirectory" />
<TextView
android:id="@+id/publicRoomsDirectoryName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginBottom="16dp"
android:textColor="#FFFFFF"
tools:text="RoomDirectoryName" />
2019-05-24 09:35:46 +00:00
</LinearLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>