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/drawable/dummy_trackers_usage.pngbin0 -> 16635 bytes
-rw-r--r--app/src/main/res/layout/fragment_permission_apps.xml2
-rw-r--r--app/src/main/res/layout/fragment_tracker_apps.xml38
-rw-r--r--app/src/main/res/layout/fragment_trackers.xml37
-rw-r--r--app/src/main/res/layout/item_app_toggle.xml (renamed from app/src/main/res/layout/item_permission_apps.xml)4
-rw-r--r--app/src/main/res/layout/item_list_tracker.xml29
-rw-r--r--app/src/main/res/values/colors.xml2
-rw-r--r--app/src/main/res/values/strings.xml5
8 files changed, 109 insertions, 8 deletions
diff --git a/app/src/main/res/drawable/dummy_trackers_usage.png b/app/src/main/res/drawable/dummy_trackers_usage.png
new file mode 100644
index 0000000..9b7e090
--- /dev/null
+++ b/app/src/main/res/drawable/dummy_trackers_usage.png
Binary files differ
diff --git a/app/src/main/res/layout/fragment_permission_apps.xml b/app/src/main/res/layout/fragment_permission_apps.xml
index 65f4169..760c891 100644
--- a/app/src/main/res/layout/fragment_permission_apps.xml
+++ b/app/src/main/res/layout/fragment_permission_apps.xml
@@ -32,7 +32,7 @@
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:listitem="@layout/item_permission_apps"
+ tools:listitem="@layout/item_app_toggle"
android:id="@+id/recylcer_view_permission_apps"/>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_tracker_apps.xml b/app/src/main/res/layout/fragment_tracker_apps.xml
new file mode 100644
index 0000000..bb31b5b
--- /dev/null
+++ b/app/src/main/res/layout/fragment_tracker_apps.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/white"
+ >
+
+ <include layout="@layout/topbar"/>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ tools:context=".main.MainActivity"
+ >
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingLeft="32dp"
+ android:paddingRight="32dp"
+ android:text="@string/enable_disable_tracker_info"
+ android:textColor="@color/black"
+ android:textSize="14sp"
+ />
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:listitem="@layout/item_app_toggle"
+ android:id="@+id/recylcer_view_tracker_apps"/>
+ </LinearLayout>
+</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_trackers.xml b/app/src/main/res/layout/fragment_trackers.xml
index e11f4cc..13fcab3 100644
--- a/app/src/main/res/layout/fragment_trackers.xml
+++ b/app/src/main/res/layout/fragment_trackers.xml
@@ -26,21 +26,48 @@
>
<TextView
- android:id="@+id/internet_activity_privacy_info"
+ android:id="@+id/trackers_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingTop="16dp"
- android:text="@string/internet_activity_privacy_info"
+ android:text="@string/manage_trackers_info"
android:textColor="@color/black"
android:textSize="14sp"
/>
- <Button android:id="@+id/triggerBlockerService"
- android:layout_height="wrap_content"
+ <TextView
+ android:id="@+id/learn_more_trackers_info"
+ android:layout_width="wrap_content"
+ android:layout_height="48dp"
+ android:fontFamily="sans-serif-medium"
+ android:gravity="center_vertical"
+ android:text="@string/learn_more"
+ android:textColor="#007fff"
+ android:textSize="14sp"
+ />
+
+ <ImageView
+ android:layout_height="300dp"
android:layout_width="wrap_content"
- android:text="Trigger Blocker"/>
+ android:scaleType="centerInside"
+ android:src="@drawable/dummy_trackers_usage"
/>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:paddingTop="16dp"
+ android:text="@string/following_trackers_in_use"
+ android:textColor="@color/black"
+ android:textSize="16sp"
+ />
+ <androidx.recyclerview.widget.RecyclerView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:listitem="@layout/item_list_tracker"
+ android:id="@+id/recylcer_view_trackers"/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_permission_apps.xml b/app/src/main/res/layout/item_app_toggle.xml
index aec8fec..7d02ec0 100644
--- a/app/src/main/res/layout/item_permission_apps.xml
+++ b/app/src/main/res/layout/item_app_toggle.xml
@@ -24,7 +24,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_toStartOf="@+id/togglePermission"
+ android:layout_toStartOf="@+id/toggle"
android:layout_toEndOf="@+id/app_icon"
android:fontFamily="sans-serif-medium"
android:paddingStart="32dp"
@@ -35,7 +35,7 @@
/>
<Switch
- android:id="@+id/togglePermission"
+ android:id="@+id/toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
diff --git a/app/src/main/res/layout/item_list_tracker.xml b/app/src/main/res/layout/item_list_tracker.xml
new file mode 100644
index 0000000..1b5ecc2
--- /dev/null
+++ b/app/src/main/res/layout/item_list_tracker.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ ~ Copyright (C) 2021 E FOUNDATION
+ ~
+ ~ This program is free software: you can redistribute it and/or modify
+ ~ it under the terms of the GNU General Public License as published by
+ ~ the Free Software Foundation, either version 3 of the License, or
+ ~ (at your option) any later version.
+ ~
+ ~ This program is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ ~ GNU General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU General Public License
+ ~ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ -->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:fontFamily="sans-serif-medium"
+ android:id="@+id/tracker_title"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:textColor="@color/accent"
+ android:textSize="16sp"
+ tools:text="Google Crashlytics"
+ /> \ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index f8c6127..4f45122 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -7,4 +7,6 @@
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
+
+ <color name="accent">@lineageos.platform:color/color_default_accent</color>
</resources> \ 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 fd24223..eb799d1 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -43,4 +43,9 @@
<string name="privacy_dashboard">Privacy Dashboard</string>
<string name="click_to_learn_more">Click to learn more</string>
<string name="apps_permissions">\"Apps Permission\"</string>
+ <string name="trackers">Trackers</string>
+ <string name="manage_trackers_info">See trackers usage over time and manage trackers available in applications</string>
+ <string name="following_trackers_in_use">Following trackers are in use</string>
+ <string name="enable_disable_tracker_info">Enable or disable this tracker for the following apps</string>
+ <string name="tracker">Tracker</string>
</resources> \ No newline at end of file