您的位置:首页 > 其它

alertDialog设立主题theme的方法

2014-09-25 10:19 288 查看
alertDialog设置主题theme的方法


AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this, R.style.AlertDialogCustom));




resources中定义


<?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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: