AlertDialog自定义样式
2011-10-02 01:08
357 查看
像列表这种选择项的弹出式对话框,要改变样式一般都采取重写layout方式
今天才了解到 其实可以自定义样式,与大家分享下,其实很简单
然后自定义自己的样式就可以了
今天才了解到 其实可以自定义样式,与大家分享下,其实很简单
AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this, R.style.AlertDialogCustom));
然后自定义自己的样式就可以了
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="AlertDialogCustom" parent="@android:style/AlertDialog"> <item name="android:textColor">#00FF00</item> <item name="android:typeface">monospace</item> <item name="android:textSize">10sp</item> </style> </resources>
相关文章推荐
- AlertDialog自定义样式问题
- AlertDialog自定义样式
- android AlertBuilder创建的dialog,使用自定义样式
- bootbox自定义dialog、confirm、alert样式,以及基本设置方法setDefaults中可用参数
- AlertDialog自定义样式
- bootbox自定义dialog、confirm、alert样式,以及基本设置方法setDefaults中可用参数
- AlertDialog 自定义样式
- 修改系统AlertDialog样式、自定义Dailog-----Activity透明效果
- AlertDialog自定义样式
- AlertDialog 自定义样式
- AlertDialog自定义样式显示圆角背景失败
- 【转】bootbox自定义dialog、confirm、alert样式,以及基本设置方法setDefaults中可用参数
- bootbox自定义dialog、confirm、alert样式,以及基本设置方法setDefaults中可用参数
- 自定义AlertDialog button的样式
- 自定义弹窗 VS AlertDialog分享弹窗
- 自定义alert窗口样式
- android 自定义弹出框AlertDialog
- AlertDialog自定义
- 自定义dialog的样式并比较日期
- Android进阶之AlertDialog自定义