am a4e854fa
: Merge "Tweak battery usage to match red lines." into lmp-preview-dev
* commit 'a4e854fa5b9f5adc4898088f6d454dd92f4238a5': Tweak battery usage to match red lines.
This commit is contained in:
@@ -45,16 +45,16 @@
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/text1"
|
||||
android:layout_marginStart="8dip"
|
||||
android:layout_marginStart="6dip"
|
||||
android:layout_marginTop="2dip"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@android:id/progress"
|
||||
android:layout_height="12dip"
|
||||
android:layout_height="8dip"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_gravity="fill_horizontal|top"
|
||||
android:layout_marginTop="4dip"
|
||||
android:layout_marginTop="8dip"
|
||||
android:max="100"
|
||||
android:progressDrawable="@drawable/data_usage_bar"
|
||||
style="?android:attr/progressBarStyleHorizontal" />
|
||||
@@ -64,7 +64,7 @@
|
||||
android:layout_width="0dip"
|
||||
android:layout_gravity="fill_horizontal|top"
|
||||
android:layout_columnSpan="2"
|
||||
android:layout_marginTop="4dip"
|
||||
android:layout_marginTop="6dip"
|
||||
android:visibility="gone"
|
||||
android:maxLines="2"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
35
res/layout/battery_history_chart.xml
Normal file
35
res/layout/battery_history_chart.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 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.
|
||||
-->
|
||||
|
||||
<com.android.settings.fuelgauge.BatteryHistoryChart
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+android:id/battery_history_chart"
|
||||
android:paddingEnd="?android:attr/scrollbarSize"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#ff000000"
|
||||
app:headerAppearance="?android:attr/textAppearanceMedium"
|
||||
android:shadowRadius="4"
|
||||
android:shadowColor="?android:attr/colorBackground"
|
||||
android:shadowDx="2"
|
||||
android:shadowDy="2"
|
||||
app:barPrimaryColor="?android:attr/colorControlActivated"
|
||||
app:barPredictionColor="@color/quantum_empty_color_light"
|
||||
app:chartMinHeight="@dimen/battery_history_chart_height">
|
||||
</com.android.settings.fuelgauge.BatteryHistoryChart>
|
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
<!-- Copyright (C) 2014 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.
|
||||
@@ -14,19 +14,18 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<com.android.settings.fuelgauge.BatteryHistoryChart
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/battery_history_chart_height"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+android:id/battery_history_chart"
|
||||
android:paddingEnd="?android:attr/scrollbarSize"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
app:headerAppearance="?android:attr/textAppearanceMedium"
|
||||
android:shadowRadius="4"
|
||||
android:shadowColor="?android:attr/colorBackground"
|
||||
android:shadowDx="2"
|
||||
android:shadowDy="2">
|
||||
</com.android.settings.fuelgauge.BatteryHistoryChart>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:minHeight="@dimen/battery_history_chart_height"
|
||||
android:paddingEnd="?android:attr/scrollbarSize">
|
||||
<include layout="@layout/battery_history_chart" />
|
||||
<TextView android:id="@+id/labelsHeader"
|
||||
android:layout_width="match_parent" android:layout_height="48dp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textSize="14sp"
|
||||
android:textColor="?android:attr/colorControlActivated"
|
||||
android:gravity="left|center_vertical"
|
||||
android:text="@string/power_usage_list_summary" />
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user