2018-12-06 18:35:02 +01:00
|
|
|
<FrameLayout 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-03-17 21:02:41 +01:00
|
|
|
android:id="@+id/messagePreviewContainer"
|
2018-12-06 18:35:02 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2020-04-02 20:27:53 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/messagePreviewRecycler"
|
2018-12-06 18:35:02 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-04-02 20:27:53 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:itemCount="1"
|
|
|
|
tools:listitem="@layout/item_message_preview" />
|
2019-11-24 17:05:09 +01:00
|
|
|
|
2018-12-06 18:35:02 +01:00
|
|
|
<LinearLayout
|
2019-03-17 21:02:41 +01:00
|
|
|
android:id="@+id/messagePreviewError"
|
2018-12-06 18:35:02 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:visibility="invisible"
|
2019-11-24 17:05:09 +01:00
|
|
|
tools:ignore="UseCompoundDrawables"
|
|
|
|
tools:visibility="invisible">
|
2018-12-06 18:35:02 +01:00
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
2019-11-24 17:05:09 +01:00
|
|
|
app:srcCompat="@drawable/ic_error"
|
2019-08-26 20:54:20 +02:00
|
|
|
app:tint="?colorOnBackground"
|
2018-12-06 18:35:02 +01:00
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
2019-11-24 17:05:09 +01:00
|
|
|
android:id="@+id/messagePreviewErrorMessage"
|
2018-12-06 18:35:02 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
2019-11-24 17:05:09 +01:00
|
|
|
android:padding="8dp"
|
|
|
|
android:text="@string/error_unknown"
|
2018-12-06 18:35:02 +01:00
|
|
|
android:textSize="20sp" />
|
2019-11-24 17:05:09 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/messagePreviewErrorDetails"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:text="@string/all_details" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/messagePreviewErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
2018-12-06 18:35:02 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2019-03-17 21:02:41 +01:00
|
|
|
android:id="@+id/messagePreviewProgress"
|
2019-08-26 20:54:20 +02:00
|
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar"
|
2018-12-06 18:35:02 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
</FrameLayout>
|