出处:http://blog.sina.com.cn/s/blog_3e333c4a01011ymg.html
第一步
<style
name="translucent" parent="android:style/Theme.Translucent">
<item name="android:windowBackground">@color/
transparent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:backgroundDimEnabled">true</item>
<!--true背景灰色 false背景白色 -->
</style>
第二步 color.xml
<color name="
transparent">#00000000</color>
第三步 AndroidManifest.xml
<activity android:name=".activity.SearchActivity"
android:theme="@style/translucent" />
---------------------------------------------------------------------------------------------------------------------------------------
第二步 可以省略 将第一步改为如下:
Version:0.9 StartHTML:-1 EndHTML:-1 StartFragment:0000000111 EndFragment:0000001979
<style name="translucent" parent="android:style/Theme.Translucent"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowNoTitle">true</item> <item name="android:backgroundDimEnabled">true</item> <!--true背景灰色 false背景白色 --> </style>