Android The system provides the Activity themes that are set to transparent: @android: Style/theme.translucent
This property supports both hidden titlebar and full screen display. You only need to Add this attribute to the corresponding Activity in the Androidmanifest.xml configuration file.
<activity android:name= ". Activities. MyActivity " android:theme=" @android: Style/theme.translucent.notitlebar "/>
if you want to achieve a translucent effect, first Activity set to Transparent, and then Activity the global background of the layout file is set to a semi-transparent color value.
<?xml version= "1.0" encoding= "Utf-8"? ><relativelayout xmlns:android= "http://schemas.android.com/apk/res/ Android " xmlns:stepset=" http://schemas.android.com/apk/res/****** " android:layout_width=" Match_parent " android:layout_height= "match_parent" android:orientation= "vertical" android:background= "#70000000 "> </RelativeLayout>
The Activity of Android for transparent effects