I am calling invalidate on the text view after adding text (the text comes in from kind of a chat server, actually its a game server but for this purpose its a text view for your chat on the server). Still even with tv.invalidate(), when something like http://www.google.com is added its not hyperlinked. But when i back out of the app , open another app, then come back, suddenly it is a blue link and it even works i can touch to open the browser. I need to duplicate what is happening with code to force it to refresh the text view and make links appear as links if i can without the user having to do something clunky like leave the program and come back.
On Sun, Nov 25, 2012 at 10:59 AM, Mike Adams <adams...@gmail.com> wrote: > I have a textview set up with the following xml: > > <TextView > android:id="@+id/tv" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:editable="false" > android:background="#000000" > android:typeface="monospace" > android:textSize="14sp" > android:autoLink="web" /> > > I initially didn't think android:autoLink="web" worked because i was > writing http links to the console and they were not linked. But i noticed > the other day if i backed out of the program and opened another app then > came back to this program, the links that wrote as plain text suddenly > appeared hyperlinked. How can i force it to display them as hyperlinks on > first pass? Seems it could be some kind of refresh or repaint issue. > > Mike > > -- 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