1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-11-10 18:40:27 -06:00
wulkanowy-mirror/app/src/main/res/layout/fragment_exam.xml

97 lines
3.9 KiB
XML
Raw Normal View History

2018-10-14 15:16:58 -05:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-09-24 08:21:47 -05:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2018-10-14 15:16:58 -05:00
android:layout_height="match_parent">
2018-10-20 13:59:46 -05:00
<androidx.coordinatorlayout.widget.CoordinatorLayout
2018-08-24 08:48:29 -05:00
android:layout_width="match_parent"
2018-10-14 15:16:58 -05:00
android:layout_height="match_parent"
android:layout_marginBottom="50dp">
2018-08-24 08:48:29 -05:00
2019-08-26 13:54:20 -05:00
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
2018-09-24 08:21:47 -05:00
android:id="@+id/examProgress"
2019-08-26 13:54:20 -05:00
style="@style/Widget.MaterialProgressBar.ProgressBar"
2018-09-24 08:21:47 -05:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true" />
2018-10-20 13:59:46 -05:00
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
2018-09-24 08:21:47 -05:00
android:id="@+id/examSwipe"
android:layout_width="match_parent"
2018-09-24 08:21:47 -05:00
android:layout_height="match_parent">
2018-10-20 13:59:46 -05:00
<androidx.recyclerview.widget.RecyclerView
2018-09-24 08:21:47 -05:00
android:id="@+id/examRecycler"
android:layout_width="match_parent"
android:layout_height="match_parent" />
2018-10-20 13:59:46 -05:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
2018-09-24 08:21:47 -05:00
<LinearLayout
android:id="@+id/examEmpty"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-09-24 08:21:47 -05:00
android:gravity="center"
android:orientation="vertical"
android:padding="10dp"
2019-08-26 13:54:20 -05:00
android:visibility="gone"
tools:ignore="UseCompoundDrawables">
2018-09-24 08:21:47 -05:00
2019-08-26 13:54:20 -05:00
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
app:srcCompat="@drawable/ic_main_exam"
app:tint="?colorOnBackground"
2018-09-24 08:21:47 -05: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/exam_no_items"
android:textSize="20sp" />
</LinearLayout>
2018-10-20 13:59:46 -05:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>
2018-09-24 08:21:47 -05:00
2019-08-26 13:54:20 -05:00
<io.github.wulkanowy.ui.widgets.MaterialLinearLayout
android:id="@+id/examNavContainer"
2018-09-24 08:21:47 -05:00
android:layout_width="match_parent"
2018-10-14 15:16:58 -05:00
android:layout_height="50dp"
2018-09-24 08:21:47 -05:00
android:layout_gravity="bottom"
2019-08-26 13:54:20 -05:00
android:orientation="horizontal"
tools:ignore="UnusedAttribute">
2018-09-24 08:21:47 -05:00
2019-08-26 13:54:20 -05:00
<com.google.android.material.button.MaterialButton
2018-09-24 08:21:47 -05:00
android:id="@+id/examPreviousButton"
2019-08-26 13:54:20 -05:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-09-24 08:21:47 -05:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
2019-08-26 13:54:20 -05:00
android:gravity="start|center_vertical"
android:insetLeft="8dp"
2018-10-14 15:16:58 -05:00
android:text="@string/all_prev"
2019-08-26 13:54:20 -05:00
android:textColor="?android:textColorPrimary" />
2018-09-24 08:21:47 -05:00
<TextView
android:id="@+id/examNavDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/app_name" />
2019-08-26 13:54:20 -05:00
<com.google.android.material.button.MaterialButton
2018-09-24 08:21:47 -05:00
android:id="@+id/examNextButton"
2019-08-26 13:54:20 -05:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-09-24 08:21:47 -05:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_weight="1"
2019-08-26 13:54:20 -05:00
android:gravity="end|center_vertical"
android:insetLeft="8dp"
2018-10-14 15:16:58 -05:00
android:text="@string/all_next"
2019-08-26 13:54:20 -05:00
android:textColor="?android:textColorPrimary" />
</io.github.wulkanowy.ui.widgets.MaterialLinearLayout>
2018-10-14 15:16:58 -05:00
</FrameLayout>