标签:android style blog ar io color sp on 文件
自定义dialog,继承dialog,重写
onCreate
添加布局文件
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.dialog_activity_layout); this.setCanceledOnTouchOutside(false); }
new 自定义dialog构造样式
样式:
<style name="MyDialogStyle"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowFrame">@null</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsFloating">true</item> <item name="android:windowIsTranslucent">true</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> <item name="android:backgroundDimEnabled">true</item> </style>
标签:android style blog ar io color sp on 文件
原文地址:http://blog.csdn.net/u010152805/article/details/41982483