- the summary text is the list of permissions that the app has. It is dynamic, and when the list is long, setting the summary will expand the text view height and make the page launch looks janky. We cannot pre-set the summary to certain line, since the permissions list for each app is unknown beforehand. To avoid the jank, limit the summary to 1 line and truncate it if necessary. Change-Id: I1acb1ac9f46c55808ce03626e53cf71502231ab2 Fix: 36413664 Test: make RunSettingsRoboTests
90 lines
3.1 KiB
XML
90 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2016 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.
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<com.android.settings.applications.LayoutPreference
|
|
android:key="header_view"
|
|
android:layout="@layout/app_details"
|
|
android:selectable="false"
|
|
android:order="-10000"/>
|
|
|
|
<com.android.settings.applications.LayoutPreference
|
|
android:key="instant_app_buttons"
|
|
android:layout="@layout/instant_app_buttons"
|
|
android:selectable="false"
|
|
android:order="-9999"/>
|
|
|
|
<com.android.settings.applications.LayoutPreference
|
|
android:key="action_buttons"
|
|
android:layout="@layout/app_action_buttons"
|
|
android:selectable="false"
|
|
android:order="-9998"/>
|
|
|
|
<Preference
|
|
android:key="notification_settings"
|
|
android:title="@string/notifications_label"
|
|
android:selectable="true"/>
|
|
|
|
<com.android.settings.widget.SingleLineSummaryPreference
|
|
android:key="permission_settings"
|
|
android:title="@string/permissions_label"
|
|
android:summary="@string/summary_placeholder"
|
|
android:selectable="true"/>
|
|
|
|
<Preference
|
|
android:key="storage_settings"
|
|
android:title="@string/storage_settings"
|
|
android:summary="@string/summary_placeholder"
|
|
android:selectable="true"/>
|
|
|
|
<com.android.settings.applications.AppDomainsPreference
|
|
android:key="instant_app_launch_supported_domain_urls"
|
|
android:title="@string/app_launch_supported_domain_urls_title"
|
|
android:selectable="true" />
|
|
|
|
<Preference
|
|
android:key="data_settings"
|
|
android:title="@string/data_usage_summary_title"
|
|
android:summary="@string/summary_placeholder"
|
|
android:selectable="true"/>
|
|
|
|
<Preference
|
|
android:key="battery"
|
|
android:title="@string/power_usage_summary_title"
|
|
android:summary="@string/summary_placeholder"
|
|
android:selectable="true"/>
|
|
|
|
<Preference
|
|
android:key="preferred_settings"
|
|
android:title="@string/launch_by_default"
|
|
android:summary="@string/summary_placeholder"
|
|
android:selectable="true"/>
|
|
|
|
<Preference
|
|
android:key="memory"
|
|
android:title="@string/memory_settings_title"
|
|
android:summary="@string/summary_placeholder"
|
|
android:enabled="false"
|
|
android:selectable="true"/>
|
|
|
|
<Preference
|
|
android:key="app_version"
|
|
android:selectable="false"
|
|
android:order="9999"/>
|
|
|
|
</PreferenceScreen> |