2018-10-28 21:18:14 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-05-29 16:29:02 +03:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-10-28 21:18:14 +03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2019-05-17 18:07:02 +03:00
|
|
|
android:layout_height="match_parent"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:padding="8dp"
|
|
|
|
tools:parentTag="android.widget.FrameLayout">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-17 18:07:02 +03:00
|
|
|
android:layout_gravity="center" />
|
2018-10-28 21:18:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/errorView"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:layout_width="wrap_content"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:layout_height="wrap_content"
|
2019-05-17 18:07:02 +03:00
|
|
|
android:layout_gravity="center"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:orientation="vertical"
|
2020-11-26 15:27:10 +03:00
|
|
|
android:padding="@dimen/layout_horizontal_margin"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
2018-10-28 21:18:14 +03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/errorMessageView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2019-06-05 16:58:00 +03:00
|
|
|
android:textColor="?riotx_text_primary"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:textSize="16sp"
|
|
|
|
tools:text="Une erreur est survenue" />
|
|
|
|
|
|
|
|
|
2019-06-11 17:48:48 +03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2018-10-28 21:18:14 +03:00
|
|
|
android:id="@+id/errorRetryView"
|
2019-06-11 17:48:48 +03:00
|
|
|
android:layout_width="wrap_content"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="8dp"
|
2019-06-11 17:48:48 +03:00
|
|
|
android:minWidth="190dp"
|
2019-06-05 16:58:00 +03:00
|
|
|
android:text="@string/global_retry" />
|
2018-10-28 21:18:14 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
2019-05-29 16:29:02 +03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2018-10-28 21:18:14 +03:00
|
|
|
android:id="@+id/emptyView"
|
|
|
|
android:layout_width="match_parent"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:layout_height="match_parent"
|
2019-05-17 18:07:02 +03:00
|
|
|
android:layout_gravity="center"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:orientation="vertical"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:padding="@dimen/layout_horizontal_margin">
|
2018-10-28 21:18:14 +03:00
|
|
|
|
2020-11-26 15:27:10 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/emptyImageView"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-27 11:58:14 +03:00
|
|
|
android:layout_height="0dp"
|
2020-11-26 15:27:10 +03:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginEnd="20dp"
|
2020-11-27 11:58:14 +03:00
|
|
|
android:maxHeight="350dp"
|
2020-11-26 15:27:10 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/emptyTitleView"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-11-27 11:58:14 +03:00
|
|
|
app:layout_constraintHeight_percent="0.5"
|
2020-11-26 15:27:10 +03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:ignore="MissingPrefix"
|
|
|
|
tools:src="@drawable/empty_state_dm" />
|
|
|
|
|
2018-10-28 21:18:14 +03:00
|
|
|
<TextView
|
2019-05-17 18:07:02 +03:00
|
|
|
android:id="@+id/emptyTitleView"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:layout_gravity="center_horizontal"
|
2020-11-26 15:27:10 +03:00
|
|
|
android:layout_marginTop="30dp"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:gravity="center"
|
2019-06-05 16:58:00 +03:00
|
|
|
android:textColor="?riotx_text_primary"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold"
|
2020-11-26 15:27:10 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/emptyMessageView"
|
2019-05-29 16:29:02 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-26 15:27:10 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/emptyImageView"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@string/room_list_people_empty_title" />
|
2018-10-28 21:18:14 +03:00
|
|
|
|
2019-05-17 18:07:02 +03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/emptyMessageView"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:layout_width="220dp"
|
2018-10-28 21:18:14 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2020-11-26 15:27:10 +03:00
|
|
|
android:layout_marginTop="20dp"
|
2019-05-17 18:07:02 +03:00
|
|
|
android:gravity="center"
|
2019-06-05 16:58:00 +03:00
|
|
|
android:textColor="?riotx_text_secondary"
|
2019-05-29 16:29:02 +03:00
|
|
|
android:textSize="14sp"
|
2020-11-26 15:27:10 +03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-05-29 16:29:02 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-26 15:27:10 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/emptyTitleView"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@string/room_list_people_empty_body" />
|
2018-10-28 21:18:14 +03:00
|
|
|
|
2019-05-29 16:29:02 +03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-10-28 21:18:14 +03:00
|
|
|
|
|
|
|
</merge>
|