当前位置:编程学习 > wap >>

android selector RotateAnimation 兼容问题

发现在三星8552在同时对View使用selector RotateAnimation。
RotateAnimation:

<rotate xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromDegrees="90"
    android:toDegrees="0"
    android:fillAfter="true"
    android:duration="300"
    android:pivotX="50%"
    android:pivotY="50%"
    >
</rotate>

View:

<selector xmlns:android="http://schemas.android.com/apk/res/android" >

    <item android:state_focused="true" android:drawable="@drawable/portrait_flash_on_select"></item>
<item android:state_pressed="true" android:drawable="@drawable/portrait_flash_on_select"></item>
<item android:drawable="@drawable/portrait_flash_on"></item>

</selector>

在View旋转90度后
点击View的时候View的背景会还原到未旋转前的状态

图中闪关灯按钮 android 兼容 Animation Selector
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,