<style name="MyTheme" parent="@android:style/Theme.Dialog">
<!---msg_background为半透明图片--->
<item name="android:windowBackground">@drawable/msg_background</item>
</style>
<activity android:name=".Main" android:lable="@string/app_name" android:theme="@style/MyTheme">