Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   Copyright (C) 2017 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 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
     19 
     20     <com.android.settings.applications.LayoutPreference
     21         android:key="header_view"
     22         android:layout="@layout/app_details"
     23         android:selectable="false"
     24         android:order="-10000"/>
     25 
     26     <com.android.settings.applications.LayoutPreference
     27         android:key="action_buttons"
     28         android:layout="@layout/app_action_buttons"
     29         android:selectable="false"
     30         android:order="-9999"/>
     31 
     32     <PreferenceCategory
     33         android:title="@string/battery_detail_info_title">
     34 
     35         <Preference
     36             android:key="app_usage_foreground"
     37             android:title="@string/battery_detail_foreground"/>
     38 
     39         <Preference
     40             android:key="app_usage_background"
     41             android:title="@string/battery_detail_background"/>
     42 
     43         <Preference
     44             android:key="app_power_usage"
     45             android:title="@string/battery_detail_power_usage"/>
     46 
     47     </PreferenceCategory>
     48 
     49     <PreferenceCategory
     50         android:title="@string/battery_detail_manage_title">
     51 
     52         <SwitchPreference
     53             android:key="background_activity"
     54             android:title="@string/background_activity_title"
     55             android:selectable="true"/>
     56 
     57         <Preference
     58             android:key="battery_optimization"
     59             android:title="@string/high_power_apps"
     60             android:summary="@string/high_power_off"
     61             android:selectable="true"/>
     62 
     63     </PreferenceCategory>
     64 
     65 </PreferenceScreen>