changing layout background from XmlResourceParser for widgets

Hi, I have an app widget, I want to change the background drawable of LinearLayout while in runtime, how can I do that?...