New assets for lists and buttons
Change-Id: I289f2326cb9e21df963edfd7a6e8f951bdead732
@@ -15,10 +15,10 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="@android:color/bright_foreground_dark_disabled"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/bright_foreground_dark"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/bright_foreground_dark"/>
|
||||
<item android:state_selected="true" android:color="@android:color/bright_foreground_dark"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_dark"/>
|
||||
<item android:color="@android:color/bright_foreground_dark"/> <!-- not selected -->
|
||||
<item android:state_enabled="false" android:color="@android:color/bright_foreground_disabled_holo_dark"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/bright_foreground_holo_dark"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/bright_foreground_holo_dark"/>
|
||||
<item android:state_selected="true" android:color="@android:color/bright_foreground_holo_dark"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_holo_dark"/>
|
||||
<item android:color="@android:color/bright_foreground_holo_dark"/> <!-- not selected -->
|
||||
</selector>
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="@android:color/bright_foreground_light_disabled"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/bright_foreground_light"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/bright_foreground_light"/>
|
||||
<item android:state_selected="true" android:color="@android:color/bright_foreground_light"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_light"/>
|
||||
<item android:color="@android:color/bright_foreground_light"/> <!-- not selected -->
|
||||
<item android:state_enabled="false" android:color="@android:color/bright_foreground_disabled_holo_light"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/bright_foreground_holo_light"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/bright_foreground_holo_light"/>
|
||||
<item android:state_selected="true" android:color="@android:color/bright_foreground_holo_light"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_holo_light"/>
|
||||
<item android:color="@android:color/bright_foreground_holo_light"/> <!-- not selected -->
|
||||
|
||||
</selector>
|
||||
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_window_focused="false" android:state_enabled="false" android:color="@android:color/dim_foreground_dark_disabled"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/dim_foreground_dark"/>
|
||||
<item android:state_selected="true" android:state_enabled="false" android:color="@android:color/dim_foreground_dark_inverse_disabled"/>
|
||||
<item android:state_pressed="true" android:state_enabled="false" android:color="@android:color/dim_foreground_dark_inverse_disabled"/>
|
||||
<item android:state_selected="true" android:color="@android:color/dim_foreground_dark_inverse"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_dark_inverse"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/dim_foreground_dark_inverse"/>
|
||||
<item android:state_enabled="false" android:color="@android:color/dim_foreground_dark_disabled"/>
|
||||
<item android:color="@android:color/dim_foreground_dark"/> <!-- not selected -->
|
||||
<item android:state_window_focused="false" android:state_enabled="false" android:color="@android:color/dim_foreground_disabled_holo_dark"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/dim_foreground_holo_dark"/>
|
||||
<item android:state_selected="true" android:state_enabled="false" android:color="@android:color/dim_foreground_inverse_disabled_holo_dark"/>
|
||||
<item android:state_pressed="true" android:state_enabled="false" android:color="@android:color/dim_foreground_inverse_disabled_holo_dark"/>
|
||||
<item android:state_selected="true" android:color="@android:color/dim_foreground_inverse_holo_dark"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_inverse_holo_dark"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/dim_foreground_inverse_holo_dark"/>
|
||||
<item android:state_enabled="false" android:color="@android:color/dim_foreground_disabled_holo_dark"/>
|
||||
<item android:color="@android:color/dim_foreground_holo_dark"/> <!-- not selected -->
|
||||
</selector>
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_window_focused="false" android:state_enabled="false" android:color="@android:color/dim_foreground_light_disabled"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/dim_foreground_light"/>
|
||||
<item android:state_window_focused="false" android:state_enabled="false" android:color="@android:color/dim_foreground_disabled_holo_light"/>
|
||||
<item android:state_window_focused="false" android:color="@android:color/dim_foreground_holo_light"/>
|
||||
<!-- Since there is only one selector (for both light and dark), the light's selected state shouldn't be inversed like the dark's. -->
|
||||
<item android:state_pressed="true" android:state_enabled="false" android:color="@android:color/dim_foreground_light_disabled"/>
|
||||
<item android:state_selected="true" android:state_enabled="false" android:color="@android:color/dim_foreground_light_disabled"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/dim_foreground_light"/>
|
||||
<item android:state_selected="true" android:color="@android:color/dim_foreground_light"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_light"/>
|
||||
<item android:state_enabled="false" android:color="@android:color/dim_foreground_light_disabled"/>
|
||||
<item android:color="@android:color/dim_foreground_light"/> <!-- not selected -->
|
||||
<item android:state_pressed="true" android:state_enabled="false" android:color="@android:color/dim_foreground_disabled_holo_light"/>
|
||||
<item android:state_selected="true" android:state_enabled="false" android:color="@android:color/dim_foreground_disabled_holo_light"/>
|
||||
<item android:state_pressed="true" android:color="@android:color/dim_foreground_holo_light"/>
|
||||
<item android:state_selected="true" android:color="@android:color/dim_foreground_holo_light"/>
|
||||
<item android:state_activated="true" android:color="@android:color/bright_foreground_holo_light"/>
|
||||
<item android:state_enabled="false" android:color="@android:color/dim_foreground_disabled_holo_light"/>
|
||||
<item android:color="@android:color/dim_foreground_holo_light"/> <!-- not selected -->
|
||||
</selector>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<item android:state_enabled="false" android:color="#808080"/>
|
||||
<item android:state_window_focused="false" android:color="#808080"/>
|
||||
<item android:state_pressed="true" android:color="#808080"/>
|
||||
<item android:state_selected="true" android:color="@android:color/dim_foreground_light"/>
|
||||
<item android:state_selected="true" android:color="@android:color/dim_foreground_holo_light"/>
|
||||
<item android:color="#808080"/> <!-- not selected -->
|
||||
</selector>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 686 B After Width: | Height: | Size: 666 B |
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 639 B |
|
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 395 B |
|
Before Width: | Height: | Size: 783 B After Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 734 B After Width: | Height: | Size: 741 B |
|
Before Width: | Height: | Size: 778 B After Width: | Height: | Size: 839 B |
|
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 661 B |
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 803 B |
|
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 970 B |
BIN
core/res/res/drawable-hdpi/list_activated_holo.9.png
Normal file
|
After Width: | Height: | Size: 206 B |
BIN
core/res/res/drawable-hdpi/list_divider_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 122 B |
BIN
core/res/res/drawable-hdpi/list_divider_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 123 B |
BIN
core/res/res/drawable-hdpi/list_focused_holo.9.png
Normal file
|
After Width: | Height: | Size: 216 B |
BIN
core/res/res/drawable-hdpi/list_longpressed_holo.9.png
Normal file
|
After Width: | Height: | Size: 178 B |
BIN
core/res/res/drawable-hdpi/list_pressed_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 179 B |
BIN
core/res/res/drawable-hdpi/list_pressed_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 178 B |
BIN
core/res/res/drawable-hdpi/list_section_divider_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 217 B |
BIN
core/res/res/drawable-hdpi/list_section_divider_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 216 B |
BIN
core/res/res/drawable-hdpi/list_selected_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 202 B |
BIN
core/res/res/drawable-hdpi/list_selected_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 193 B |
|
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 465 B |
|
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 301 B |
|
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 306 B |
|
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 520 B |
|
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 512 B |
|
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 541 B |
|
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 432 B |
|
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 489 B |
|
Before Width: | Height: | Size: 635 B After Width: | Height: | Size: 590 B |
BIN
core/res/res/drawable-mdpi/list_activated_holo.9.png
Normal file
|
After Width: | Height: | Size: 188 B |
BIN
core/res/res/drawable-mdpi/list_divider_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 122 B |
BIN
core/res/res/drawable-mdpi/list_divider_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 123 B |
BIN
core/res/res/drawable-mdpi/list_focused_holo.9.png
Normal file
|
After Width: | Height: | Size: 202 B |
BIN
core/res/res/drawable-mdpi/list_longpressed_holo.9.png
Normal file
|
After Width: | Height: | Size: 167 B |
BIN
core/res/res/drawable-mdpi/list_pressed_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 168 B |
BIN
core/res/res/drawable-mdpi/list_pressed_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 167 B |
BIN
core/res/res/drawable-mdpi/list_section_divider_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 205 B |
BIN
core/res/res/drawable-mdpi/list_section_divider_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 205 B |
BIN
core/res/res/drawable-mdpi/list_selected_holo_dark.9.png
Normal file
|
After Width: | Height: | Size: 188 B |
BIN
core/res/res/drawable-mdpi/list_selected_holo_light.9.png
Normal file
|
After Width: | Height: | Size: 188 B |
@@ -15,6 +15,6 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_activated="true" android:drawable="@android:drawable/list_selector_activated_holo_dark" />
|
||||
<item android:state_activated="true" android:drawable="@android:drawable/list_activated_holo" />
|
||||
<item android:drawable="@color/transparent" />
|
||||
</selector>
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_activated="true" android:drawable="@android:drawable/list_selector_activated_holo_light" />
|
||||
<item android:state_activated="true" android:drawable="@android:drawable/list_activated_holo" />
|
||||
<item android:drawable="@color/transparent" />
|
||||
</selector>
|
||||
|
||||
32
core/res/res/drawable/btn_default_holo_light.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_window_focused="false" android:state_enabled="true"
|
||||
android:drawable="@drawable/btn_default_normal_holo_light" />
|
||||
<item android:state_window_focused="false" android:state_enabled="false"
|
||||
android:drawable="@drawable/btn_default_disabled_holo_light" />
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_default_pressed_holo_light" />
|
||||
<item android:state_focused="true" android:state_enabled="true"
|
||||
android:drawable="@drawable/btn_default_focused_holo_light" />
|
||||
<item android:state_enabled="true"
|
||||
android:drawable="@drawable/btn_default_normal_holo_light" />
|
||||
<item android:state_focused="true"
|
||||
android:drawable="@drawable/btn_default_disabled_focused_holo_light" />
|
||||
<item
|
||||
android:drawable="@drawable/btn_default_disabled_holo_light" />
|
||||
</selector>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
|
||||
<transition xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:drawable/list_pressed_holo_dark" />
|
||||
<item android:drawable="@android:drawable/list_longpressed_holo" />
|
||||
</transition>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
|
||||
<transition xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:drawable/list_pressed_holo_light" />
|
||||
<item android:drawable="@android:drawable/list_longpressed_holo" />
|
||||
</transition>
|
||||
@@ -21,7 +21,7 @@
|
||||
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
|
||||
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_dark" />
|
||||
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_disabled_holo_dark" />
|
||||
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition" />
|
||||
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition" />
|
||||
<item android:state_focused="true" android:drawable="@drawable/list_selector_focused_holo_dark" />
|
||||
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" />
|
||||
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" />
|
||||
<item android:state_focused="true" android:drawable="@drawable/list_focused_holo" />
|
||||
</selector>
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
|
||||
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_light" />
|
||||
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_disabled_holo_light" />
|
||||
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition" />
|
||||
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition" />
|
||||
<item android:state_focused="true" android:drawable="@drawable/list_selector_focused_holo_light" />
|
||||
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_light" />
|
||||
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_light" />
|
||||
<item android:state_focused="true" android:drawable="@drawable/list_focused_holo" />
|
||||
|
||||
</selector>
|
||||
|
||||
@@ -1289,7 +1289,7 @@
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.TextView.ListSeparator" parent="Widget.TextView.ListSeparator">
|
||||
<item name="android:background">@android:drawable/list_section_header_holo_dark</item>
|
||||
<item name="android:background">@android:drawable/list_section_divider_holo_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.TextSelectHandle" parent="Widget.TextSelectHandle">
|
||||
@@ -1521,6 +1521,12 @@
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.Button" parent="Widget.Button">
|
||||
<item name="android:background">@android:drawable/btn_default_holo_light</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
|
||||
<item name="android:textColor">@android:color/primary_text_holo_light</item>
|
||||
<item name="android:minHeight">48dip</item>
|
||||
<item name="android:paddingLeft">32dip</item>
|
||||
<item name="android:paddingRight">32dip</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.Button.Small">
|
||||
@@ -1556,7 +1562,7 @@
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.TextView.ListSeparator" parent="Widget.TextView.ListSeparator">
|
||||
<item name="android:background">@android:drawable/list_section_header_holo_light</item>
|
||||
<item name="android:background">@android:drawable/list_section_divider_holo_light</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Holo.Light.TextSelectHandle" parent="Widget.TextSelectHandle">
|
||||
|
||||
@@ -703,7 +703,7 @@
|
||||
<item name="listPreferredItemHeight">64dip</item>
|
||||
<!-- @hide -->
|
||||
<item name="searchResultListItemHeight">58dip</item>
|
||||
<item name="listDivider">@drawable/divider_horizontal_holo_dark</item>
|
||||
<item name="listDivider">@drawable/list_divider_horizontal_holo_dark</item>
|
||||
<item name="listSeparatorTextViewStyle">@android:style/Widget.Holo.TextView.ListSeparator</item>
|
||||
|
||||
<item name="listChoiceIndicatorSingle">@android:drawable/btn_radio_holo_dark</item>
|
||||
@@ -713,7 +713,7 @@
|
||||
|
||||
<item name="activatedBackgroundIndicator">@android:drawable/activated_background_holo_dark</item>
|
||||
|
||||
<item name="listDividerAlertDialog">@android:drawable/divider_horizontal_holo_dark</item>
|
||||
<item name="listDividerAlertDialog">@android:drawable/list_divider_horizontal_holo_dark</item>
|
||||
|
||||
<item name="expandableListPreferredItemPaddingLeft">40dip</item>
|
||||
<item name="expandableListPreferredChildPaddingLeft">
|
||||
|
||||