How can I get View
instance from RemoteViews
? There are RemoteViews.reapply
and RemoteViews.apply
API functions , but I don't know how to use them.
If you are the one creating the RemoteViews
to hand to something else -- as is the case with an AppWidgetProvider
-- you cannot "get View instance from RemoteViews". The View
hierarchy created from your RemoteViews
is created in a different process than your own, and so you do not have direct access to it.
You can use something like:
remoteViews.setTextViewText(R.id.widget_anything, "Anytext");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With