PopupWindow无法显示动画效果?
代码如下:
pw.setAnimationStyle(R.anim.fadingin);
pw.update();
pw.showAtLocation(findViewById(R.id.txtview), Gravity.BOTTOM, 0,0);
anim/fadingin.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator"
android:shareInterpolator="true">
<scale android:fromXScale="0.6" android:toXScale="1.0"
android:fromYScale="0.6" android:toYScale="1.0" android:pivotX="50%"
android:pivotY="50%" android:duration="5000" />
<alpha
android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="5000" />
</set>
根本 无法显示动画效果。哪们大虾能指点下,多谢了!
[解决办法]
去看下我刚写不久的关于popwin的使用吧。http://blog.csdn.net/redoffice/article/details/6673305