[android-developers] transparent images
hi guys,
i am trying to overlap two images, a transparent one over an opaque
button background. Three simple lines:
res = getResources();
Drawable spinImage = res.getDrawable(R.drawable.n8);
((Button)
findViewById(R.id.spinButton_5)).setBackgroundDrawable(spinImage);
i also used setBackgroundResource instead of setBackgroundDrawable ..
the problem is that i am losting the background image, not overlaping
happend, the new transparent image replace the whole opaque
background. I have to use clickable buttons an doit from source code
because the image file name is variable.
the image is transparent for sure ...
what is wrong ?
thanks for help
hector
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home