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

97 lines
3.6 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 13:29:02 +00: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 15:07:02 +00: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 15:07:02 +00:00
android:layout_gravity="center" />
<LinearLayout
android:id="@+id/errorView"
2019-05-29 13:29:02 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-05-17 15:07:02 +00:00
android:layout_gravity="center"
android:orientation="vertical"
2019-05-29 13:29:02 +00:00
android:padding="@dimen/layout_horizontal_margin">
<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 13:58:00 +00:00
android:textColor="?riotx_text_primary"
android:textSize="16sp"
tools:text="Une erreur est survenue" />
<Button
android:id="@+id/errorRetryView"
android:layout_width="190dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="8dp"
2019-06-05 13:58:00 +00:00
android:text="@string/global_retry" />
</LinearLayout>
2019-05-29 13:29:02 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/emptyView"
android:layout_width="match_parent"
2019-05-29 13:29:02 +00:00
android:layout_height="match_parent"
2019-05-17 15:07:02 +00:00
android:layout_gravity="center"
android:orientation="vertical"
2019-05-29 13:29:02 +00:00
android:padding="@dimen/layout_horizontal_margin">
<TextView
2019-05-17 15:07:02 +00:00
android:id="@+id/emptyTitleView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-05-29 13:29:02 +00:00
android:layout_gravity="center_horizontal"
android:layout_marginBottom="49dp"
android:gravity="center"
2019-06-05 13:58:00 +00:00
android:textColor="?riotx_text_primary"
2019-05-29 13:29:02 +00:00
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/emptyImageView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:text="@string/room_list_catchup_empty_title" />
<ImageView
android:id="@+id/emptyImageView"
2019-05-29 13:29:02 +00:00
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_gravity="center_horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_noun_party_popper" />
2019-05-17 15:07:02 +00:00
<TextView
android:id="@+id/emptyMessageView"
2019-05-29 13:29:02 +00:00
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
2019-05-29 13:29:02 +00:00
android:layout_marginTop="49dp"
2019-05-17 15:07:02 +00:00
android:gravity="center"
2019-06-05 13:58:00 +00:00
android:textColor="?riotx_text_secondary"
2019-05-29 13:29:02 +00:00
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/emptyImageView"
tools:text="@string/room_list_catchup_empty_body" />
2019-05-29 13:29:02 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</merge>