2019-03-04 05:13:37 -06:00
|
|
|
<LinearLayout 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"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context=".ui.modules.grade.statistics.GradeStatisticsFragment">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<io.github.wulkanowy.ui.widgets.MaterialLinearLayout
|
2019-03-04 05:13:37 -06:00
|
|
|
android:id="@+id/gradeStatisticsSubjectsContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:background="?android:windowBackground"
|
2019-03-04 05:13:37 -06:00
|
|
|
android:padding="5dp"
|
2020-05-16 15:21:14 -05:00
|
|
|
android:visibility="gone"
|
2019-08-26 13:54:20 -05:00
|
|
|
tools:ignore="UnusedAttribute"
|
2019-03-04 05:13:37 -06:00
|
|
|
tools:listitem="@layout/item_attendance_summary"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<Spinner
|
2019-03-04 05:13:37 -06:00
|
|
|
android:id="@+id/gradeStatisticsSubjects"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingEnd="30dp"
|
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:spinnerMode="dialog" />
|
2019-08-26 13:54:20 -05:00
|
|
|
</io.github.wulkanowy.ui.widgets.MaterialLinearLayout>
|
2019-03-04 05:13:37 -06:00
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/gradeStatisticsSwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2020-02-28 19:19:48 -06:00
|
|
|
android:id="@+id/gradeStatisticsScroll"
|
2019-03-04 05:13:37 -06:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fillViewport="true">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-11-29 13:43:37 -06:00
|
|
|
<HorizontalScrollView
|
|
|
|
android:layout_width="wrap_content"
|
2019-03-04 05:13:37 -06:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-29 13:43:37 -06:00
|
|
|
android:layout_gravity="center">
|
2019-03-04 05:13:37 -06:00
|
|
|
|
2019-11-29 13:43:37 -06:00
|
|
|
<RadioGroup
|
|
|
|
android:id="@+id/gradeStatisticsTypeSwitch"
|
2019-03-04 05:13:37 -06:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-29 13:43:37 -06:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="5dp"
|
2020-05-16 15:21:14 -05:00
|
|
|
android:paddingEnd="16dp">
|
2019-03-04 05:13:37 -06:00
|
|
|
|
2019-11-29 13:43:37 -06:00
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:id="@+id/gradeStatisticsTypePartial"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:checked="true"
|
|
|
|
android:tag="partial"
|
|
|
|
android:text="@string/grade_statistics_partial" />
|
2019-10-02 17:46:08 -05:00
|
|
|
|
2019-11-29 13:43:37 -06:00
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:id="@+id/gradeStatisticsTypeSemester"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:tag="annual"
|
|
|
|
android:text="@string/grade_statistics_semester" />
|
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:id="@+id/gradeStatisticsTypePoints"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:tag="points"
|
|
|
|
android:text="@string/grade_statistics_points" />
|
|
|
|
</RadioGroup>
|
|
|
|
</HorizontalScrollView>
|
2019-03-04 05:13:37 -06:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2020-02-28 19:19:48 -06:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/gradeStatisticsRecycler"
|
2019-03-04 05:13:37 -06:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-02-28 19:19:48 -06:00
|
|
|
tools:listitem="@layout/item_grade_statistics_pie" />
|
2019-03-04 05:13:37 -06:00
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2019-03-04 05:13:37 -06:00
|
|
|
android:id="@+id/gradeStatisticsProgress"
|
2019-08-26 13:54:20 -05:00
|
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar"
|
2019-03-04 05:13:37 -06:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:indeterminate="true"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/gradeStatisticsEmpty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2019-03-04 05:13:37 -06:00
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_main_grade"
|
|
|
|
app:tint="?colorOnBackground"
|
2019-03-04 05:13:37 -06: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/grade_no_items"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
</LinearLayout>
|
2019-11-24 10:05:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/gradeStatisticsError"
|
|
|
|
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/gradeStatisticsErrorMessage"
|
|
|
|
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/gradeStatisticsErrorDetails"
|
|
|
|
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/gradeStatisticsErrorRetry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/all_retry" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2019-03-04 05:13:37 -06:00
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
2019-08-26 13:54:20 -05:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2019-03-04 05:13:37 -06:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
</LinearLayout>
|