Android

Making a transparent layout which is added to another layout

tomato13 2013. 7. 8. 11:47

http://stackoverflow.com/questions/8968133/making-a-transparent-layout-which-is-added-to-another-layout


Use FrameLayout as a parent layout and stack it up with as many layouts as you want. Thats one part of the answer. To make a layer (a layout in this case) transparent, set the alpha value in its background (a color) to 0. For instance android:background="#00777777" sets a background which is translucent with a dull gray.


* The first two values are alpha values. In the upper case, the values are set as '00', so that means 100% transparent effect.