Exclude certain subviews from being affected by parent transparecy in XML?

DafNanliffNow

New Member
I'm using a LinearLayout in my XML layout in Android. Inside the LinearLayout have I 2 new LinearLayouts and inside each of them an ImageView like illustrated below:\[code\] <LinearLayout android:alpha="0.8"> <LinearLayout> <ImageViewandroid:alpha="1"> </LinearLayout> <LinearLayout> <ImageViewandroid:alpha="1"> </LinearLayout> </LinearLayout>\[/code\]In the top LinearLayout is the alpha set to 0.8 but I dont wan't my ImageView to be affected by this, the ImageView should have the alpha 1. Is there any way to exclude an View from being affected by their parents layout preferences like the alpha?
 
Back
Top