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. Answer Incoming call automatically.

Well I need to do to things,

1. automatically answer the calls which are in the blacklist
2. Receive all other calls through the usual android call receiver.

I know the first thing is to register intent, but since no activity
can handle it, I need to use services and a media recorder somehow in

Any ideas??


2. onItemClick(AdapterView<?> parent, View view,

Okay i dont want to get to many ppl confused so im going to try to ask
this very simply. When android goes to this function when a user
clicks on a item on your listview. basically u get a parent who im
assuming is the array of textview that was set up during the
setAdapter phase and view which the the corresponding View to which
the user touched.   My main and only questions is i know i can adjust
the view of View by saying stuff like

(TextView)view = setText("hello")

during the same time i want to beable to change another TextView in
the AdapterView like the View after the "View view" so i guess view
+1   i want to also be able to change that view into another word.

Please dont ask me y im doing this just that im doing it for a reason
I just really need help and i hope this explains that During the
onItemClick listener function basically I want to adjust 2 different
Views in the arrays of Views but i have no idea how to access the any
other view then the given "View view" thats the argument they give you


3. SMS PDU Behaviour

4. Android: widget App

5. TabHost Activity

6. Toast cropped on small screens

7. Touchscreen coordinates problem on Samsung Galaxy S ("Vibrant")