From 75843f012b09f0f11da4aec10be2f378465a94c2 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Thu, 29 Apr 2021 14:49:04 +0530 Subject: Add dashboard feature UI --- .../main/res/drawable/dummy_leakage_analytics.png | Bin 0 -> 25328 bytes app/src/main/res/drawable/ic_apps_permissions.xml | 22 ++ .../main/res/drawable/ic_chevron_right_24dp.xml | 27 ++ app/src/main/res/drawable/ic_internet_activity.xml | 22 ++ app/src/main/res/drawable/ic_location.xml | 22 ++ app/src/main/res/drawable/ic_privacy_toggle.xml | 22 ++ app/src/main/res/drawable/ic_tracked.xml | 22 ++ app/src/main/res/layout/activity_main.xml | 294 ++++++++++++++++++++- app/src/main/res/values-night/themes.xml | 16 -- app/src/main/res/values/strings.xml | 11 + app/src/main/res/values/themes.xml | 9 +- 11 files changed, 430 insertions(+), 37 deletions(-) create mode 100644 app/src/main/res/drawable/dummy_leakage_analytics.png create mode 100644 app/src/main/res/drawable/ic_apps_permissions.xml create mode 100644 app/src/main/res/drawable/ic_chevron_right_24dp.xml create mode 100644 app/src/main/res/drawable/ic_internet_activity.xml create mode 100644 app/src/main/res/drawable/ic_location.xml create mode 100644 app/src/main/res/drawable/ic_privacy_toggle.xml create mode 100644 app/src/main/res/drawable/ic_tracked.xml delete mode 100644 app/src/main/res/values-night/themes.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/dummy_leakage_analytics.png b/app/src/main/res/drawable/dummy_leakage_analytics.png new file mode 100644 index 0000000..5379cd4 Binary files /dev/null and b/app/src/main/res/drawable/dummy_leakage_analytics.png differ diff --git a/app/src/main/res/drawable/ic_apps_permissions.xml b/app/src/main/res/drawable/ic_apps_permissions.xml new file mode 100644 index 0000000..b7eb1ab --- /dev/null +++ b/app/src/main/res/drawable/ic_apps_permissions.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/app/src/main/res/drawable/ic_chevron_right_24dp.xml b/app/src/main/res/drawable/ic_chevron_right_24dp.xml new file mode 100644 index 0000000..c0a38c1 --- /dev/null +++ b/app/src/main/res/drawable/ic_chevron_right_24dp.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_internet_activity.xml b/app/src/main/res/drawable/ic_internet_activity.xml new file mode 100644 index 0000000..ef34960 --- /dev/null +++ b/app/src/main/res/drawable/ic_internet_activity.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/app/src/main/res/drawable/ic_location.xml b/app/src/main/res/drawable/ic_location.xml new file mode 100644 index 0000000..3b04dc4 --- /dev/null +++ b/app/src/main/res/drawable/ic_location.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/app/src/main/res/drawable/ic_privacy_toggle.xml b/app/src/main/res/drawable/ic_privacy_toggle.xml new file mode 100644 index 0000000..6a0f647 --- /dev/null +++ b/app/src/main/res/drawable/ic_privacy_toggle.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/app/src/main/res/drawable/ic_tracked.xml b/app/src/main/res/drawable/ic_tracked.xml new file mode 100644 index 0000000..9aa4736 --- /dev/null +++ b/app/src/main/res/drawable/ic_tracked.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index bdbfeeb..9bf4396 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,18 +1,286 @@ - - - - - \ No newline at end of file + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml deleted file mode 100644 index 647c8ce..0000000 --- a/app/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - \ 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 fdb9ac8..146bad7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,14 @@ PrivacyCentralApp + Privacy dashboard helps you control and better protect your privacy + Tap to enable quick privacy protection + Personal data leakage over past 24 hours. + Am I tracked? + Currently there are 77 trackers in your apps, 12 trackers are active + Apps Permissions + 120 apps are requesting 72 permissions + My Location + "7 apps are using location permission\n Current location mode: " + My Internet Activity Privacy + "Current internet activity mode: " \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 29ff5b8..e7a4431 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,16 +1,9 @@ - \ No newline at end of file -- cgit v1.2.1