更新时间: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.