On Jan 4, 7:55 am, "Tommy Hartz" <to...@webpro.com> wrote: > you can set the android:autoLink="all" or whatever attribute you need in > place of "all"
So, to sum things up there is no way around using a custom TextView. I am currently using the following code successfully, which I am including for the archive: -- 8< -- View view = View.inflate(MainActivity.this, R.layout.about, null); TextView textView = (TextView) view.findViewById(R.id.message); textView.setMovementMethod(LinkMovementMethod.getInstance()); textView.setText(R.string.Text_About); new AlertDialog.Builder(MainActivity.this).setTitle (R.string.Title_About).setView( view).setIcon(R.drawable.icon).show(); -- 8< -- The corresponding about.xml borrowed as a fragment from the Android sources looks like this: -- 8< -- <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scrollView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="2dip" android:paddingBottom="12dip" android:paddingLeft="14dip" android:paddingRight="10dip"> <TextView android:id="@+id/message" style="?android:attr/ textAppearanceMedium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dip" android:linksClickable="true" /> </ScrollView> -- 8< -- The important parts are setting linksClickable to true and setMovementMethod(LinkMovementMethod.getInstance()). Thanks, Thilo
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en