This is just going to be a quick how-to on creating a TextView with custom URL text.
To do this, you need to create a Spannable text object by using Html.fromHtml and then setting the MovementMethod of the TextView to a LinkMovementMethod. Here is an example using a dialog.
123456789101112
dialog=newDialog(this);dialog.setContentView(R.layout.about);dialog.setTitle(R.string.about_score_it);TextViewwebsite=(TextView)dialog.findViewById(R.id.about_website);StringrealURL="http://blog.devminded.com/projects/score-it";StringvisibleURL="http://blog.devminded.com";//The following builds the spannable item and will cause the text to display as a linkwebsite.setText(Html.fromHtml("<a href=\" + realURL + "\">"+visibleURL+"</a>"));//The following makes it clickablewebsite.setMovementMethod(LinkMovementMethod.getInstance());