2018-10-03 21:28:23 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-10-20 20:59:46 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-10-03 21:28:23 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-12-01 15:59:03 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-07-18 20:17:18 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-08-24 15:48:29 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-07-13 17:26:37 +02:00
|
|
|
|
2019-09-02 12:56:13 +02:00
|
|
|
<io.github.wulkanowy.ui.widgets.FittedScrollableTabLayout
|
2018-10-03 21:28:23 +02:00
|
|
|
android:id="@+id/gradeTabLayout"
|
2018-08-24 15:48:29 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_height="48dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:background="?colorSurface"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:visibility="invisible"
|
2019-03-04 12:13:37 +01:00
|
|
|
app:tabMode="scrollable"
|
2019-08-26 20:54:20 +02:00
|
|
|
app:tabSelectedTextColor="?colorPrimary"
|
2019-11-10 16:45:53 +01:00
|
|
|
app:tabTextColor="@color/material_on_surface_emphasis_medium"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:ignore="UnusedAttribute"
|
2019-03-04 12:13:37 +01:00
|
|
|
tools:visibility="visible" />
|
2018-10-03 21:28:23 +02:00
|
|
|
|
2019-11-24 17:05:09 +01:00
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
|
|
android:id="@+id/gradeViewPager"
|
2017-07-13 17:26:37 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_height="match_parent"
|
2019-11-24 17:05:09 +01:00
|
|
|
android:layout_marginTop="48dp"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible" />
|
2018-10-03 21:28:23 +02:00
|
|
|
|
2021-02-01 11:45:10 +01:00
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
2018-10-03 21:28:23 +02:00
|
|
|
android:id="@+id/gradeProgress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_gravity="center"
|
2019-03-04 12:13:37 +01:00
|
|
|
android:indeterminate="true"
|
|
|
|
tools:visibility="invisible" />
|
2018-12-01 15:59:03 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
2019-11-24 17:05:09 +01:00
|
|
|
android:id="@+id/gradeError"
|
2018-12-01 15:59:03 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
2019-03-04 12:13:37 +01:00
|
|
|
android:visibility="invisible"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:ignore="UseCompoundDrawables"
|
2019-03-04 12:13:37 +01:00
|
|
|
tools:visibility="visible">
|
2018-12-01 15:59:03 +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-01 15:59:03 +01:00
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
2019-11-24 17:05:09 +01:00
|
|
|
android:id="@+id/gradeErrorMessage"
|
2018-12-01 15:59:03 +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-01 15:59:03 +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/gradeErrorDetails"
|
|
|
|
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/gradeErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
2018-12-01 15:59:03 +01:00
|
|
|
</LinearLayout>
|
2018-12-06 18:35:02 +01:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|