T
T
TimkaTV2015-05-12 22:00:37
Android
TimkaTV, 2015-05-12 22:00:37

TextView how to create a link?

Good afternoon. Such question
Is available listview, in it the text. I want the links to be highlighted and, when clicked, throw them into the browser
. In the overloaded getView I prescribe

. . .       
TextView content = (TextView)v.findViewById(R.id.text);
content.setText(array.get(CONTENT).toString());
Linkify.addLinks(content, Linkify.WEB_URLS);
. . .
. . .

also android:autoLink="web"
When you click on the link (it's really highlighted) crashes. How to redefine Intent in this case to add checkboxes?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TimkaTV, 2015-05-12
@TimkaTV

The problem is solved by replacing getApplicationContext() with this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question