Hello,

I m rendering a TextView from Code using
TextView tv = new TextView(this);

I want the text content of TextView to be Linkify. To set the text
links I tried using

1. Linkify.addLinks(tvMessage, Linkify.ALL); // where tvMessage is my
TextView
and
2. tvMessage.setTextAppearance(c, R.style.textlink); // where c is
Context and R.style.textlink is
<resources>
<style name="textlink"><item name="android:autoLink">all</item>
</style>
</resources>

Neither of above two code works for me. I am not able to get automatic
links in the text.
Can anyone please help me to set the links for text content? Can
anyone tell me what is the right way to set a linkify textview from
code?

Thanks.
Regards,
Purvi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to