Monday, 15 March 2010

android - Change background color of remoteview dynamically -


According to my previous question, I successfully managed it with a transparent image. Now I want to turn the background colors of the images into a dynamically mysterious (PS I want to change the widget as well as the link that changes dynamically in the given link).

I tried the following code:

  color filter CF = new portter codecroller filter (-1503209,5, multi-level mode); Drawable d = context.getResources (). GetDrawable (R.drawable.panel1); D.mutate (); D.setColorFilter (CF); Rv.setBitmap (R.id.rl_noti_main, "setColorFilter", DurbotBitmap (D));  

But this did not help, how can it be achieved? I have color codes in all formats of integer, hex or string, which will be required. Please note that I want to do this only in links for given shapes and for remote viewing.

Thank you in advance :)

You can not update widget dynamically .

You can use a bitmap of a scene inside remote power if the view is on the background, then it should be changed in the background. And then update the widget to apply changes.

If you are using Remote Visas in the notification, then you should update your information after this. If you're using it in widgets , you'll see the AppWitManager. Update app widget (widget ID, view); function.

should be used.

No comments:

Post a Comment