element-android/vector/src/main/res/layout/view_state.xml

109 lines
4.2 KiB
XML
Raw Normal View History

<?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"
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"
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" />
<LinearLayout
android:id="@+id/errorView"
2019-05-29 16:29:02 +03:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-05-17 18:07:02 +03:00
android:layout_gravity="center"
android:orientation="vertical"
2020-11-26 15:27:10 +03:00
android:padding="@dimen/layout_horizontal_margin"
android:visibility="gone"
tools:visibility="visible">
<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"
android:textSize="16sp"
tools:text="Une erreur est survenue" />
2019-06-11 17:48:48 +03:00
<com.google.android.material.button.MaterialButton
android:id="@+id/errorRetryView"
2019-06-11 17:48:48 +03:00
android:layout_width="wrap_content"
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" />
</LinearLayout>
2019-05-29 16:29:02 +03:00
<androidx.constraintlayout.widget.ConstraintLayout
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"
android:orientation="vertical"
2019-05-29 16:29:02 +03:00
android:padding="@dimen/layout_horizontal_margin">
2020-11-26 15:27:10 +03:00
<ImageView
android:id="@+id/emptyImageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
app:layout_constraintBottom_toTopOf="@id/emptyTitleView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:ignore="MissingPrefix"
tools:src="@drawable/empty_state_dm" />
<TextView
2019-05-17 18:07:02 +03:00
android:id="@+id/emptyTitleView"
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"
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" />
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"
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" />
2019-05-29 16:29:02 +03:00
</androidx.constraintlayout.widget.ConstraintLayout>
</merge>