[Android] Transparent Activity

Wednesday, October 14, 2009
0 意見
I learned this from my friend Ares. :-)

1. res/values/styles.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TransparentTheme" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@null</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>