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"
|
2019-06-05 14:16:37 +00:00
|
|
|
android:background="?riotx_header_panel_background">
|
2019-05-24 09:35:46 +00:00
|
|
|
|
2019-06-05 14:16:37 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-05-24 09:35:46 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-06-05 14:16:37 +00:00
|
|
|
android:layout_height="match_parent">
|
2019-05-24 09:35:46 +00:00
|
|
|
|
2019-06-03 14:04:22 +00:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2019-06-05 14:16:37 +00:00
|
|
|
android:id="@+id/publicRoomsToolbar"
|
2019-05-24 09:35:46 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-05 14:16:37 +00:00
|
|
|
android:elevation="4dp"
|
2019-06-03 14:04:22 +00:00
|
|
|
app:contentInsetStartWithNavigation="0dp"
|
2019-06-05 14:16:37 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-06-06 13:16:56 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2019-06-03 14:04:22 +00:00
|
|
|
|
2019-06-06 12:37:30 +00:00
|
|
|
<!-- Note: Background is modified in the code for other themes -->
|
2019-06-03 14:04:22 +00:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/publicRoomsFilter"
|
2019-05-24 09:35:46 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-06-03 14:04:22 +00:00
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginRight="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginBottom="8dp"
|
2019-06-06 12:37:30 +00:00
|
|
|
android:background="@drawable/bg_search_edit_text_light"
|
2019-06-03 14:04:22 +00:00
|
|
|
android:drawableStart="@drawable/ic_search_white"
|
|
|
|
android:drawableLeft="@drawable/ic_search_white"
|
|
|
|
android:drawablePadding="8dp"
|
2019-06-06 12:37:30 +00:00
|
|
|
android:drawableTint="?riotx_text_secondary"
|
2019-06-03 14:04:22 +00:00
|
|
|
android:hint="@string/home_filter_placeholder_rooms"
|
|
|
|
android:lines="1"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp" />
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
|
2019-06-05 14:16:37 +00:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2019-06-03 14:04:22 +00:00
|
|
|
android:id="@+id/publicRoomsCreateNewRoom"
|
|
|
|
style="@style/VectorButtonStyleFlat"
|
|
|
|
android:layout_width="wrap_content"
|
2019-06-06 13:16:56 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-06-03 14:04:22 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2019-06-06 13:16:56 +00:00
|
|
|
android:minHeight="@dimen/layout_touch_size"
|
2019-06-03 14:04:22 +00:00
|
|
|
android:text="@string/create_new_room"
|
2019-06-05 14:16:37 +00:00
|
|
|
app:icon="@drawable/ic_plus_circle"
|
|
|
|
app:iconPadding="13dp"
|
2019-06-06 12:37:30 +00:00
|
|
|
app:iconTint="@color/riotx_accent"
|
2019-06-05 14:16:37 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-06-06 13:16:56 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/publicRoomsToolbar" />
|
2019-05-24 09:35:46 +00:00
|
|
|
|
2019-06-05 14:16:37 +00:00
|
|
|
<com.airbnb.epoxy.EpoxyRecyclerView
|
|
|
|
android:id="@+id/publicRoomsList"
|
|
|
|
android:layout_width="match_parent"
|
2019-06-06 13:16:56 +00:00
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-06-05 14:16:37 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/publicRoomsCreateNewRoom"
|
|
|
|
tools:listitem="@layout/item_public_room" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-05-24 09:35:46 +00:00
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|