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

110 lines
4.4 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"
style="@style/VectorTextView.Subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
2021-06-09 12:51:04 +03:00
android:textColor="?vctr_content_primary"
tools:text="Une erreur est survenue" />
2021-06-09 12:51:04 +03:00
<Button
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"
style="@style/VectorEmptyImageView"
2020-11-26 15:27:10 +03:00
android:layout_width="match_parent"
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 13:50:54 +03:00
android:layout_marginBottom="30dp"
2021-02-12 19:44:12 +03:00
android:importantForAccessibility="no"
android:maxHeight="350dp"
2020-11-26 15:27:10 +03:00
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"
2020-11-27 13:50:54 +03:00
tools:layout_constraintHeight_percent="0.5"
tools:src="@drawable/ic_search_no_results" />
2020-11-26 15:27:10 +03:00
<TextView
2019-05-17 18:07:02 +03:00
android:id="@+id/emptyTitleView"
style="@style/VectorTextView.Subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-05-29 16:29:02 +03:00
android:layout_gravity="center_horizontal"
android:gravity="center"
2021-06-09 12:51:04 +03:00
android:textColor="?vctr_content_primary"
2019-05-29 16:29:02 +03:00
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"
style="@style/VectorTextView.Body"
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"
2021-06-09 12:51:04 +03:00
android:textColor="?vctr_content_secondary"
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>