1
0

Show list of charts in grade statistics (#689)

This commit is contained in:
Mikołaj Pich
2020-02-29 02:19:48 +01:00
committed by GitHub
parent e61c2bced8
commit be057dd63c
13 changed files with 372 additions and 274 deletions

View File

@ -37,6 +37,7 @@
android:layout_height="wrap_content">
<androidx.core.widget.NestedScrollView
android:id="@+id/gradeStatisticsScroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
@ -90,25 +91,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/gradeStatisticsChart"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/gradeStatisticsRecycler"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:background="?android:windowBackground"
android:minHeight="400dp"
android:visibility="gone"
tools:visibility="visible" />
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/gradeStatisticsChartPoints"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:background="?android:windowBackground"
android:minHeight="400dp"
android:visibility="gone"
tools:visibility="visible" />
tools:listitem="@layout/item_grade_statistics_pie" />
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
android:id="@+id/gradeStatisticsProgress"

View File

@ -0,0 +1,27 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/gradeStatisticsBarTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorControlHighlight"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingRight="20dp"
android:paddingBottom="10dp"
android:textSize="18sp"
tools:text="Matematyka" />
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/gradeStatisticsBar"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_margin="10dp"
android:background="?android:windowBackground"
tools:context=".ui.modules.grade.statistics.GradeStatisticsAdapter" />
</LinearLayout>

View File

@ -0,0 +1,27 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/gradeStatisticsPieTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorControlHighlight"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingRight="20dp"
android:paddingBottom="10dp"
android:textSize="18sp"
tools:text="Matematyka" />
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/gradeStatisticsPie"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_margin="10dp"
android:background="?android:windowBackground"
tools:context=".ui.modules.grade.statistics.GradeStatisticsAdapter" />
</LinearLayout>