且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在通知的观点倒计时计时器?

更新时间:2023-11-17 17:15:58

我不相信你将能够直接与 RemoteViews 使用自定义类即使它从支持类之一派生(注解是的的继承)。你可以尝试使用的TextView ,使用对 RemoteViews参考倒计时在服务 对象和更新来自那里。

I don't believe you're going to be able to use a custom class directly with RemoteViews even if it's derived from one of the supported classes (annotations are not inherited). You could try using a TextView, counting down in a Service with a reference to the RemoteViews object and updating from there.