activity的dialog样式设置
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="FullHeightDialog" parent="android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
</resources>
上面的代码写在string.xml里面
然后在清单文件中给activity设置theme
android:theme="@style/FullHeightDialog"
ok 搞定~!!