2
私はこの投稿(How can I change the color of AlertDialog title and the color of the line under it)を見ましたが、私のタイトルに変数が付いているかどうかは疑問です...最初の解決方法?変数の文字列を使用しているときにalertDialogのタイトルの色を変更します
これは私のコードです:
AlertDialog.Builder dialogo = new AlertDialog.Builder(ListadoBC.this);
dialogo.setTitle("¡"+listaBC.get(arg2).getFragilidad()+" !\n"+"¿Ha seguido esta recomendación?");
そして、私はこの()alert.setTitle(Html.fromHtml("<font color='#FF7F27'>Set IP Address</font>"));
のようなものを使用して赤で、この文は("¡"+listaBC.get(arg2).getFragilidad()+" !\n")
表示されていることを望む...それは可能ですか?
実際に 'Html.fromHtml()'を試しましたか? – Karakuri
@ KarakuriカスタムalertDialogを作成せずに別の方法で行うことはできますか? – wiki