summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorjacquarg <guillaume.jacquart@hoodbrains.com>2022-04-12 09:28:00 +0200
committerjacquarg <guillaume.jacquart@hoodbrains.com>2022-04-12 09:28:00 +0200
commitb14d22413713fd865fafb8a53e44fd74017a6279 (patch)
treee59ef6c444ff265fc8c44777ba8c80f88a484cf1 /app/src/main/res
parent5cdeb5520c74fbaab1909dc1876361ed73f11b55 (diff)
5255 Add instructions above leaks diagrams.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_dashboard.xml12
-rw-r--r--app/src/main/res/layout/fragment_trackers.xml8
-rw-r--r--app/src/main/res/values/strings.xml4
3 files changed, 22 insertions, 2 deletions
diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml
index ff64733..d2cb53c 100644
--- a/app/src/main/res/layout/fragment_dashboard.xml
+++ b/app/src/main/res/layout/fragment_dashboard.xml
@@ -168,6 +168,18 @@ android:text="@string/dashboard_state_ipaddress_off"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
+ <TextView
+ android:id="@+id/graph_subtitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/graph_subtitle"
+ android:layout_marginLeft="16dp"
+ android:paddingTop="4dp"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/graph_title"
+ android:textColor="@color/secondary_text"
+ android:textSize="14sp"
+ />
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/graph"
diff --git a/app/src/main/res/layout/fragment_trackers.xml b/app/src/main/res/layout/fragment_trackers.xml
index 2122816..7ee4d29 100644
--- a/app/src/main/res/layout/fragment_trackers.xml
+++ b/app/src/main/res/layout/fragment_trackers.xml
@@ -35,10 +35,16 @@
android:lineSpacingExtra="5sp"
android:text="@string/trackers_info"
/>
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/graph_subtitle"
+ android:paddingTop="24dp"
+ />
<include layout="@layout/trackers_item_graph"
android:id="@+id/graph_day"
- android:layout_marginTop="32dp"
+ android:layout_marginTop="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:period="@{@string/trackers_period_day}"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 199472d..cf293e1 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -6,6 +6,8 @@
<string name="graph_empty_message">Congratulations! No trackers are profiling you.</string>
<string name="graph_legend_blocked">Blocked leaks</string>
<string name="graph_legend_allowed">Allowed leaks</string>
+ <string name="graph_subtitle">Tap on the bars for more information.</string>
+
<!-- Dashboard -->
<string name="dashboard_title">@string/app_name</string>
@@ -20,7 +22,7 @@
<string name="dashboard_state_ipaddress_label">Real IP address:</string>
<string name="dashboard_state_ipaddress_off">Exposed</string>
<string name="dashboard_state_ipaddress_on">Hidden</string>
- <string name="dashboard_graph_label">Personal data leakage</string>
+ <string name="dashboard_graph_label">Personal data leakage:</string>
<string name="dashboard_graph_period">Today</string>
<string name="dashboard_graph_trackers_legend">%s trackers have profiled you in the last 24 hours</string>