views:

5094

answers:

1

hello...

i am using a web view in which i am adding a image view..now i want to set the background of this image view transparent.i hv tried setting

mImageview.setBackgroundResource(R.color.trans); [where trans => < color name="trans">#00000000 < / color >]

plz help.... thanks in advance...

+1  A: 

There is already a transparent built into Android: R.color.transparent. http://developer.android.com/reference/android/R.color.html#transparent

But I think what you may be wanting to do is make the background of the image that you are placing into the WebView transparent, for example with a transparent PNG, rather than the ImageView background. If the actual image is not at all see-through then the ImageView background can't be seen through it.

AshtonBRSC
the image is transparent..it didnt hav any background..i hv also tried setting imageview background as u hv said..but it didnt work...plz help..
mudit
Can you post some more details such as a link to the image you are using and the code and layout you are using?
AshtonBRSC