summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/fragment_dashboard.xml
diff options
context:
space:
mode:
authorRomain Hunault <romain.hunault@e.email>2022-04-05 18:23:04 +0000
committerRomain Hunault <romain.hunault@e.email>2022-04-05 18:23:04 +0000
commit752ee5975d0d1b75ef773b4d7e20ad00fac96519 (patch)
treed3abbbad472ed6a889bc3c0fa334329c01d35b4b /app/src/main/res/layout/fragment_dashboard.xml
parent250da848583f1fbd2d6658339fc758d22c67e938 (diff)
parent1116394343fe8cb489f5405ab3c61b5e1ce78a50 (diff)
Merge branch '5217_blocked_trackers' into 'main'
5217 - Display blocked trackers, 5216 : add leaks in tooltips See merge request e/privacy-central/privacycentralapp!39
Diffstat (limited to 'app/src/main/res/layout/fragment_dashboard.xml')
-rw-r--r--app/src/main/res/layout/fragment_dashboard.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml
index 53ec617..ff64733 100644
--- a/app/src/main/res/layout/fragment_dashboard.xml
+++ b/app/src/main/res/layout/fragment_dashboard.xml
@@ -188,6 +188,55 @@ android:text="@string/dashboard_state_ipaddress_off"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/graph"
/>
+
+ <View
+ android:id="@+id/graph_legend_blocked_icon"
+ android:layout_width="16dp"
+ android:layout_height="16dp"
+ android:padding="1dp"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/graph_legend"
+ android:layout_marginTop="8dp"
+ android:layout_marginStart="16dp"
+ android:background="@drawable/ic_legend_blocked"
+ />
+ <TextView
+ android:id="@+id/graph_legend_blocked"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ tools:text="0 Trackers"
+ android:layout_marginStart="8dp"
+ android:textSize="12sp"
+ app:layout_constraintLeft_toRightOf="@+id/graph_legend_blocked_icon"
+ app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
+ android:layout_marginTop="8dp"
+ android:text="@string/graph_legend_blocked"
+ />
+
+ <View
+ android:id="@+id/graph_legend_allowed_icon"
+ android:layout_width="16dp"
+ android:layout_height="16dp"
+ android:padding="1dp"
+ app:layout_constraintLeft_toRightOf="@+id/graph_legend_blocked"
+ app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
+ android:layout_marginTop="8dp"
+ android:layout_marginStart="32dp"
+ android:background="@drawable/ic_legend_leaked"
+ />
+ <TextView
+ android:id="@+id/graph_legend_allowed"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ tools:text="0 Trackers"
+ android:layout_marginStart="8dp"
+ android:textSize="12sp"
+ app:layout_constraintLeft_toRightOf="@+id/graph_legend_allowed_icon"
+ app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
+ android:layout_marginTop="8dp"
+ android:text="@string/graph_legend_allowed"
+ />
+
<TextView
android:id="@+id/graph_empty"
android:layout_width="match_parent"