Is there a setBackgroud on Appwigetprovider?

Asked

Viewed 34 times

1

My question is whether the method exists setBackground in the class of AppWidgetProvider?

If it is possible to use the method in the class have some path I can follow?

I’m developing a native widget.

  • If possible post your code

  • @Joãovitor he asked for the code to understand the need of use, in case he understands he can give an alternative solution that serves his case, understands?

  • "I can already use setViewResource". And what is your code? Have you looked at the documentation (probably not)? Are you using Xamarin or Java? Look how many questions.... Your question is quite broad, can be so broad, can end up being closed.

1 answer

2

The answer to my question is yes there is a way using the following code is possible to set the background of the widget.

view.setInt(R.id.exec_cena,"setBackgroundResource",R.drawable.button_effect);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.