Android轮播+倒数计时器 [英] Android carousel + countdowntimer

查看:87
本文介绍了Android轮播+倒数计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序主屏幕上,使用该轮播 Android 3D轮播,我遇到了一个奇怪的问题. .

与此同时,在同一活动上还有一个CountdownTimer.

现在的问题是轮播每秒重置一次.因此,即使我们旋转,第二个刻度时它也会返回到默认位置.

使用Async任务尝试过,但似乎还是有问题.

如果未启动倒数计时器,它会正常工作.

沮丧!!!!

I am facing a strange problem using this carousel Android 3D Carousel on the main screen of my application.

Along with this there is a CountdownTimer on the same activity.

Now the problem is that carousel is reset every second. so even if we rotate it comes back to the default position when the second ticks.

Tried using Async task but something still seems to be wrong.

It works fine if the countdowntimer is not started.

Frustrated !!!

推荐答案

我只是偷偷摸摸-但从我的观点来看,Rotator类需要有一个开始的角度来完成这项工作.当那个重置为旧值时...
而且无论如何:Runnable是否等待旋转完成?

另外,请在文章中此处-也许其他人也遇到了这个问题.
I took just a short sneak - but to my point of view the class Rotator needs to have the starting angle to do it''s job. When that one is reset to the old value...
And anyway: does the Runnable wait for the rotation to finish?

Also please ask here at the article - perhaps someone else has had that problem too.


这篇关于Android轮播+倒数计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆