summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-12-05 08:17:03 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-12-05 08:17:03 +0000
commit2234842a2bf5f17b6654a66347f6d3692cf1e443 (patch)
tree8f72170bee6247db6743521675d0ac0822b2ef65 /app/src/main/res/layout
parent0db4d25038823369f320e0cd291968e66ed51e0c (diff)
parent2e897cc8af4234abc4e3f5c3448e1fd7b2b8a1bd (diff)
Merge branch '1203-trackers_oriented_view' into 'main'
1203 trackers oriented view See merge request e/os/advanced-privacy!151
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/apptrackers_fragment.xml208
-rw-r--r--app/src/main/res/layout/apptrackers_item_tracker_toggle.xml22
-rw-r--r--app/src/main/res/layout/disclaimer_block_trackers.xml33
-rw-r--r--app/src/main/res/layout/fragment_fake_location.xml19
-rw-r--r--app/src/main/res/layout/fragment_trackers.xml67
-rw-r--r--app/src/main/res/layout/highlight_data_number.xml58
-rw-r--r--app/src/main/res/layout/trackerdetails_fragment.xml135
-rw-r--r--app/src/main/res/layout/trackers_item_app.xml44
-rw-r--r--app/src/main/res/layout/trackers_list.xml24
9 files changed, 496 insertions, 114 deletions
diff --git a/app/src/main/res/layout/apptrackers_fragment.xml b/app/src/main/res/layout/apptrackers_fragment.xml
index d0a72d5..06b8d3f 100644
--- a/app/src/main/res/layout/apptrackers_fragment.xml
+++ b/app/src/main/res/layout/apptrackers_fragment.xml
@@ -15,18 +15,15 @@
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
-
-<layout xmlns:android="http://schemas.android.com/apk/res/android"
+<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"
- >
-
- <androidx.coordinatorlayout.widget.CoordinatorLayout
- android:background="@color/background"
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- >
+ android:background="@color/background"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ >
<include layout="@layout/topbar" />
@@ -37,80 +34,137 @@
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
- <LinearLayout
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:orientation="vertical"
- >
- <TextView
- android:id="@+id/trackers_count_summary"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="16sp"
- android:padding="16dp"
- />
<LinearLayout
+ android:layout_height="match_parent"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="16dp"
- android:gravity="center_vertical">
+ android:orientation="vertical"
+ android:layout_marginHorizontal="16dp"
+ android:layout_marginVertical="32dp"
+ >
+ <TextView
+ android:id="@+id/subtitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
+ android:textColor="@color/disabled"
+ android:layout_marginBottom="16dp"
+ tools:text="Facebook tracking summary"
+ />
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_marginBottom="16dp"
+ android:baselineAligned="false">
+ <include
+ android:id="@+id/data_detected_trackers"
+ layout="@layout/highlight_data_number"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="16dp"
+ android:layout_weight="1"
+ />
+ <include
+ android:id="@+id/data_blocked_trackers"
+ layout="@layout/highlight_data_number"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ />
+ </LinearLayout>
+ <include
+ android:id="@+id/data_blocked_leaks"
+ layout="@layout/highlight_data_number"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ />
+
<TextView
- android:layout_width="0dp"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="@string/apptrackers_block_all_toggle"
+ android:textSize="14sp"
+ android:lineHeight="24sp"
+ android:textFontWeight="500"
+ android:textColor="@color/primary_text"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:text="@string/trackerdetails_manage_tracker"
/>
- <Switch
- android:id="@+id/block_all_toggle"
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:paddingVertical="12dp"
+ android:layout_marginBottom="16dp"
+ android:gravity="center_vertical">
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
+ android:textColor="@color/primary_text"
+ android:text="@string/apptrackers_block_all_toggle"
+ />
+ <Switch
+ android:id="@+id/block_all_toggle"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ android:checked="true"
+ />
+ </LinearLayout>
+
+ <include
+ android:id="@+id/disclaimer_block_trackers"
+ layout="@layout/disclaimer_block_trackers"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ />
+ <TextView
+ android:id="@+id/list_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/apptrackers_list_title"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:textSize="14sp"
+ android:lineHeight="24sp"
+ android:textFontWeight="500"
+ android:textColor="@color/primary_text"
+ />
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/list"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginBottom="16dp"
+ tools:listitem="@layout/apptrackers_item_tracker_toggle"
+ />
+ <TextView
+ android:id="@+id/no_trackers_yet"
+ android:paddingHorizontal="32dp"
+ android:paddingTop="64dp"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ tools:text="@string/apptrackers_no_trackers_yet_block_off"
+ />
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/btn_reset"
+ style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
- android:layout_height="24dp"
- android:checked="true"
+ android:layout_height="wrap_content"
+ android:text="@string/apptrackers_reset"
+ android:textSize="14sp"
+ android:layout_gravity="center"
+ android:visibility="gone"
+ tools:visibility="visible"
+ android:layout_margin="16dp"
/>
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="@color/divider"
- />
- <TextView
- android:id="@+id/trackers_list_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/apptrackers_trackers_list_title"
- android:padding="16dp"
- android:visibility="gone"
- />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/trackers"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:layout_marginBottom="16dp"
- tools:listitem="@layout/apptrackers_item_tracker_toggle"
- android:visibility="gone"
- />
- <TextView
- android:id="@+id/no_trackers_yet"
- android:paddingHorizontal="32dp"
- android:paddingTop="64dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- tools:text="@string/apptrackers_no_trackers_yet_block_off"
- />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_reset"
- style="@style/Widget.MaterialComponents.Button.OutlinedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/apptrackers_reset"
- android:textSize="14sp"
- android:layout_gravity="center"
- android:visibility="gone"
- tools:visibility="visible"
- android:layout_margin="16dp"
- />
- </LinearLayout>
</androidx.core.widget.NestedScrollView>
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
-</layout> \ No newline at end of file
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
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 db7086f..753e734 100644
--- a/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml
+++ b/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml
@@ -1,12 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~
+ ~ 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/>.
+ -->
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
- android:layout_height="52dp"
+ android:layout_height="62dp"
android:layout_width="match_parent"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
android:gravity="center_vertical"
>
<TextView
@@ -18,6 +32,8 @@
android:maxLines="1"
android:ellipsize="end"
android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
tools:text="Body sensor"
/>
<Switch
diff --git a/app/src/main/res/layout/disclaimer_block_trackers.xml b/app/src/main/res/layout/disclaimer_block_trackers.xml
new file mode 100644
index 0000000..5d58c5f
--- /dev/null
+++ b/app/src/main/res/layout/disclaimer_block_trackers.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~
+ ~ 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"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:drawableStart="@drawable/ic_shield_alert"
+ android:drawableTint="@color/primary_text"
+ tools:text="Note: in some rare cases, disabling tracker can cause some apps to malfunction. You can choose specifically which trackers you want to block. Know more."
+ android:drawablePadding="16dp"
+ android:paddingHorizontal="16dp"
+ android:paddingVertical="12dp"
+ android:textSize="12sp"
+ android:lineHeight="16sp"
+ android:textFontWeight="400"
+ android:background="@drawable/bg_stroke_rounded_12" />
diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml
index 3c709e9..5da95e1 100644
--- a/app/src/main/res/layout/fragment_fake_location.xml
+++ b/app/src/main/res/layout/fragment_fake_location.xml
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~ 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/>.
+ -->
<layout>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
@@ -89,7 +106,7 @@
android:id="@+id/map_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/grey_overlay"
+ android:background="@color/disabled"
android:visibility="visible"
/>
<ProgressBar
diff --git a/app/src/main/res/layout/fragment_trackers.xml b/app/src/main/res/layout/fragment_trackers.xml
index 0cd5980..683f01c 100644
--- a/app/src/main/res/layout/fragment_trackers.xml
+++ b/app/src/main/res/layout/fragment_trackers.xml
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~ 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/>.
+ -->
<layout>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
@@ -13,14 +30,9 @@
<androidx.core.widget.NestedScrollView
android:layout_height="match_parent"
android:layout_width="match_parent"
+ android:fillViewport="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
-
-<LinearLayout
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:orientation="vertical"
- >
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
@@ -66,24 +78,37 @@
app:period="@{@string/trackers_period_year}"
/>
<TextView
- android:id="@+id/trackers_apps_list_title"
+ android:id="@+id/trackers_lists_title"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginTop="32dp"
- android:paddingTop="16dp"
- android:paddingHorizontal="16dp"
- android:text="@string/trackers_applist_title"
+ android:layout_marginHorizontal="16dp"
+ android:layout_marginBottom="24dp"
+ android:textSize="14sp"
+ android:lineHeight="24dp"
+ android:textFontWeight="500"
+ android:text="@string/trackers_lists_title"
+ />
+ <com.google.android.material.tabs.TabLayout
+ android:id="@+id/lists_tabs"
+ android:layout_width="match_parent"
+ android:layout_height="32dp"
+ android:layout_marginHorizontal="16dp"
+ android:layout_marginBottom="32dp"
+ android:background="@drawable/pill_shape_tab_bg"
+ app:tabBackground="@drawable/pill_shape_tab_indicator"
+ app:tabIndicator="@null"
+ app:tabSelectedTextColor="@color/white"
+ app:tabTextColor="@color/primary_text"
+ app:textAllCaps="false"
/>
- </LinearLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/apps"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="16dp"
- android:paddingBottom="32dp"
- />
-</LinearLayout>
-</androidx.core.widget.NestedScrollView>
+ <androidx.viewpager2.widget.ViewPager2
+ android:id="@+id/lists_pager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ />
+ </LinearLayout>
+ </androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
-</layout> \ No newline at end of file
+</layout>
diff --git a/app/src/main/res/layout/highlight_data_number.xml b/app/src/main/res/layout/highlight_data_number.xml
new file mode 100644
index 0000000..7938165
--- /dev/null
+++ b/app/src/main/res/layout/highlight_data_number.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~
+ ~ 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/>.
+ -->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="12dp"
+ android:gravity="center_horizontal"
+ android:background="@drawable/bg_stroke_rounded_12">
+ <TextView
+ android:id="@+id/primary_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
+ android:textColor="@color/primary_text"
+ android:textAllCaps="true"
+ tools:text="Detected in"
+ />
+ <TextView
+ android:id="@+id/number"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginVertical="8dp"
+ android:textSize="24sp"
+ android:lineHeight="24sp"
+ android:textFontWeight="400"
+ android:textColor="@color/primary_text"
+ tools:text="5"
+ />
+ <TextView
+ android:id="@+id/secondary_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="12sp"
+ android:lineHeight="16sp"
+ android:textFontWeight="400"
+ android:textColor="@color/disabled"
+ tools:text="Different applications"
+ />
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/trackerdetails_fragment.xml b/app/src/main/res/layout/trackerdetails_fragment.xml
new file mode 100644
index 0000000..45ba0e4
--- /dev/null
+++ b/app/src/main/res/layout/trackerdetails_fragment.xml
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~
+ ~ 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/>.
+ -->
+<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:background="@color/background"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ >
+
+ <include layout="@layout/topbar" />
+
+ <androidx.core.widget.NestedScrollView
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:fillViewport="true"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
+ >
+
+ <LinearLayout
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:orientation="vertical"
+ android:layout_marginHorizontal="16dp"
+ android:layout_marginVertical="32dp"
+ >
+ <TextView
+ android:id="@+id/subtitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
+ android:textColor="@color/disabled"
+ android:layout_marginBottom="16dp"
+ tools:text="Doubleclic.net tracking summary"
+ />
+ <include
+ android:id="@+id/data_app_count"
+ layout="@layout/highlight_data_number"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ />
+
+ <include
+ android:id="@+id/data_blocked_leaks"
+ layout="@layout/highlight_data_number"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:lineHeight="24sp"
+ android:textFontWeight="500"
+ android:textColor="@color/primary_text"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:text="@string/trackerdetails_manage_tracker"
+ />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:paddingVertical="12dp"
+ android:layout_marginBottom="16dp"
+ android:gravity="center_vertical">
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
+ android:textColor="@color/primary_text"
+ android:text="@string/trackerdetails_block_all_toggle"
+ />
+ <Switch
+ android:id="@+id/block_all_toggle"
+ android:layout_width="wrap_content"
+ android:layout_height="24dp"
+ android:checked="true"
+ />
+ </LinearLayout>
+
+ <include
+ android:id="@+id/disclaimer_block_trackers"
+ layout="@layout/disclaimer_block_trackers"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ />
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/trackerdetails_apps_list_title"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:textSize="14sp"
+ android:lineHeight="24sp"
+ android:textFontWeight="500"
+ android:textColor="@color/primary_text"
+ />
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/apps"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginBottom="16dp"
+ tools:listitem="@layout/apptrackers_item_tracker_toggle"
+
+ />
+ </LinearLayout>
+ </androidx.core.widget.NestedScrollView>
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
diff --git a/app/src/main/res/layout/trackers_item_app.xml b/app/src/main/res/layout/trackers_item_app.xml
index 6af43ea..883a4da 100644
--- a/app/src/main/res/layout/trackers_item_app.xml
+++ b/app/src/main/res/layout/trackers_item_app.xml
@@ -1,20 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~
+ ~ 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/>.
+ -->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
- android:layout_height="52dp"
+ android:layout_height="60dp"
android:layout_width="match_parent"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
+ android:paddingHorizontal="24dp"
+ android:paddingVertical="12dp"
android:gravity="center_vertical"
android:background="?attr/selectableItemBackground"
>
<ImageView
android:id="@+id/icon"
- android:layout_height="32dp"
- android:layout_width="32dp"
+ android:layout_height="24dp"
+ android:layout_width="24dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
@@ -24,10 +40,12 @@
android:id="@+id/title"
android:layout_height="wrap_content"
android:layout_width="0dp"
+ android:layout_marginStart="16dp"
android:maxLines="1"
android:ellipsize="end"
- android:layout_marginStart="16dp"
android:textSize="14sp"
+ android:lineHeight="20sp"
+ android:textFontWeight="400"
android:textColor="@color/primary_text"
tools:text="Body sensor"
app:layout_constraintLeft_toRightOf="@+id/icon"
@@ -42,20 +60,22 @@
android:layout_width="0dp"
android:maxLines="1"
android:ellipsize="end"
- android:layout_marginStart="16dp"
- android:textSize="14sp"
- android:textColor="@color/secondary_text"
- tools:text="1 tracker blocked out of 4"
- app:layout_constraintLeft_toRightOf="@+id/icon"
+ android:textSize="12sp"
+ android:lineHeight="16sp"
+ android:textFontWeight="400"
+ android:textColor="@color/disabled"
+ tools:text="5 trackers detected"
+ app:layout_constraintLeft_toLeftOf="@+id/title"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title"
- app:layout_constraintRight_toLeftOf="@+id/arrow"
+ app:layout_constraintRight_toRightOf="@+id/title"
/>
<ImageView
android:id="@+id/arrow"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_chevron_right_24dp"
+ android:layout_marginStart="16dp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
diff --git a/app/src/main/res/layout/trackers_list.xml b/app/src/main/res/layout/trackers_list.xml
new file mode 100644
index 0000000..3191b91
--- /dev/null
+++ b/app/src/main/res/layout/trackers_list.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2023 MURENA SAS
+ ~ 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/>.
+ -->
+<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+</androidx.recyclerview.widget.RecyclerView>