changing layout background from XmlResourceParser for widgets

by Abdul Mateen » Wed, 09 Dec 2009 19:49:37 GMT

Sponsored Links
I have an app widget, I want to change the background drawable of
LinearLayout while in runtime, how can I do that? I have tried using
XmlResourceParser p = getResources().getLayout(R.layout.main);;

it takes me to linearlayout but when I issue
p.getProperty("background"); it returns null? what should I use instead of
background here? or is there any other way to change wiget's background at

Thank You,
Abdul Mateen.


Other Threads

1. <uses-feature> for groups of items

The latest blog post
talks about using the uses-feature to future proof your apps.

However, say you have a game that is controlled either by the
accelerometer, or by a physical keyboard.  I can't see anyway of
indicating that you must have one or the other.  So you still aren't
future proofed for devices that are touch screen only.

Is this coming, or did I miss something?


2. Can I use the linux built system.img file in windos sdk

I had built the system.img file in linux ubuntu OS for Android.
I copied the system.img file in the widows SDK at /out/packagees/
target/generic directory.
But when i am trying to start the emulator its not starting.
And the logcat messages are not shown.

Is it possible to build the system.img in ubuntu and use it in

Please help me in this.


3. how to pass an application from computer to mobile device

4. update view when AsyncTask finished in a service

5. Setting up Eclipse to build NDK using Sequoyah

6. HTC auto zoom on HTML input fields

7. Is Samsung Galaxy Tab NOT a large screen from application developer's point of view?