diff options
author | Amit Kumar <amitkma@e.email> | 2021-05-03 03:17:11 +0530 |
---|---|---|
committer | Amit Kumar <amitkma@e.email> | 2021-05-03 03:17:11 +0530 |
commit | 0d036a8742f54eb9ea87e64fdce9ab878f58859b (patch) | |
tree | 2ee2ddab1e61f2d436ce1d4401cbe1b032282e37 /app/src/main/res/layout | |
parent | 75843f012b09f0f11da4aec10be2f378465a94c2 (diff) |
Connect multiple features
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_main.xml | 286 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_dashboard.xml | 334 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_fake_location.xml | 151 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_internet_activity_policy.xml | 105 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_permission_control.xml | 46 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_permissions.xml | 57 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_quick_protection.xml | 68 | ||||
-rw-r--r-- | app/src/main/res/layout/item_permission.xml | 73 | ||||
-rw-r--r-- | app/src/main/res/layout/item_permission_apps.xml | 44 |
9 files changed, 881 insertions, 283 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 9bf4396..7013496 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,286 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<FrameLayout 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.fragment.app.FragmentContainerView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" - > - - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" - android:layout_width="match_parent" - android:layout_height="?android:attr/actionBarSize" - android:layout_gravity="top|center" - android:background="@color/white" - tools:layout_height="56dp" - /> - - <androidx.core.widget.NestedScrollView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_marginTop="?android:attr/actionBarSize" - > - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@color/white" - android:gravity="center_horizontal" - android:orientation="vertical" - tools:context=".features.dashboard.DashboardActivity" - > - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:gravity="center" - android:paddingLeft="32dp" - android:paddingTop="16dp" - android:paddingRight="32dp" - android:paddingBottom="16dp" - android:text="@string/privacy_dashboard_info" - android:textColor="@color/black" - android:textSize="14sp" - /> - - <ImageView - android:id="@+id/togglePrivacyCentral" - android:layout_width="96dp" - android:layout_height="96dp" - android:layout_marginTop="16dp" - android:layout_marginBottom="16dp" - android:src="@drawable/ic_privacy_toggle" - /> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:drawableEnd="@drawable/ic_chevron_right_24dp" - android:fontFamily="sans-serif-medium" - android:gravity="center" - android:paddingLeft="32dp" - android:paddingTop="16dp" - android:paddingRight="32dp" - android:paddingBottom="16dp" - android:text="@string/tap_to_enable_quick_protection" - android:textColor="@color/black" - android:textSize="14sp" - /> - - <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:src="@drawable/dummy_leakage_analytics" - /> - - <TextView - android:id="@+id/personal_leakag_info" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:gravity="center" - android:paddingLeft="32dp" - android:paddingRight="32dp" - android:text="@string/personal_leakage_info" - android:textColor="@color/black" - android:textSize="12sp" - /> - - <RelativeLayout - android:id="@+id/am_i_tracked" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="#f9f9f9" - android:paddingTop="16dp" - android:paddingBottom="16dp" - android:paddingLeft="32dp" - android:paddingRight="32dp"> - <ImageView android:src="@drawable/ic_tracked" - android:id="@+id/am_i_tracked_icon" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_centerVertical="true" - android:layout_alignParentStart="true"/> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="32dp" - android:orientation="vertical" - android:layout_toEndOf="@+id/am_i_tracked_icon" - android:layout_toStartOf="@+id/am_i_tracked_chevron"> - <TextView - android:id="@+id/am_i_tracked_title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fontFamily="sans-serif-medium" - android:text="@string/am_i_tracked_title" - android:textColor="@color/black" - android:textSize="16sp" - /> - <TextView - android:id="@+id/am_i_tracked_subtitle" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/am_i_tracked_subtitle" - android:textColor="@color/black" - android:textSize="14sp" - /> - </LinearLayout> - <ImageView android:src="@drawable/ic_chevron_right_24dp" - android:id="@+id/am_i_tracked_chevron" - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_centerVertical="true" - android:layout_alignParentEnd="true"/> - </RelativeLayout> - <RelativeLayout - android:id="@+id/apps_permissions" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="#f9f9f9" - android:paddingTop="16dp" - android:paddingBottom="16dp" - android:paddingLeft="32dp" - android:paddingRight="32dp"> - <ImageView android:src="@drawable/ic_apps_permissions" - android:id="@+id/apps_permissions_icon" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_centerVertical="true" - android:layout_alignParentStart="true"/> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="32dp" - android:orientation="vertical" - android:layout_toEndOf="@+id/apps_permissions_icon" - android:layout_toStartOf="@+id/apps_permissions_chevron"> - <TextView - android:id="@+id/apps_permissions_title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fontFamily="sans-serif-medium" - android:text="@string/apps_permissions_title" - android:textColor="@color/black" - android:textSize="16sp" - /> - <TextView - android:id="@+id/apps_permissions_subtitle" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/apps_permissions_subtitle" - android:textColor="@color/black" - android:textSize="14sp" - /> - </LinearLayout> - <ImageView android:src="@drawable/ic_chevron_right_24dp" - android:id="@+id/apps_permissions_chevron" - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_centerVertical="true" - android:layout_alignParentEnd="true"/> - </RelativeLayout> - <RelativeLayout - android:id="@+id/my_location" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="#f9f9f9" - android:paddingTop="16dp" - android:paddingBottom="16dp" - android:paddingLeft="32dp" - android:paddingRight="32dp"> - <ImageView android:src="@drawable/ic_location" - android:id="@+id/my_location_icon" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_centerVertical="true" - android:layout_alignParentStart="true"/> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="32dp" - android:orientation="vertical" - android:layout_toEndOf="@+id/my_location_icon" - android:layout_toStartOf="@+id/my_location_chevron"> - <TextView - android:id="@+id/my_location_title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fontFamily="sans-serif-medium" - android:text="@string/my_location_title" - android:textColor="@color/black" - android:textSize="16sp" - /> - <TextView - android:id="@+id/my_location_subtitle" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/my_location_subtitle" - android:textColor="@color/black" - android:textSize="14sp" - /> - </LinearLayout> - <ImageView android:src="@drawable/ic_chevron_right_24dp" - android:id="@+id/my_location_chevron" - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_centerVertical="true" - android:layout_alignParentEnd="true"/> - </RelativeLayout> - <RelativeLayout - android:id="@+id/internet_activity_privacy" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="#f9f9f9" - android:paddingTop="16dp" - android:paddingBottom="16dp" - android:paddingLeft="32dp" - android:paddingRight="32dp"> - <ImageView android:src="@drawable/ic_internet_activity" - android:id="@+id/internet_activity_privacy_icon" - android:layout_width="36dp" - android:layout_height="36dp" - android:layout_centerVertical="true" - android:layout_alignParentStart="true"/> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="16dp" - android:paddingEnd="32dp" - android:orientation="vertical" - android:layout_toEndOf="@+id/internet_activity_privacy_icon" - android:layout_toStartOf="@+id/internet_activity_privacy_chevron"> - <TextView - android:id="@+id/internet_activity_privacy_title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:fontFamily="sans-serif-medium" - android:text="@string/internet_activity_privacy_title" - android:textColor="@color/black" - android:textSize="16sp" - /> - <TextView - android:id="@+id/internet_activity_privacy_subtitle" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/internet_activity_privacy_subtitle" - android:textColor="@color/black" - android:textSize="14sp" - /> - </LinearLayout> - <ImageView android:src="@drawable/ic_chevron_right_24dp" - android:id="@+id/internet_activity_privacy_chevron" - android:layout_width="24dp" - android:layout_height="24dp" - android:layout_centerVertical="true" - android:layout_alignParentEnd="true"/> - </RelativeLayout> - - </LinearLayout> - </androidx.core.widget.NestedScrollView> -</FrameLayout>
\ No newline at end of file + />
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_dashboard.xml b/app/src/main/res/layout/fragment_dashboard.xml new file mode 100644 index 0000000..ed4de49 --- /dev/null +++ b/app/src/main/res/layout/fragment_dashboard.xml @@ -0,0 +1,334 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + <androidx.core.widget.NestedScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="?android:attr/actionBarSize" + > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/white" + android:gravity="center_horizontal" + android:orientation="vertical" + tools:context=".main.MainActivity" + > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:gravity="center" + android:paddingLeft="32dp" + android:paddingTop="16dp" + android:paddingRight="32dp" + android:paddingBottom="16dp" + android:text="@string/privacy_dashboard_info" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <ImageView + android:id="@+id/togglePrivacyCentral" + android:layout_width="96dp" + android:layout_height="96dp" + android:layout_marginTop="16dp" + android:layout_marginBottom="16dp" + android:src="@drawable/ic_privacy_toggle" + /> + + <TextView + android:id="@+id/tap_to_enable_quick_protection" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:drawableEnd="@drawable/ic_chevron_right_24dp" + android:fontFamily="sans-serif-medium" + android:gravity="center" + android:paddingLeft="32dp" + android:paddingTop="16dp" + android:paddingRight="32dp" + android:paddingBottom="16dp" + android:text="@string/tap_to_enable_quick_protection" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/dummy_leakage_analytics" + /> + + <TextView + android:id="@+id/personal_leakag_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:gravity="center" + android:paddingLeft="32dp" + android:paddingRight="32dp" + android:text="@string/personal_leakage_info" + android:textColor="@color/black" + android:textSize="12sp" + /> + + <RelativeLayout + android:id="@+id/am_i_tracked" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="#f9f9f9" + android:paddingLeft="32dp" + android:paddingTop="16dp" + android:paddingRight="32dp" + android:paddingBottom="16dp" + > + + <ImageView + android:id="@+id/am_i_tracked_icon" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_tracked" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toStartOf="@+id/am_i_tracked_chevron" + android:layout_toEndOf="@+id/am_i_tracked_icon" + android:orientation="vertical" + android:paddingStart="16dp" + android:paddingEnd="32dp" + > + + <TextView + android:id="@+id/am_i_tracked_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:text="@string/am_i_tracked_title" + android:textColor="@color/black" + android:textSize="16sp" + /> + + <TextView + android:id="@+id/am_i_tracked_subtitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/am_i_tracked_subtitle" + android:textColor="@color/black" + android:textSize="14sp" + /> + </LinearLayout> + + <ImageView + android:id="@+id/am_i_tracked_chevron" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_chevron_right_24dp" + /> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/apps_permissions" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="#f9f9f9" + android:paddingLeft="32dp" + android:paddingTop="16dp" + android:paddingRight="32dp" + android:paddingBottom="16dp" + > + + <ImageView + android:id="@+id/apps_permissions_icon" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_apps_permissions" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toStartOf="@+id/apps_permissions_chevron" + android:layout_toEndOf="@+id/apps_permissions_icon" + android:orientation="vertical" + android:paddingStart="16dp" + android:paddingEnd="32dp" + > + + <TextView + android:id="@+id/apps_permissions_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:text="@string/apps_permissions_title" + android:textColor="@color/black" + android:textSize="16sp" + /> + + <TextView + android:id="@+id/apps_permissions_subtitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/apps_permissions_subtitle" + android:textColor="@color/black" + android:textSize="14sp" + /> + </LinearLayout> + + <ImageView + android:id="@+id/apps_permissions_chevron" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_chevron_right_24dp" + /> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/my_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="#f9f9f9" + android:paddingLeft="32dp" + android:paddingTop="16dp" + android:paddingRight="32dp" + android:paddingBottom="16dp" + > + + <ImageView + android:id="@+id/my_location_icon" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_location" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toStartOf="@+id/my_location_chevron" + android:layout_toEndOf="@+id/my_location_icon" + android:orientation="vertical" + android:paddingStart="16dp" + android:paddingEnd="32dp" + > + + <TextView + android:id="@+id/my_location_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:text="@string/my_location_title" + android:textColor="@color/black" + android:textSize="16sp" + /> + + <TextView + android:id="@+id/my_location_subtitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/my_location_subtitle" + android:textColor="@color/black" + android:textSize="14sp" + /> + </LinearLayout> + + <ImageView + android:id="@+id/my_location_chevron" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_chevron_right_24dp" + /> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/internet_activity_privacy" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="#f9f9f9" + android:paddingLeft="32dp" + android:paddingTop="16dp" + android:paddingRight="32dp" + android:paddingBottom="16dp" + > + + <ImageView + android:id="@+id/internet_activity_privacy_icon" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_internet_activity" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toStartOf="@+id/internet_activity_privacy_chevron" + android:layout_toEndOf="@+id/internet_activity_privacy_icon" + android:orientation="vertical" + android:paddingStart="16dp" + android:paddingEnd="32dp" + > + + <TextView + android:id="@+id/internet_activity_privacy_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:text="@string/internet_activity_privacy_title" + android:textColor="@color/black" + android:textSize="16sp" + /> + + <TextView + android:id="@+id/internet_activity_privacy_subtitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/internet_activity_privacy_subtitle" + android:textColor="@color/black" + android:textSize="14sp" + /> + </LinearLayout> + + <ImageView + android:id="@+id/internet_activity_privacy_chevron" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_chevron_right_24dp" + /> + </RelativeLayout> + + </LinearLayout> + </androidx.core.widget.NestedScrollView> +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml new file mode 100644 index 0000000..1b02f86 --- /dev/null +++ b/app/src/main/res/layout/fragment_fake_location.xml @@ -0,0 +1,151 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + <androidx.core.widget.NestedScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="?android:attr/actionBarSize" + android:layout_marginBottom="32dp" + > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="32dp" + android:paddingRight="32dp" + tools:context=".main.MainActivity" + > + + <TextView + android:id="@+id/fake_location_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:paddingTop="16dp" + android:text="@string/fake_location_info" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <TextView + android:id="@+id/learn_more_fake_location" + 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" + /> + + <TextView + android:id="@+id/my_location_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:paddingTop="16dp" + android:paddingBottom="8dp" + android:text="@string/my_location_title" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <RadioGroup + android:id="@+id/location_choices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + > + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_real_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_real_location" + android:textSize="16sp" + /> + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_random_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_random_location" + android:textSize="16sp" + /> + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_specific_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_specific_location" + android:textSize="16sp" + /> + </RadioGroup> + + <ImageView + android:layout_width="match_parent" + android:layout_height="254dp" + android:layout_marginTop="32dp" + android:layout_marginBottom="32dp" + android:src="@drawable/dummy_img_map_picker" + /> + + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/edittext_longitude" + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/longitude" + > + + <com.google.android.material.textfield.TextInputEditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="numberDecimal" + /> + </com.google.android.material.textfield.TextInputLayout> + + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/edittext_latitude" + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:hint="@string/latitude" + > + + <com.google.android.material.textfield.TextInputEditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="numberDecimal" + /> + </com.google.android.material.textfield.TextInputLayout> + + <Button + android:id="@+id/button_add_location" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/add_location" + app:backgroundTint="#007fff" + android:layout_marginTop="32dp" + /> + </LinearLayout> + </androidx.core.widget.NestedScrollView> +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_internet_activity_policy.xml b/app/src/main/res/layout/fragment_internet_activity_policy.xml new file mode 100644 index 0000000..787ee11 --- /dev/null +++ b/app/src/main/res/layout/fragment_internet_activity_policy.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + <androidx.core.widget.NestedScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="?android:attr/actionBarSize" + android:layout_marginBottom="32dp" + > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="32dp" + android:paddingRight="32dp" + tools:context=".main.MainActivity" + > + + <TextView + android:id="@+id/internet_activity_privacy_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:textColor="@color/black" + android:textSize="14sp" + /> + + <TextView + android:id="@+id/learn_more_internet_activity_privacy_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" + /> + + <TextView + android:id="@+id/my_internet_activity_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:paddingTop="16dp" + android:paddingBottom="8dp" + android:text="@string/internet_activity_privacy_title" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <RadioGroup + android:id="@+id/internet_activity_privacy_choices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + > + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_real_ip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_real_ip" + android:textSize="16sp" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/i_can_be_tracked" + android:textSize="14sp"/> + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_hide_ip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/hide_ip" + android:textSize="16sp" + android:layout_marginTop="8dp" + /> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/i_am_anonymous" + android:textSize="14sp"/> + </RadioGroup> + </LinearLayout> + </androidx.core.widget.NestedScrollView> +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_permission_control.xml b/app/src/main/res/layout/fragment_permission_control.xml new file mode 100644 index 0000000..2888af0 --- /dev/null +++ b/app/src/main/res/layout/fragment_permission_control.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_marginTop="?android:attr/actionBarSize" + tools:context=".main.MainActivity" + > + + <TextView + android:id="@+id/permission_control" + 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:textColor="@color/black" + android:textSize="14sp" + /> + + <androidx.recyclerview.widget.RecyclerView + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:listitem="@layout/item_permission_apps" + android:id="@+id/recylcer_view_permission_apps"/> + </LinearLayout> +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_permissions.xml b/app/src/main/res/layout/fragment_permissions.xml new file mode 100644 index 0000000..9d1e972 --- /dev/null +++ b/app/src/main/res/layout/fragment_permissions.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="32dp" + android:paddingRight="32dp" + android:layout_marginTop="?android:attr/actionBarSize" + tools:context=".main.MainActivity" + > + + <TextView + android:id="@+id/permission_control" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:paddingTop="16dp" + android:text="@string/permission_control_info" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <TextView + android:id="@+id/learn_more_permissions" + 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" + /> + + <androidx.recyclerview.widget.RecyclerView + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:listitem="@layout/item_permission" + android:id="@+id/recylcer_view_permissions"/> + </LinearLayout> +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_quick_protection.xml b/app/src/main/res/layout/fragment_quick_protection.xml new file mode 100644 index 0000000..e8233ee --- /dev/null +++ b/app/src/main/res/layout/fragment_quick_protection.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/white" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_marginTop="?android:attr/actionBarSize" + android:layout_marginBottom="56dp" + tools:context=".main.MainActivity" + > + + <TextView + android:id="@+id/quick_protection_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:paddingLeft="32dp" + android:paddingRight="32dp" + android:paddingTop="16dp" + android:text="@string/quick_protection_info" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <TextView + android:id="@+id/quick_protection_settings_list" + 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:fontFamily="sans-serif-medium" + android:text="@string/quick_protection_settings_list" + android:textColor="@color/black" + android:textSize="14sp" + /> + </LinearLayout> + <TextView + android:layout_width="wrap_content" + android:layout_height="56dp" + android:paddingRight="32dp" + android:paddingLeft="32dp" + android:gravity="center_vertical|right" + android:id="@+id/learn_more" + android:text="@string/learn_more" + android:textColor="#007fff" + android:textSize="14sp" + android:fontFamily="sans-serif-medium" + android:layout_gravity="bottom|right"/> +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_permission.xml b/app/src/main/res/layout/item_permission.xml new file mode 100644 index 0000000..8f54f64 --- /dev/null +++ b/app/src/main/res/layout/item_permission.xml @@ -0,0 +1,73 @@ +<?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/>. + --> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/item_permission" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingBottom="16dp" + > + + <ImageView + android:id="@+id/permission_icon" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_body_monitor" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toStartOf="@+id/chevron" + android:layout_toEndOf="@+id/permission_icon" + android:orientation="vertical" + android:paddingStart="32dp" + android:paddingEnd="32dp" + > + + <TextView + android:id="@+id/permission_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + tools:text="Body sensor" + android:textColor="@color/black" + android:textSize="16sp" + /> + + <TextView + android:id="@+id/permission_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + tools:text="3 of 8 apps allowed" + android:textSize="14sp" + /> + </LinearLayout> + + <ImageView + android:id="@+id/chevron" + android:layout_width="24dp" + android:layout_height="24dp" + android:padding="4dp" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_chevron_right_24dp" + /> +</RelativeLayout>
\ 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_permission_apps.xml new file mode 100644 index 0000000..aec8fec --- /dev/null +++ b/app/src/main/res/layout/item_permission_apps.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/item_permission_apps" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="32dp" + android:paddingRight="32dp" + > + + <ImageView + android:id="@+id/app_icon" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:src="@drawable/ic_facebook" + /> + + <TextView + android:id="@+id/app_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_toStartOf="@+id/togglePermission" + android:layout_toEndOf="@+id/app_icon" + android:fontFamily="sans-serif-medium" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:textColor="@color/black" + android:textSize="16sp" + tools:text="Body sensor" + /> + + <Switch + android:id="@+id/togglePermission" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + /> +</RelativeLayout>
\ No newline at end of file |