カスタムスタイルでAndroidでダイアログを作成しています:
new AlertDialog.Builder(new ContextThemeWrapper(context, R.style.CustomAlertDialog))
.setSingleChoiceItems(keys, selectedIndex,
new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int index) {
// ...
dialog.dismiss();
}
})
.create()
.show();
次のようになりCustomAlertDialogます。
<style name="CustomAlertDialog" parent="@android:style/Theme.Dialog">
<!--
<item name="android:typeface">monospace</item>
<item name="android:textSize">30sp</item>
-->
</style>
typefaceこれは正常に機能します ( andのコメントを外すとtextSize、変更が表示されます)。ただし、現在選択されているアイテムの水色を別のものに変更したいと思います。

これは私のを通して可能CustomAlertDialogですか?もしそうなら、どのように?
