现在的位置: 首页 > 综合 > 正文

AlertDialog的title自定义

2013年02月17日 ⁄ 综合 ⁄ 共 254字 ⁄ 字号 评论关闭

1、更改AlertDialog的背景色

     AlertDialog.Builder settingDialog = new AlertDialog.Builder(mContext);

     settingDialog.setInverseBackgroundForced(true);

2、更改AlertDialog title的样式

TextView title = new TextView();

title.setText("Android");

settingDialog.setCustomTitle(title);

 

抱歉!评论已关闭.