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/settings_entity_header"
     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     <Preference
     33         android:key="high_usage"
     34         android:icon="@drawable/ic_battery_alert_24dp"
     35         android:title="@string/power_high_usage_title"/>
     36 
     37     <PreferenceCategory
     38         android:title="@string/battery_detail_info_title">
     39 
     40         <Preference
     41             android:key="app_usage_foreground"
     42             android:title="@string/battery_detail_foreground"
     43             android:selectable="false"/>
     44 
     45         <Preference
     46             android:key="app_usage_background"
     47             android:title="@string/battery_detail_background"
     48             android:selectable="false"/>
     49 
     50         <Preference
     51             android:key="app_power_usage"
     52             android:title="@string/battery_detail_power_usage"
     53             android:selectable="false"/>
     54 
     55     </PreferenceCategory>
     56 
     57     <PreferenceCategory
     58         android:title="@string/battery_detail_manage_title">
     59 
     60         <SwitchPreference
     61             android:key="background_activity"
     62             android:title="@string/background_activity_title"
     63             android:selectable="true"/>
     64 
     65         <Preference
     66             android:key="battery_optimization"
     67             android:title="@string/high_power_apps"
     68             android:summary="@string/high_power_off"
     69             android:selectable="true"/>
     70 
     71     </PreferenceCategory>
     72 
     73 </PreferenceScreen>