有没有办法在AlertDialog中改变标题下划线的颜色? 我已经通过自定义样式定义更改了标题颜色(请参见下文),但我没有找到下划线的任何xml属性。AlertDialog标题下划线颜色
<style name="CustomTitle" parent="@android:style/TextAppearance.Holo">
<item name="android:textColor">@color/green</item>
</style>
我运行Android 4
编辑:这就是我如何创建AlertDialog
Builder ad = new AlertDialog.Builder(new ContextThemeWrapper(this,
R.style.DialogPrivate));
ad.setTitle("Custom Dialog");
ad.setMessage("blaaaaa");
ad.setPositiveButton("test", null);
ad.setNegativeButton("test2", null);
ad.show();
而且它的外观像此刻Screenshot
请参阅http://stackoverflow.com/questions/2394935/can-i-underline-text-in -an-android-layout – AliSh 2012-02-11 12:02:49
你知道我如何访问标题TextView吗?我使用默认的AlertDialog,没有扩展它。 – user1173367 2012-02-11 12:47:57