Hi,
Can i do this :-
Set the image background path as package:imageName
Example.. At runtime , my package is com.test.android .Inside that i have an
image whose path i want to mention in the XML layout file as
android:src = com.test.android/img1 for an ImageButton.
I saw an SDK reference for ImageView as android:src =
@[+][package:]type:name .. But i am not getting how to use it.. I think it
must not be possibe , but if there is any way , please specify..
The reason why i want to do this is that , when i specify a drawable at
runtime for my image buttons, i change the images according to Focus
received , or onKeyup, KeyDown.. but its not working as expected.When i
mention the same thing as style under drawable , it works fine. So if my
theme is going to change at runtime , i want to set the drawable at runtime
, keepnig the path same in the xml.
Thanks ,
Alok

-- 
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

Reply via email to