AnyLifeZLB / ScrollTextView

Android ScrollTextView. You can use it in advisement player,TV news show or airport metro information public system App. 🇨🇳Android 滚动字幕跑马灯,可是使用在广告机设备,电视广告位或其他在机场,地铁使用的信息发布系统App使用
548 stars 109 forks source link

频繁切换会有问题,会超时anr #29

Open jieray opened 3 years ago

jieray commented 3 years ago

at java.lang.Thread.parkFor$(Thread.java:1220)

AnyLifeZLB commented 3 years ago

频繁切换滚动的文字吗?还是?我来看看能否复现修复问题

有些CUSTOM电视盒子可能软硬件设备 有问题,可以尝试在平板上对比一下

lylelqc commented 2 years ago

随着界面显隐,频繁创建销毁会导致surfaceview重影,这个由什么解决方式吗?设置了setZorderOnTop(true)

AnyLifeZLB commented 2 years ago

@lylelqc 什么设备会出现这个问题,手机也会吗?

dacaoyuan commented 2 years ago

我的也是错误日志如下: /SurfaceHolder: Exception locking surface java.lang.IllegalArgumentException at android.view.Surface.nativeLockCanvas(Native Method) at android.view.Surface.lockCanvas(Surface.java:310) at android.view.SurfaceView$4.internalLockCanvas(SurfaceView.java:990) at android.view.SurfaceView$4.lockCanvas(SurfaceView.java:958) at anylife.scrolltextview.ScrollTextView.draw(ScrollTextView.java:475) at anylife.scrolltextview.ScrollTextView.access$600(ScrollTextView.java:38) at anylife.scrolltextview.ScrollTextView$ScrollTextThread.run(ScrollTextView.java:532) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:278) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:273) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761) 2022-07-23 12:18:30.614 1305-12347/system_process W/WindowManager: Failed looking up window

vince-styling commented 1 year ago

有点疑惑,为什么要用 SurfaceView,不觉得有点重量级吗,据我了解,SurfaceView 不支持别的 view 盖在它上面,哪怕是用 TextureView 也好啊

AnyLifeZLB commented 8 months ago

今天使用低端机发现问题比较严重,这周会优化一版本

AnyLifeZLB commented 8 months ago

发布2.4.0 !