The snippet below will not update te text displayed on the TextView. It works fine using the LinkableEDITTEXT though
tv = (LinkableTextView) findViewById(R.id.heloworld);
Link linkHashtag = new Link(Pattern.compile("(#\\w+)"))
.setUnderlined(true)
.setTextStyle(Link.TextStyle.BOLD)
.setUnderlined(false)
.setTextColor(Color.DKGRAY);
tv.addLink(linkHashtag);
tv.setText("This does not get set at all");
The snippet below will not update te text displayed on the TextView. It works fine using the LinkableEDITTEXT though