Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Add hint for average grade #1385

Merged
merged 2 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions app/src/main/res/layout/fragment_grades.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,29 @@
android:background="@color/pop_up_background"
android:padding="@dimen/material_default_padding">

<TextView
android:id="@+id/averageGradeTextView"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textColor="@color/text_light_blue"
android:textSize="@dimen/semilarge_text_size"
android:visibility="visible"
tools:text="Average grade: 1.0" />
android:orientation="vertical">

<TextView
android:id="@+id/averageGradeTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/text_light_blue"
android:textSize="@dimen/semilarge_text_size"
android:textStyle="bold"
android:visibility="visible"
tools:text="Average grade: 1.0" />

<TextView
android:id="@+id/averageGradeHintTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/text_light_blue"
android:visibility="visible"
android:text="@string/average_grade_hint"/>
</LinearLayout>

</FrameLayout>

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

<!-- Exam/Grades -->
<string name="average_grade">Durchschnittsnote</string>
<string name="average_grade_hint">Deinen offiziellen Schnitt findest Du in TUMOnline.</string>
<string name="show_column_chart">Zeige als Balkendiagramm</string>
<string name="show_pie_chart">Zeige als Tortendiagramm</string>
<string name="result_extra">Ergebnis:&#160;</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

<!-- Exam/Grades -->
<string name="average_grade">Average grade</string>
<string name="average_grade_hint">Estimated average. Please refer to TUMOnline for the precise one.</string>
<string name="show_column_chart">Show Column Chart</string>
<string name="show_pie_chart">Show Pie Chart</string>
<string name="result_extra">Result:&#160;</string>
Expand Down