1

我在运行代码的同时在此页面上遇到错误,如果在这里看到任何错误,请帮助我..

    <?xml version="1.0" encoding="utf-8"?>
<set>

    <rotate
        android:duration="2000"
        android:fromDegrees="0"
        android:pivotX="50%"
        android:pivotY="50%"
        android:toDegrees="360" />

    <translate
        android:fromXDelta="10"
        android:toXDelta="" />

    <scale android:fromXScale="" />

    <alpha
        android:duration="2000"
        android:fromAlpha="1.0"
        android:toAlpha="0.5" />

</set>
4

1 回答 1

2

尝试:

<?xml version="1.0" encoding="utf-8"?>

<set xmlns:android="http://schemas.android.com/apk/res/android"> <!-- XMLNS IMPORTANT-->

    <rotate
        android:duration="2000"
        android:fromDegrees="0"
        android:pivotX="50%"
        android:pivotY="50%"
        android:toDegrees="360" />

    <translate
        android:fromXDelta="10"
        android:toXDelta="" />

    <scale android:fromXScale="" />

    <alpha
        android:duration="2000"
        android:fromAlpha="1.0"
        android:toAlpha="0.5" />

于 2012-08-14T10:45:19.710 回答