Android 在连接服务器的时候,旋转动画会卡顿

pxcz110112 2018-10-31 03:17:33
旋转动画在正常情况下没事,但是一连接服务器就会卡顿,大佬帮忙看看是怎么回事吧,代码如下
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<rotate
android:duration="40000"
android:fromDegrees="0"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="-1"
android:repeatMode="restart"
android:startOffset="-1"
android:toDegrees="36000" />
</set>



waiquan = (ImageView) findViewById(R.id.detect_waiquan);
Animation animation = AnimationUtils.loadAnimation(FaceDetectActivity.this, R.anim.waiquan);
waiquan.setAnimation(animation);


还有就是想让图片360度不停的旋转,但是设为360度的话总会卡顿一下,暂时是设为36000度来解决,有没有更优雅一点的解决办法。。。
...全文
158 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
pxcz110112 2018-11-01
  • 打赏
  • 举报
回复
有没有大佬帮忙解决下这个卡顿问题

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧