mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-03-15 00:34:00 +01:00
159 lines
6.4 KiB
XML
159 lines
6.4 KiB
XML
<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"
|
|
tools:context=".ui.modules.exam.ExamFragment">
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="50dp">
|
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
android:id="@+id/examProgress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:indeterminate="true" />
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/examSwipe"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/examRecycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:listitem="@layout/header_exam" />
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/examEmpty"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="10dp"
|
|
android:visibility="gone"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
app:srcCompat="@drawable/ic_main_exam"
|
|
app:tint="?colorOnBackground"
|
|
tools:ignore="contentDescription" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:gravity="center"
|
|
android:text="@string/exam_no_items"
|
|
android:textSize="20sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/examError"
|
|
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/examErrorMessage"
|
|
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/examErrorDetails"
|
|
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/examErrorRetry"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/all_retry" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
<io.github.wulkanowy.ui.widgets.MaterialLinearLayout
|
|
android:id="@+id/examNavContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="bottom"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<ImageButton
|
|
android:id="@+id/examPreviousButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/all_prev"
|
|
android:paddingLeft="12dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="12dp"
|
|
android:paddingBottom="8dp"
|
|
android:scaleType="fitStart"
|
|
android:tint="?colorPrimary"
|
|
app:srcCompat="@drawable/ic_chevron_left" />
|
|
|
|
<TextView
|
|
android:id="@+id/examNavDate"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:fontFamily="sans-serif"
|
|
android:gravity="center"
|
|
android:textSize="16sp"
|
|
tools:text="@tools:sample/date/ddmmyy" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/examNextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/all_next"
|
|
android:paddingLeft="12dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="12dp"
|
|
android:paddingBottom="8dp"
|
|
android:scaleType="fitEnd"
|
|
android:tint="?colorPrimary"
|
|
app:srcCompat="@drawable/ic_chevron_right" />
|
|
</io.github.wulkanowy.ui.widgets.MaterialLinearLayout>
|
|
</FrameLayout>
|