• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2022 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:orientation="vertical"
23    style="@style/SafetyCenter"
24    android:background="?android:colorBackground"
25    android:id="@+id/safety_center_root">
26
27
28
29    <androidx.core.widget.NestedScrollView
30        android:id="@+id/nested_scroll_view"
31        android:layout_width="match_parent"
32        android:layout_height="wrap_content"
33        android:paddingStart="20dp"
34        android:paddingEnd="20dp"
35        android:clipChildren="false">
36
37        <LinearLayout
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:orientation="vertical">
41
42            <TextView
43                android:id="@+id/permission_section_title"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:layout_marginTop="20dp"
47                android:layout_marginBottom="10dp"
48                android:text="@string/sensor_permissions_qs"
49                android:visibility="gone"/>
50
51            <LinearLayout
52                android:layout_width="match_parent"
53                android:layout_height="wrap_content"
54                android:orientation="vertical"
55                android:layout_marginTop="10dp"
56                android:layout_marginBottom="10dp"
57                android:id="@+id/permission_usage"/>
58
59            <TextView
60                android:id="@+id/sensor_privacy_title"
61                android:layout_width="wrap_content"
62                android:layout_height="wrap_content"
63                android:layout_marginTop="20dp"
64                android:layout_marginBottom="10dp"
65                android:text="@string/privacy_controls_qs"/>
66
67            <LinearLayout
68                android:layout_width="match_parent"
69                android:layout_height="wrap_content"
70                android:gravity = "center_horizontal"
71                android:orientation="horizontal"
72                android:layout_marginBottom="10dp"
73                android:layout_marginTop="10dp">
74                <include android:id="@+id/camera_toggle"
75                         layout="@layout/safety_center_toggle_button" />
76
77                <include android:id="@+id/mic_toggle"
78                         layout="@layout/safety_center_toggle_button" />
79
80                <include android:id="@+id/location_toggle"
81                         layout="@layout/safety_center_toggle_button" />
82            </LinearLayout>
83
84            <Button
85                android:id="@+id/security_settings_button"
86                android:layout_marginTop="20dp"
87                android:layout_height="40dp"
88                android:layout_width="300dp"
89                android:layout_gravity="center_horizontal"
90                android:background="@drawable/oval_outline_button"
91                style="@style/SafetyCenterLinkText"
92                android:textColor="#ffffffff"
93                android:text="@string/security_settings"/>
94
95        </LinearLayout>
96
97    </androidx.core.widget.NestedScrollView>
98
99</LinearLayout>
100