I have in my layout, a TextView, the id is textView1. In my java class I have this piece of code:
TextView link1 = (TextView) findViewById(R.id.tJabalEnlace1);
link1.setText("http://ift.tt/1jBnDYz");
Linkify.addLinks(link1, Linkify.ALL);
What this does is, initialize the textView, set the text of it, and linkifies it. It works just fine, but what I would like to do is, make the textView be "Link" and the direction to be the link in the code, but I don't know how.
No comments:
Post a Comment