Questions tagged [linkify]

An Android utility class with which you can easily link to for example webpages, phone numbers or e-mail addresses.

Linkify is a text utility class in Android with which you can easily link to for example webpages, phone numbers or email addresses.

265 questions
2
votes
0 answers

jquery Linkify: Firefox displaying "/#%21/..." instead of "/#!/..." in href attr after linkification

It's odd, I really don't know what else to check... I'm using this code for linkifying URLs... And the URLs with a hash like Twitter http://twitter.com/#!/username/status/1234567890 Firefox shows this on the href:…
Santiago
  • 2,405
  • 6
  • 31
  • 43
2
votes
1 answer

Android: nested links inside of clickable layout

Here's scenario: I have a RalativeLayout holding ImageView and few TextViews. There are "linkified" elements inside these TextViews such as URLs, phone numbers, etc. Clicking on the links result in various actions, also clicking on ImageView…
Bostone
  • 36,858
  • 39
  • 167
  • 227
2
votes
1 answer

jQuery Linkify plugin: Can't handle links that end in parenthesis

I'm using this great plugin: https://github.com/maranomynet/linkify/blob/master/1.0/jquery.linkify-1.0.js to link text manipulating the dom. The problem is with links like this: http://en.wikipedia.org/wiki/The_Godfather_(novel) The link will be…
Santiago
  • 2,405
  • 6
  • 31
  • 43
2
votes
1 answer

How to linkify hashtag in react

I use the linkify-react module with the hashtag plugin import Linkify from 'linkifyjs/react'; import * as linkify from 'linkifyjs'; import hashtag from 'linkifyjs/plugins/hashtag'; hashtag(linkify); I'm not find any solution to let the hashtags…
red
  • 1,529
  • 1
  • 12
  • 33
2
votes
2 answers

Alert Dialog Linkify but keep text white

Hello I am using the following code to linkify email addresses and urls and that is working just as i need it to however if you click any where besides the urls and emails the white text that is unlinked becomes black and unreadable. Not a huge deal…
GFlam
  • 1,109
  • 4
  • 25
  • 38
2
votes
1 answer

Styling Linkify

Is there any way to style the links produced by a Linkify.addLinks() operation? Specifically I want to change from the default blue color. Thanks
longhairedsi
  • 3,133
  • 2
  • 28
  • 28
2
votes
1 answer

Linkify click text and go to web url

When the users clicks, it should open the webbrowser and go to https://www.google.com. But the textView's text should be "Click here for the site". textView.text = "Click here for the site" val pattern = Pattern.compile("Click here for the…
Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94
2
votes
1 answer

Android TextView make http and custom scheme urls clickable

I'm creating an android app and have defined an activity as follows:
manishKungwani
  • 925
  • 1
  • 12
  • 44
2
votes
2 answers

Regular Expression - detect Specific Url and replace that string

I wanna detect exact domain url in string and then change that with another string and finally make it clickable in TextView. What I want: this is sample text with one type of url mydomain.com/pin/123456. another type of url is…
MAY3AM
  • 1,182
  • 3
  • 17
  • 42
2
votes
1 answer

android Linkify first occurrence only

i am using Linkify with a custom TransformFilter. Is it possible to tell linkify to only match the first occurence of my pattern?
Ben
  • 16,124
  • 22
  • 77
  • 122
2
votes
1 answer

Linkify textview gets clicked while scrolling the listview

I have a ListView with a linkify enabled TextView. The problem that I am facing is while the user scrolls the list, by mistake if he touches the textiview it open ups the link. Can I interrupt this click event? Or is it possible to remove the touch…
Navya Ramesan
  • 191
  • 2
  • 10
2
votes
2 answers

onLongClick triggers Linkify onClick

I have a chat and I'm using Linkify to parse links and onLongClick to open a dialog that allows the user to copy the content of a message. chatText is my TextView. chatText.setText(message); Linkify.addLinks(chatText,…
Jack
  • 171
  • 2
  • 16
2
votes
1 answer

text colors for one TextView using two Linkify's and weblinks clickable

I want twitter mentions to be in redcolor and hashtags is another color,if any tweet contains any weblinks.. links should be clickable and passed through intent to another Activity(WebView). How can I achieve this ?? TransformFilter filter =…
Sree Reddy Menon
  • 1,301
  • 13
  • 23
2
votes
0 answers

Android phone number linkify

I have a phone number that is being linkified on Android 4+ devices. Linkify.addText(textView,pattern,scheme); The problem I have is that extensions are not recognized by the phone. I have tried adding commas and p/w to no avail. I have also…
Sir Cringe
  • 202
  • 2
  • 9
2
votes
0 answers

Android - How to handle touch event for unlinked text in linkified textView?

Say I have a Linear layout with a clickListener . This linear Layout contains a textView with a linkifyHandler for hashtag starting with #. If the text is "AAAAABBBBB", then there are no links so pressing this text will perform clickListener of the…
user2062024
  • 3,541
  • 7
  • 33
  • 44