UX changes for the new cross profile settings page
Bug: 136249261 Bug: 140728653 Bug: 148594054 Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesControllerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesDetailsTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesPreferenceControllerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesSettingsTest Change-Id: I9666b34a03e5c082eed7c4120e70a07017ab7ef0
This commit is contained in:
114
res/layout/interact_across_profiles_consent_dialog.xml
Normal file
114
res/layout/interact_across_profiles_consent_dialog.xml
Normal file
@@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2020 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/interact_across_profiles_dialog_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="24dp"
|
||||
android:paddingEnd="24dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:id="@+id/interact_across_profiles_dialog"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="start"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/interact_across_profiles_consent_dialog_title"
|
||||
android:text="@string/interact_across_profiles_consent_dialog_title"
|
||||
style="@style/CrossProfileConsentDialogTitle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/interact_across_profiles_consent_dialog_summary"
|
||||
android:text="@string/interact_across_profiles_consent_dialog_summary"
|
||||
style="@style/CrossProfileConsentDialogDescription"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_data_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="16pt"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_data_icon"
|
||||
android:src="@drawable/ic_analytics_grey"
|
||||
style="@style/CrossProfileConsentDialogIcon"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_data_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:gravity="start"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_data_title"
|
||||
android:text="@string/interact_across_profiles_consent_dialog_app_data_title"
|
||||
style="@style/CrossProfileConsentDialogSubTitle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_data_summary"
|
||||
android:text="@string/interact_across_profiles_consent_dialog_app_data_summary"
|
||||
style="@style/CrossProfileConsentDialogSubDescription"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/permissions_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/permissions_icon"
|
||||
android:src="@drawable/ic_storage_grey"
|
||||
style="@style/CrossProfileConsentDialogIcon"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/permissions_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start"
|
||||
android:paddingStart="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/permissions_title"
|
||||
android:text="@string/interact_across_profiles_consent_dialog_permissions_title"
|
||||
style="@style/CrossProfileConsentDialogSubTitle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/permissions_summary"
|
||||
android:text="@string/interact_across_profiles_consent_dialog_permissions_summary"
|
||||
style="@style/CrossProfileConsentDialogSubDescription"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</RelativeLayout>
|
Reference in New Issue
Block a user