Abdul Mateen wrote: > I have tried that, but an error that says, this method is not supported > by RemoteViews.
Hmmmm...that's surprising. If you look at the source code to RemoteViews, all of the other methods pretty much delegate to setInt(), setLong(), and so forth. That would suggest that setInt(R.id.your_layout, "setBackgroundResource", R.drawable.foo) should work. If it doesn't, then I do not know how you can change the background of a LinearLayout at runtime in an app widget. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en