Android The system provides the Activity themes that are set to transparent: @android: Style/theme.translucent
This property supports hiding at the same time titlebar and full screen display.
It is only necessary to add the attribute to the corresponding Activity in the androidmanifest.xml configuration file .
<activity android:name= ". Activities. MyActivity " android:theme=" @android: Style/theme.translucent.notitlebar "/>
assuming that you want to achieve a translucent effect, first Activity set to Transparent. the global background of the Activity 's layout file is then set to a half-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