Skip to content

Commit 6fdab07

Browse files
author
Dianne Hackborn
committed
Remove fade animations from framework drawables.
Change-Id: Ic4115ba779e88a405b5d2cd927db99c43def3704
1 parent 7f94977 commit 6fdab07

13 files changed

+13
-26
lines changed

core/res/res/drawable/activated_background.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918
<item android:state_activated="true" android:drawable="@android:drawable/list_selector_background_selected" />
2019
<item android:drawable="@color/transparent" />
2120
</selector>

core/res/res/drawable/activated_background_holo_dark.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918
<item android:state_activated="true" android:drawable="@android:drawable/list_activated_holo" />
2019
<item android:drawable="@color/transparent" />
2120
</selector>

core/res/res/drawable/activated_background_holo_light.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918
<item android:state_activated="true" android:drawable="@android:drawable/list_activated_holo" />
2019
<item android:drawable="@color/transparent" />
2120
</selector>

core/res/res/drawable/activated_background_light.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918
<item android:state_activated="true" android:drawable="@drawable/list_selector_background_selected_light" />
2019
<item android:drawable="@color/transparent" />
2120
</selector>

core/res/res/drawable/btn_cab_done_holo_dark.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918
<item android:state_pressed="true"
2019
android:drawable="@drawable/btn_cab_done_pressed_holo_dark" />
2120
<item android:state_focused="true" android:state_enabled="true"

core/res/res/drawable/btn_cab_done_holo_light.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918
<item android:state_pressed="true"
2019
android:drawable="@drawable/btn_cab_done_pressed_holo_light" />
2120
<item android:state_focused="true" android:state_enabled="true"

core/res/res/drawable/item_background.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
<item android:state_window_focused="false" android:drawable="@color/transparent" />
2120

core/res/res/drawable/item_background_holo_dark.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
2120
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_dark" />

core/res/res/drawable/item_background_holo_light.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
2120
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_light" />

core/res/res/drawable/list_selector_background.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
limitations under the License.
1515
-->
1616

17-
<selector xmlns:android="http://schemas.android.com/apk/res/android"
18-
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
17+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
<item android:state_window_focused="false" android:drawable="@color/transparent" />
2120

0 commit comments

Comments
 (0)