Loading res/layout/battery_history_chart.xmldeleted 100644 → 0 +0 −42 Original line number Diff line number Diff line <?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. --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> <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="match_parent" android:gravity="center_vertical" android:id="@+id/battery_history_chart" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="?android:attr/textColorPrimary" 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/material_empty_color_light" app:chartMinHeight="@dimen/battery_history_chart_height"> </com.android.settings.fuelgauge.BatteryHistoryChart> </FrameLayout> No newline at end of file res/values/attrs.xml +0 −29 Original line number Diff line number Diff line Loading @@ -15,35 +15,6 @@ --> <resources> <declare-styleable name="BatteryHistoryChart"> <!-- Base text color, typeface, size, and style. --> <attr name="android:textAppearance" /> <!-- Text color. --> <attr name="android:textColor" /> <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> <attr name="android:textSize" /> <!-- Typeface (normal, sans, serif, monospace) for the text. --> <attr name="android:typeface" /> <!-- Style (bold, italic, bolditalic) for the text. --> <attr name="android:textStyle" /> <!-- Place a shadow of the specified color behind the text. --> <attr name="android:shadowColor" /> <!-- Horizontal offset of the shadow. --> <attr name="android:shadowDx" /> <!-- Vertical offset of the shadow. --> <attr name="android:shadowDy" /> <!-- Radius of the shadow. --> <attr name="android:shadowRadius" /> <!-- Text color, typeface, size, and style of header. --> <attr name="headerAppearance" format="reference" /> <!-- Primary color of chart. --> <attr name="barPrimaryColor" format="color|reference" /> <!-- Color of predicted future use part of chart. --> <attr name="barPredictionColor" format="color|reference" /> <!-- Minimum height of the chart itself. --> <attr name="chartMinHeight" format="dimension|reference" /> </declare-styleable> <declare-styleable name="PercentageBarChart"> <!-- Background color --> <attr name="emptyColor" format="color" /> Loading res/values/dimens.xml +0 −2 Original line number Diff line number Diff line Loading @@ -33,8 +33,6 @@ <dimen name="bind_app_widget_dialog_checkbox_bottom_padding">16dip</dimen> <dimen name="installed_app_details_bullet_offset">8dip</dimen> <dimen name="battery_history_chart_height">120dp</dimen> <dimen name="data_usage_chart_height">228dip</dimen> <dimen name="data_usage_chart_optimalWidth">440dip</dimen> <dimen name="usage_number_text_size">36sp</dimen> Loading Loading
res/layout/battery_history_chart.xmldeleted 100644 → 0 +0 −42 Original line number Diff line number Diff line <?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. --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> <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="match_parent" android:gravity="center_vertical" android:id="@+id/battery_history_chart" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="?android:attr/textColorPrimary" 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/material_empty_color_light" app:chartMinHeight="@dimen/battery_history_chart_height"> </com.android.settings.fuelgauge.BatteryHistoryChart> </FrameLayout> No newline at end of file
res/values/attrs.xml +0 −29 Original line number Diff line number Diff line Loading @@ -15,35 +15,6 @@ --> <resources> <declare-styleable name="BatteryHistoryChart"> <!-- Base text color, typeface, size, and style. --> <attr name="android:textAppearance" /> <!-- Text color. --> <attr name="android:textColor" /> <!-- Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp). --> <attr name="android:textSize" /> <!-- Typeface (normal, sans, serif, monospace) for the text. --> <attr name="android:typeface" /> <!-- Style (bold, italic, bolditalic) for the text. --> <attr name="android:textStyle" /> <!-- Place a shadow of the specified color behind the text. --> <attr name="android:shadowColor" /> <!-- Horizontal offset of the shadow. --> <attr name="android:shadowDx" /> <!-- Vertical offset of the shadow. --> <attr name="android:shadowDy" /> <!-- Radius of the shadow. --> <attr name="android:shadowRadius" /> <!-- Text color, typeface, size, and style of header. --> <attr name="headerAppearance" format="reference" /> <!-- Primary color of chart. --> <attr name="barPrimaryColor" format="color|reference" /> <!-- Color of predicted future use part of chart. --> <attr name="barPredictionColor" format="color|reference" /> <!-- Minimum height of the chart itself. --> <attr name="chartMinHeight" format="dimension|reference" /> </declare-styleable> <declare-styleable name="PercentageBarChart"> <!-- Background color --> <attr name="emptyColor" format="color" /> Loading
res/values/dimens.xml +0 −2 Original line number Diff line number Diff line Loading @@ -33,8 +33,6 @@ <dimen name="bind_app_widget_dialog_checkbox_bottom_padding">16dip</dimen> <dimen name="installed_app_details_bullet_offset">8dip</dimen> <dimen name="battery_history_chart_height">120dp</dimen> <dimen name="data_usage_chart_height">228dip</dimen> <dimen name="data_usage_chart_optimalWidth">440dip</dimen> <dimen name="usage_number_text_size">36sp</dimen> Loading