Questions tagged [linkmovementmethod]

This is a Java movement method in the Android API that traverses links in the text buffer and scrolls if necessary. Supports clicking on links with DPad Center or Enter.

A movement method that traverses links in the text buffer and scrolls if necessary. Supports clicking on links with DPad Center or Enter.

Link.

34 questions
0
votes
0 answers

How to get data from Movement Method on TextView in Android

I've read the post that everyone links to about link handling clicks with TextViews. I have a textview with a Movement method set and it seems to be working correctly. When I click on the link it opens a browser and displays the correct information.…
0
votes
1 answer

Adding OnTouch and OnClickListener to the links in a TextView and changing background color of the link

I have a textview and links in it. I want the links highlighted when I touch them and also I want to open a Alertdialog when I longclick them. I tried to reach the solution by customizing URLSpan, but, since I can't access to mView before OnClick is…
erkams
  • 74
  • 1
  • 9
0
votes
1 answer

Is there a standard way to have hrefs and telephone numbers clickable in a TextView?

I already know how to use TextView to automatically create clickable links for web addresses, phone numbers, etc.. My question is when you have HTML with hrefs in it as well as phone numbers and you want both clickable, is there a better or more…
John Cummings
  • 1,949
  • 3
  • 22
  • 38
0
votes
3 answers

OnClickListener for TextView does not get called

I have a couple of text links in my Android applications which are either email addresses or web links. I use the following code snippet to set them up (example for a web link): TextView textView = (TextView) findViewById(textViewId); spannedText =…
JJD
  • 50,076
  • 60
  • 203
  • 339
1 2
3