diff options
author | Jason Monk <jmonk@google.com> | 2015-04-29 12:46:42 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-05-04 14:38:01 -0400 |
commit | 1eb54eb2ff250eccdd700601011bd6457ddcbec1 (patch) | |
tree | 15fae6a27b6617bc36dc596d4cff4825eb8bf037 /res/layout/horizontal_preference.xml | |
parent | a283e6e325aeae794fb04e60c38431721742b622 (diff) | |
download | packages_apps_Settings-1eb54eb2ff250eccdd700601011bd6457ddcbec1.zip packages_apps_Settings-1eb54eb2ff250eccdd700601011bd6457ddcbec1.tar.gz packages_apps_Settings-1eb54eb2ff250eccdd700601011bd6457ddcbec1.tar.bz2 |
Add high power whitelist for apps
- Strings not final!
- New UX for power usage details (more preferency)
- Add high power apps list shows on/off and screen to
change (when possible)
- Link from power usage summary to high power list
- Link from advanced apps to high power list
Bug: 19991702
Change-Id: I97c927ed82d3b89041e4429b427508545763d66c
Diffstat (limited to 'res/layout/horizontal_preference.xml')
-rw-r--r-- | res/layout/horizontal_preference.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/res/layout/horizontal_preference.xml b/res/layout/horizontal_preference.xml new file mode 100644 index 0000000..540b7e3 --- /dev/null +++ b/res/layout/horizontal_preference.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingTop="3dp" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> + + <TextView + android:id="@android:id/title" + android:textAppearance="?android:attr/textAppearanceListItem" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_weight="1" /> + + <TextView + android:id="@android:id/summary" + android:textAppearance="?android:attr/textAppearanceListItemSecondary" + android:textColor="?android:attr/textColorSecondary" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_weight="1" + android:gravity="end" /> + +</LinearLayout> |