有没有办法改变 AlertDialog 中标题下划线的颜色?我已经通过自定义样式定义更改了标题颜色(见下文),但我没有找到下划线的任何 xml 属性。
<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();
以及现在的样子截图