Comments (22)
@DyncKathline 可能是动画问题,你试一下修改动画
mAnimator.setInterpolator(new LinearInterpolator());
你也可以尝试其它的动画试试。
from happyplayer5.
mAnimator.setInterpolator(new LinearInterpolator());注释掉这句也没用,我现在做法是在更新动画的时候判断它的旋转角度小于0.2就直接设置成0这样就不会闪烁了,可这样做没找到根本原因。
from happyplayer5.
之前一直都是用手机做的测试,在我测试机上没发现这个问题,在模拟器上面运行,确实有这个问题。感觉你这样子,那动画会不会不流畅? @DyncKathline
from happyplayer5.
from happyplayer5.
@DyncKathline 我网上查了一下,好像有些人也有这种情况,不过未解决。对了,你是用真机测试的,还是用模拟器?
from happyplayer5.
真机
from happyplayer5.
@DyncKathline 方便说一下机型和系统版本吗?
from happyplayer5.
vivox7 Android7.1
from happyplayer5.
@DyncKathline 好的同,非常感谢。
from happyplayer5.
@DyncKathline 你尝试一下把ValueAnimator.ofFloat修改为ValueAnimator.ofInt。这样子看一下闪烁是否还在,我把它修改之后,在模拟器上面运行,已经没有闪烁的问题了。你可以修改后,在真机上面试一下。
from happyplayer5.
好的明天试试,谢谢
from happyplayer5.
好了,但是还有一个小缺点,就是左右划来划去,在MotionEvent.ACTION_MOVE:这里设置setRotation(degree);还是会有小数值,会有闪烁
from happyplayer5.
之前左右操作时,一直都存在闪烁的问题?
from happyplayer5.
是的,感觉是不能小数吧,更新了你那个关闭动画的,因为在MotionEvent.ACTION_MOVE:那里没有
from happyplayer5.
感觉是整数的话,旋转不流畅。这样吧,你到我github上面更新一下RotateLinearLayout这个类的代码(把你之前的这个类文件保存好),更新之后,看看还有没这个问题。
from happyplayer5.
from happyplayer5.
RotateLinearLayout这个类,你更新一下我最新代码。没理由的,想不通…😣
from happyplayer5.
我另外再clone了你的代码运行,左右移动,在角度0.x几的时候会闪烁,松开reset动画没问题了
from happyplayer5.
🙀😿,容我想想先。非常感谢你😁
from happyplayer5.
可以加个QQ吗,方便联系问题?
from happyplayer5.
@DyncKathline 316257874。
from happyplayer5.
@DyncKathline 关闭硬件加速。
from happyplayer5.
Related Issues (20)
- 如果要做精确定位 是否一定要krc格式 HOT 1
- 那hrc和krc的歌词文件如何制作 HOT 4
- 有支持无损格式解码的代码吗?能独立出来吗? HOT 1
- 你把apk也提交上来了 文件太大导致源码也下载不下来 HOT 1
- 作者有没有研究过如何进一步缩小ijkplayer的.so库大小 HOT 1
- 作者有没有想过加入 Equalizer(均衡器) 的一些播放效果么? HOT 1
- 一个题外话?希望可以指点一二 HOT 1
- 排行模块一直在loading, HOT 2
- 请问支持https的音频播放地址吗 HOT 2
- 能提供下修改过的ijkplayer源码吗?谢谢 HOT 2
- android 8.0 以上 recent 键 bug HOT 3
- 开启桌面歌词后,整个手机无法back。 HOT 2
- 建议加上歌曲分组功能 HOT 1
- ijkplayer无法播放wav格式的歌曲 HOT 3
- happyplayer6 分支bug HOT 13
- 桌面浮窗 HOT 4
- wav歌曲播放失败 HOT 1
- 排行榜播放音乐 HOT 1
- 你好,HappyPlayer5是最新的播放器么! HOT 1
- None of v6-8 worked !!!!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from happyplayer5.