2019-02-13 12:21:27 -06: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"
|
|
|
|
tools:context=".ui.modules.timetable.completed.CompletedLessonsFragment">
|
|
|
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginBottom="50dp">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2019-02-13 12:21:27 -06:00
|
|
|
android:id="@+id/completedLessonsProgress"
|
2019-08-26 13:54:20 -05:00
|
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/completedLessonsSwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/completedLessonsRecycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/completedLessonsEmpty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2019-08-26 13:54:20 -05:00
|
|
|
android:id="@+id/completedLessonsInfoImage"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="100dp"
|
|
|
|
android:minHeight="100dp"
|
2019-08-26 13:54:20 -05:00
|
|
|
app:srcCompat="@drawable/ic_menu_timetable_lessons_completed"
|
2019-02-13 12:21:27 -06:00
|
|
|
app:tint="?android:attr/textColorPrimary"
|
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/completedLessonsInfo"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/completed_lessons_no_items"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
</LinearLayout>
|
2019-11-24 10:05:09 -06:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/completedLessonError"
|
|
|
|
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/completedLessonErrorMessage"
|
|
|
|
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/completedLessonErrorDetails"
|
|
|
|
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/completedLessonErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2019-02-13 12:21:27 -06:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<io.github.wulkanowy.ui.widgets.MaterialLinearLayout
|
|
|
|
android:id="@+id/completedLessonsNavContainer"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:layout_width="match_parent"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:layout_height="48dp"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:layout_gravity="bottom"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:orientation="horizontal"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:gravity="center"
|
2019-08-26 13:54:20 -05:00
|
|
|
tools:ignore="UnusedAttribute">
|
2019-02-13 12:21:27 -06:00
|
|
|
|
2019-09-28 13:37:14 -05:00
|
|
|
<ImageButton
|
2019-02-13 12:21:27 -06:00
|
|
|
android:id="@+id/completedLessonsPreviousButton"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:layout_width="wrap_content"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:scaleType="fitStart"
|
|
|
|
android:tint="?colorPrimary"
|
|
|
|
app:srcCompat="@drawable/ic_chevron_left"
|
|
|
|
android:contentDescription="@string/all_prev"/>
|
2019-02-13 12:21:27 -06:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/completedLessonsNavDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:fontFamily="sans-serif"
|
2019-11-03 07:52:35 -06:00
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:gravity="center"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:text="@string/app_name"
|
|
|
|
android:textSize="16sp" />
|
2019-02-13 12:21:27 -06:00
|
|
|
|
2019-09-28 13:37:14 -05:00
|
|
|
<ImageButton
|
2019-02-13 12:21:27 -06:00
|
|
|
android:id="@+id/completedLessonsNextButton"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:layout_width="wrap_content"
|
2019-02-13 12:21:27 -06:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2019-09-28 13:37:14 -05:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:scaleType="fitEnd"
|
|
|
|
android:tint="?colorPrimary"
|
|
|
|
app:srcCompat="@drawable/ic_chevron_right"
|
|
|
|
android:contentDescription="@string/all_next" />
|
2019-08-26 13:54:20 -05:00
|
|
|
</io.github.wulkanowy.ui.widgets.MaterialLinearLayout>
|
2019-02-13 12:21:27 -06:00
|
|
|
</FrameLayout>
|