summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorjacquarg <guillaume.jacquart@hoodbrains.com>2022-04-25 08:56:18 +0200
committerjacquarg <guillaume.jacquart@hoodbrains.com>2022-05-04 19:03:10 +0200
commit730c2bc7566c03a9774509ab35bbbbca578ecf72 (patch)
tree690e7e57530892fe5a31e12eb8f671d65d3139d2 /app/src/main/res/layout
parentfa5d60f99a07911a13c579074affd646973655b6 (diff)
219 highlight active trackers
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/apptrackers_item_tracker_toggle.xml12
-rw-r--r--app/src/main/res/layout/fragment_dashboard.xml17
-rw-r--r--app/src/main/res/layout/widget.xml15
3 files changed, 37 insertions, 7 deletions
diff --git a/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml b/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml
index 0371390..db7086f 100644
--- a/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml
+++ b/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml
@@ -20,10 +20,10 @@
android:textSize="14sp"
tools:text="Body sensor"
/>
- <Switch
- android:id="@+id/toggle"
- android:layout_width="wrap_content"
- android:layout_height="24dp"
- android:checked="true"
- />
+ <Switch
+ android:id="@+id/toggle"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ android:checked="true"
+ />
</androidx.appcompat.widget.LinearLayoutCompat>
diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml
index d79dea1..f6beca6 100644
--- a/app/src/main/res/layout/fragment_dashboard.xml
+++ b/app/src/main/res/layout/fragment_dashboard.xml
@@ -30,7 +30,7 @@
android:layout_height="25dp"
android:layout_width="24dp"
android:layout_margin="16dp"
- android:src="@drawable/ic_shield_off"
+ android:src="@drawable/ic_shield_off_white"
android:scaleType="fitCenter"
/>
<TextView
@@ -248,6 +248,21 @@ android:text="@string/dashboard_state_ipaddress_off"
/>
<TextView
+ android:id="@+id/leaking_app_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:textColor="@color/primary_text"
+ android:drawableEnd="@drawable/ic_chevron_right_24dp"
+ android:text="@string/dashboard_graph_leaking_app"
+ app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintBottom_toBottomOf="@+id/graph_legend_blocked_icon"
+ app:layout_constraintTop_toTopOf="@+id/graph_legend_blocked_icon"
+ android:gravity="center_vertical|end"
+ android:layout_marginRight="16dp"
+ />
+
+ <TextView
android:id="@+id/graph_empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/app/src/main/res/layout/widget.xml b/app/src/main/res/layout/widget.xml
index e55d8a3..999a888 100644
--- a/app/src/main/res/layout/widget.xml
+++ b/app/src/main/res/layout/widget.xml
@@ -687,6 +687,7 @@
android:layout_marginTop="16dp"
android:layout_marginHorizontal="24dp"
android:layout_marginBottom="24dp"
+ android:gravity="center_vertical"
>
<ImageView
@@ -726,6 +727,20 @@
android:textSize="12sp"
android:text="@string/graph_legend_allowed"
/>
+
+ <TextView
+ android:id="@+id/graph_view_trackers_btn"
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:textAlignment="textEnd"
+ android:gravity="center_vertical|end"
+ android:textColor="@color/on_primary_high_emphasis"
+ android:drawableEnd="@drawable/ic_chevron_right_24dp"
+ android:drawableTint="@color/on_primary_high_emphasis"
+ android:text="@string/widget_graph_view_trackers"
+ />
</LinearLayout>
<TextView