I have alertDialog
with items,
this is the code:
final CharSequence[] options = { "Back","continue"};
AlertDialog.Builder builder = new AlertDialog.Builder(myActivity.this);
builder.setTitle(customTitle);
builder.setItems(options, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int item) {
if (options[item].equals("Back"))
{
//do something;
}
else if (options[item].equals("continue"))
{
dialog.dismiss();
}
}
});
builder.show();
I have custom font in my assets folder, how can I connect the item's font to this font? I saw many answers but there is no answer for itmes in dialog, all answers was about the title or text uses by textView, I need to change the font of my items, someone can help me?