Quantcast
Viewing all articles
Browse latest Browse all 204402

How to update TextView background on homescreen widget?

I know how to change the background in an Activity. But I am unable to update the background on my homescreen widget.

This is what I have:

var updateViews = new RemoteViews(this.PackageName, Resource.Layout.Widget_Large); //This sets my layout for the widget updateViews.SetTextViewText(Resource.Id.widget_Limit, "Text Here"); //This changes the text

//HERE IS WHERE THERE IS NO METHOD FOR CHANGING THE BACKGROUND updateViews.SetBackgroundColor(Resource.Id.widget_Limit, COLOR.RED); <-- ????


Viewing all articles
Browse latest Browse all 204402

Trending Articles