I want to show message of AlertDialog
in two separate lines and text in one line in bold style and in next line simple text (without any style).
Now If I am performing break line with bold text , lines are break'd but text is not showing bold. Why ? can anyone help me.
Code :
AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("Alert");
Spanned s1 = Html.fromHtml("<b>" + "Text in Bold"+ "</b>");
String s2 = "Normal Text";
alertDialog.setMessage(s1+ "\n" + s2);
AlertDialog dialog = alertDialog.create();
dialog.show();