
安卓开发中,要去掉程序弹出的对话框周围多余的边框的话,可以通过自定义主题的方式来实现。
http://www.csdn123.com/html/itweb/20130815/60988_60989_60980.htm
亮点:
使用 styles.xml 风格:
Style.xml 代码
<style name="FullScreenDialog" parent="android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFrame">@null</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowIsTranslucent">false</item>
<item name="android:background">@android:color/black</item>
<item name="android:windowBackground">@null</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
使用 AlertDialog 的上层接口类:
Java 代码
Dialog reNameDialog = new Dialog(getContext(), R.style.FullScreenDialog);
未知美人
HxLauncher: Launch Android applications by voice commands