java - How I can make links clickable in an AlertDialog without using a TextView? -
i have line in strings.xml file:
<string name="backup_help_body">please watch video if did not understand above steps: www.youtube.com</string>
and above text in alertdialog:
alertdialog.builder backuphelpdialog = new alertdialog.builder(this); backuphelpdialog.settitle(getstring(r.string.backup_help_title)); backuphelpdialog.setmessage(r.string.backup_help_body); backuphelpdialog.seticon(r.drawable.my_notes); backuphelpdialog.setpositivebutton(r.string.ok, new dialoginterface.onclicklistener() { @override public void onclick(dialoginterface backuphelpdialog, int witch) { // not anything. } }); backuphelpdialog.show(); return true;
how can make link clickable in alertdialog without using textview?!
i'm not sure can without textview, use custom alertdialog, can create "temporary" textview within code perform need, here leave url have several examples
how can clickable hyperlinks in alertdialog string resource?
Comments
Post a Comment