Updated icons with new correct sizes, added dimensions, updated selectors.
BIN
app/src/main/res/drawable-hdpi-v11/ic_status.png
Executable file
|
After Width: | Height: | Size: 910 B |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 3.7 KiB |
BIN
app/src/main/res/drawable-hdpi/ic_status.png
Executable file
|
After Width: | Height: | Size: 930 B |
|
Before Width: | Height: | Size: 854 B After Width: | Height: | Size: 3.1 KiB |
BIN
app/src/main/res/drawable-mdpi-v11/ic_status.png
Executable file
|
After Width: | Height: | Size: 545 B |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 845 B After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_status.png
Executable file
|
After Width: | Height: | Size: 563 B |
|
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 1.8 KiB |
@@ -15,17 +15,10 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<!-- State when a row is being pressed, but hasn't yet been activated (finger down) -->
|
|
||||||
<item android:state_pressed="true">
|
|
||||||
<ripple android:color="@color/grey" />
|
|
||||||
</item>
|
|
||||||
|
|
||||||
<!-- When the view is "activated". In SINGLE_CHOICE_MODE, it flags the active row
|
|
||||||
of a ListView -->
|
|
||||||
<item android:state_activated="true"
|
<item android:state_activated="true"
|
||||||
android:drawable="@color/primary_light" />
|
android:drawable="@color/activated"/>
|
||||||
|
|
||||||
<!-- Default, "just hangin' out" state. -->
|
<!-- Default, "just hangin' out" state. The base state also
|
||||||
<item android:drawable="@android:color/transparent" />
|
implements the ripple effect. -->
|
||||||
|
<item android:drawable="@drawable/touch_selector_base" />
|
||||||
</selector>
|
</selector>
|
||||||
10
app/src/main/res/drawable-v21/touch_selector_activated.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- The base state contains a selector for all states except for the activated state, and
|
||||||
|
leverages ripple -->
|
||||||
|
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:color="?attr/colorControlHighlight">
|
||||||
|
<item android:id="@android:id/mask" android:drawable="@color/white" />
|
||||||
|
<item android:state_activated="true"
|
||||||
|
android:drawable="@color/activated"/>
|
||||||
|
</ripple>
|
||||||
9
app/src/main/res/drawable-v21/touch_selector_base.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- The base state contains a selector for all states except for the activated state, and
|
||||||
|
leverages ripple -->
|
||||||
|
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:color="?attr/colorControlHighlight">
|
||||||
|
<item android:id="@android:id/mask" android:drawable="@color/white" />
|
||||||
|
<item android:drawable="?android:attr/colorBackground"/>
|
||||||
|
</ripple>
|
||||||
6
app/src/main/res/drawable-v21/touch_selector_white.xml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:color="?attr/colorControlHighlight">
|
||||||
|
<item android:id="@android:id/mask" android:drawable="@color/white"/>
|
||||||
|
<item android:drawable="@color/white" />
|
||||||
|
</ripple>
|
||||||
BIN
app/src/main/res/drawable-xhdpi-v11/ic_status.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 5.4 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_status.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
app/src/main/res/drawable-xxhdpi-v11/ic_status.png
Executable file
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 9.6 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_status.png
Executable file
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 7.7 KiB |
BIN
app/src/main/res/drawable-xxhdpi/mipmap/ic_launcher.png
Executable file
|
After Width: | Height: | Size: 24 KiB |
@@ -1,7 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (C) 2015 The Android Open Source Project
|
Copyright (C) 2015 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
@@ -14,17 +13,21 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
<!-- This selector works everywhere, but does not support ripple -->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_activated="true" android:state_focused="false"
|
||||||
|
android:drawable="@color/activated"/>
|
||||||
|
|
||||||
<!-- State when a row is being pressed, but hasn't yet been activated (finger down) -->
|
<item android:state_window_focused="false" android:drawable="@color/background_material_light" />
|
||||||
<item android:state_pressed="true"
|
|
||||||
android:drawable="@color/primary_light" />
|
|
||||||
|
|
||||||
<!-- When the view is "activated". In SINGLE_CHOICE_MODE, it flags the active row
|
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
|
||||||
of a ListView -->
|
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
<item android:state_activated="true"
|
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
android:drawable="@color/primary_light" />
|
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
|
||||||
<!-- Default, "just hangin' out" state. -->
|
<!-- Default, "just hangin' out" state. This is part of
|
||||||
<item android:drawable="@android:color/transparent" />
|
ActionBarCompat -->
|
||||||
|
<item android:drawable="@color/background_material_light" />
|
||||||
</selector>
|
</selector>
|
||||||
20
app/src/main/res/drawable/touch_selector_activated.xml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- This selector works everywhere, but does not support ripple -->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_activated="true" android:state_focused="false"
|
||||||
|
android:drawable="@color/activated"/>
|
||||||
|
|
||||||
|
<item android:state_window_focused="false" android:drawable="@android:color/transparent" />
|
||||||
|
|
||||||
|
<!-- 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/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
|
||||||
|
<!-- Default, "just hangin' out" state. This is part of
|
||||||
|
ActionBarCompat -->
|
||||||
|
<item android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
</selector>
|
||||||
20
app/src/main/res/drawable/touch_selector_white.xml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- This selector works everywhere, but does not support ripple -->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_activated="true" android:state_focused="false"
|
||||||
|
android:drawable="@color/activated"/>
|
||||||
|
|
||||||
|
<item android:state_window_focused="false" android:drawable="@color/white" />
|
||||||
|
|
||||||
|
<!-- 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/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
<item android:state_focused="true" android:drawable="@drawable/abc_list_selector_holo_light" />
|
||||||
|
|
||||||
|
<!-- Default, "just hangin' out" state. This is part of
|
||||||
|
ActionBarCompat -->
|
||||||
|
<item android:drawable="@color/white" />
|
||||||
|
</selector>
|
||||||
@@ -33,4 +33,10 @@
|
|||||||
<color name="detail_accent_pane_background">#455A64</color>
|
<color name="detail_accent_pane_background">#455A64</color>
|
||||||
<color name="detail_accent_label">#90A4AE</color>
|
<color name="detail_accent_label">#90A4AE</color>
|
||||||
|
|
||||||
|
<!-- the activated state color -->
|
||||||
|
<color name="activated">#E0E0E0</color>
|
||||||
|
|
||||||
|
<!-- the color used for the low temperature in the forecast list -->
|
||||||
|
<color name="forecast_low_text">#607D8B</color>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -23,7 +23,19 @@
|
|||||||
|
|
||||||
<!-- Icon Sizes -->
|
<!-- Icon Sizes -->
|
||||||
<dimen name="today_icon">96dp</dimen>
|
<dimen name="today_icon">96dp</dimen>
|
||||||
|
<dimen name="list_icon">40dp</dimen>
|
||||||
|
|
||||||
|
<!-- Text Sizes - We are using DP here rather than SP because these are already large
|
||||||
|
font sizes, and going larger will cause lots of view problems. This is only for
|
||||||
|
the large forecast numbers in the forecast list -->
|
||||||
|
<dimen name="forecast_text_size">32dp</dimen>
|
||||||
|
|
||||||
|
<!-- This is an odd width, but we're trying to match the font closely to keep things working
|
||||||
|
on devices that don't yet have Roboto -->
|
||||||
|
<dimen name="forecast_text_width">49dp</dimen>
|
||||||
|
<dimen name="forecast_temperature_space">8dp</dimen>
|
||||||
|
|
||||||
<!-- Extra Padding -->
|
<!-- Extra Padding -->
|
||||||
<dimen name="detail_view_extra_padding">@dimen/abc_list_item_padding_horizontal_material</dimen>
|
<dimen name="detail_view_extra_padding">@dimen/abc_list_item_padding_horizontal_material</dimen>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||