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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/messageTabSwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/messageTabRecycler"
|
|
|
|
android:layout_width="match_parent"
|
2019-11-24 17:05:09 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:listitem="@layout/item_message" />
|
2018-12-06 18:35:02 +01:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2018-12-06 18:35:02 +01:00
|
|
|
android:id="@+id/messageTabProgress"
|
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" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/messageTabEmpty"
|
|
|
|
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"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
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"
|
|
|
|
app:srcCompat="@drawable/ic_more_messages"
|
|
|
|
app:tint="?colorOnBackground"
|
2018-12-06 18:35:02 +01:00
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/message_no_items"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
</LinearLayout>
|
2019-11-24 17:05:09 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/messageTabError"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="UseCompoundDrawables"
|
|
|
|
tools:visibility="invisible">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_error"
|
|
|
|
app:tint="?colorOnBackground"
|
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/messageTabErrorMessage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:text="@string/error_unknown"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
<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/messageTabErrorDetails"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:text="@string/all_details" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/messageTabErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2018-12-06 18:35:02 +01:00
|
|
|
</FrameLayout>
|