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

Commit

Permalink
Add hint for average grade (#1385)
Browse files Browse the repository at this point in the history
* add hint for average grade

* fix typo
  • Loading branch information
joschahenningsen authored Apr 9, 2021
1 parent 059820f commit 105b81f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
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

0 comments on commit 105b81f

Please sign in to comment.