This commit is contained in:
Sergey Solovyev
2012-10-05 23:38:49 +04:00
parent 638ee2e851
commit 641ae8cc45
27 changed files with 213 additions and 15 deletions

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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_pressed="true"
android:drawable="@drawable/default_abs__btn_cab_done_pressed_holo_dark" />
<item android:state_focused="true" android:state_enabled="true"
android:drawable="@drawable/default_abs__btn_cab_done_focused_holo_dark" />
<item android:state_enabled="true"
android:drawable="@drawable/default_abs__btn_cab_done_default_holo_dark" />
</selector>

View File

@@ -0,0 +1,26 @@
<?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">
<!-- 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/abs__list_selector_disabled_holo_dark" />
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/abs__list_selector_disabled_holo_dark" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/default_abs__list_selector_background_transition_holo_dark" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/default_abs__list_selector_background_transition_holo_dark" />
<item android:state_focused="true" android:drawable="@drawable/default_abs__list_focused_holo" />
<item android:drawable="@android:color/transparent" />
</selector>

View File

@@ -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="@drawable/default_abs__list_pressed_holo_dark" />
<item android:drawable="@drawable/default_abs__list_longpressed_holo" />
</transition>

View File

@@ -0,0 +1,27 @@
<?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: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/abs__list_selector_disabled_holo_dark" />
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/abs__list_selector_disabled_holo_dark" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/default_abs__list_selector_background_transition_holo_dark" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/default_abs__list_selector_background_transition_holo_dark" />
<item android:state_focused="true" android:drawable="@drawable/default_abs__list_focused_holo" />
</selector>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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_enabled="false"
android:drawable="@drawable/abs__spinner_ab_disabled_holo_dark" />
<item android:state_pressed="true"
android:drawable="@drawable/default_abs__spinner_ab_pressed_holo_dark" />
<item android:state_pressed="false" android:state_focused="true"
android:drawable="@drawable/default_abs__spinner_ab_focused_holo_dark" />
<item android:drawable="@drawable/abs__spinner_ab_default_holo_dark" />
</selector>

View File

@@ -17,18 +17,18 @@
<selector xmlns:a="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<item a:state_focused="false" a:state_selected="false" a:state_pressed="false" a:drawable="@android:color/transparent" />
<item a:state_focused="false" a:state_selected="true" a:state_pressed="false" a:drawable="@drawable/abs__tab_selected_holo" />
<item a:state_focused="false" a:state_selected="true" a:state_pressed="false" a:drawable="@drawable/default_abs__tab_selected_holo" />
<!-- Focused states -->
<item a:state_focused="true" a:state_selected="false" a:state_pressed="false" a:drawable="@drawable/abs__list_focused_holo" />
<item a:state_focused="true" a:state_selected="true" a:state_pressed="false" a:drawable="@drawable/abs__tab_selected_focused_holo" />
<item a:state_focused="true" a:state_selected="false" a:state_pressed="false" a:drawable="@drawable/default_abs__list_focused_holo" />
<item a:state_focused="true" a:state_selected="true" a:state_pressed="false" a:drawable="@drawable/default_abs__tab_selected_focused_holo" />
<!-- Pressed -->
<!-- Non focused states -->
<item a:state_focused="false" a:state_selected="false" a:state_pressed="true" a:drawable="@drawable/abs__list_pressed_holo_dark" />
<item a:state_focused="false" a:state_selected="true" a:state_pressed="true" a:drawable="@drawable/abs__tab_selected_pressed_holo" />
<item a:state_focused="false" a:state_selected="false" a:state_pressed="true" a:drawable="@drawable/default_abs__list_pressed_holo_dark" />
<item a:state_focused="false" a:state_selected="true" a:state_pressed="true" a:drawable="@drawable/default_abs__tab_selected_pressed_holo" />
<!-- Focused states -->
<item a:state_focused="true" a:state_selected="false" a:state_pressed="true" a:drawable="@drawable/abs__tab_unselected_pressed_holo" />
<item a:state_focused="true" a:state_selected="true" a:state_pressed="true" a:drawable="@drawable/abs__tab_selected_pressed_holo" />
<item a:state_focused="true" a:state_selected="false" a:state_pressed="true" a:drawable="@drawable/default_abs__tab_unselected_pressed_holo" />
<item a:state_focused="true" a:state_selected="true" a:state_pressed="true" a:drawable="@drawable/default_abs__tab_selected_pressed_holo" />
</selector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- pressed -->
<item android:state_pressed="true"
android:drawable="@color/metro_green_color"/>
<!-- focused -->
<item android:state_focused="true"
android:drawable="@color/metro_green_color"/>
<!-- default -->
<item android:drawable="@android:color/transparent"/>
</selector>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- pressed -->
<item android:state_pressed="true"
android:drawable="@color/metro_purple_color"/>
<!-- focused -->
<item android:state_focused="true"
android:drawable="@color/metro_purple_color"/>
<!-- default -->
<item android:drawable="@android:color/transparent"/>
</selector>