summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_dashboard.xml14
-rw-r--r--app/src/main/res/layout/trackers_item_graph.xml13
-rw-r--r--app/src/main/res/layout/widget.xml12
-rw-r--r--app/src/main/res/values/strings.xml1
4 files changed, 40 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml
index 97fdae3..ec69575 100644
--- a/app/src/main/res/layout/fragment_dashboard.xml
+++ b/app/src/main/res/layout/fragment_dashboard.xml
@@ -185,6 +185,20 @@ android:text="@string/dashboard_state_ipaddress_off"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/graph"
/>
+ <TextView
+ android:id="@+id/graph_empty"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:textColor="@color/secondary_text"
+ android:layout_marginHorizontal="16dp"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:text="@string/graph_empty_message"
+ android:gravity="center"
+ android:visibility="gone"
+ />
+
</androidx.constraintlayout.widget.ConstraintLayout>
<include
diff --git a/app/src/main/res/layout/trackers_item_graph.xml b/app/src/main/res/layout/trackers_item_graph.xml
index 5a2714c..5cc2d98 100644
--- a/app/src/main/res/layout/trackers_item_graph.xml
+++ b/app/src/main/res/layout/trackers_item_graph.xml
@@ -55,5 +55,18 @@
android:layout_width="match_parent"
app:layout_constraintTop_toBottomOf="@+id/graph_period_label"
/>
+ <TextView
+ android:id="@+id/graph_empty"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:textColor="@color/secondary_text"
+ android:layout_marginHorizontal="16dp"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:text="@string/graph_empty_message"
+ android:gravity="center"
+ android:visibility="gone"
+ />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout> \ No newline at end of file
diff --git a/app/src/main/res/layout/widget.xml b/app/src/main/res/layout/widget.xml
index 612221a..6930429 100644
--- a/app/src/main/res/layout/widget.xml
+++ b/app/src/main/res/layout/widget.xml
@@ -171,6 +171,7 @@
<LinearLayout
+ android:id="@+id/graph"
android:layout_width="match_parent"
android:layout_marginTop="16dp"
android:layout_marginHorizontal="24dp"
@@ -388,4 +389,15 @@
android:layout_marginBottom="24dp"
/>
+ <TextView
+ android:id="@+id/graph_empty"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_margin="24dp"
+ android:text="@string/graph_empty_message"
+ android:textColor="@color/on_primary_disabled"
+ android:visibility="gone"
+ android:gravity="center"
+ />
+
</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index d6cf817..9655487 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -3,6 +3,7 @@
<!-- Commons -->
<string name="dummy_system_app_label">System</string>
+ <string name="graph_empty_message">Congratulations! No trackers are profiling you.</string>
<!-- Dashboard -->
<string name="dashboard_title">Quick Privacy</string>