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
0
votes
1 answer

Linkify hashtags based on match.group(1)

I am trying to Linkify hashtags in a TextView. Thats is working as sample code I provided but I need to underline found hashtags based on match.group(1). Linkify seems to underline based on match.group(0). With TransformFilter I can only change…
Nesim Razon
  • 9,684
  • 3
  • 36
  • 48
0
votes
1 answer

Linkify links in textview and let user select which program open links instead of internal browser

I have a TextView that applied Linkify to that to create my links. Linkify.addLinks(mTextView, Linkify.ALL); Now when users click on links, apps open links in native browser. But i want to users have this option to select their favorite browser by…
MAY3AM
  • 1,182
  • 3
  • 17
  • 42
0
votes
1 answer

How to implement hashtags in Android

How can I implement hashtags in an app in one activity? I have looked at an example of using hashtags with linkify but it uses separate activities(http://sourabhsoni.com/implementing-hashtags-in-android-application/).
Rhynoboy2009
  • 140
  • 3
  • 11
0
votes
2 answers

linkify words using regex

I'm trying to linkify hashtags using regex, most of the cases work except when there is a word with dot at the end hot., this should only linkify #hot, but at the same time #hot.hot is valid Here is my regex code: var text = "#hot#hot hot #hot…
krisrak
  • 12,882
  • 3
  • 32
  • 46
0
votes
1 answer

Links auto-detection in WebView

I have such HTML

https://www.google.com

foo@bar.com

Is there any way to tell WebView to auto linkify content, and render like if it was:

https://www.google.com

alex2k8
  • 42,496
  • 57
  • 170
  • 221
0
votes
1 answer

How to linkify to in-built apps like Contacts?

I have an empty TextView set for my ListView. When there is no data, it shows the empty text, where I have description that they should go to Contacts application. How can I linkify "Contacts" word so when tapped opens the Contacts application?
Pentium10
  • 204,586
  • 122
  • 423
  • 502
0
votes
2 answers

Android Linkify TextView: Linkify Dutch address

I was wondering, does anyone know how to get an address in a textview matched by the Linkify in Android and make it a clickable link? I think I can figure out how to do this manually, but I was wondering if I have to match the address against a…
Orion
  • 1,258
  • 2
  • 14
  • 32
0
votes
2 answers

Linkify Method in html.erb file showing up with HTML in view

sorry if this is a noob question but im calling the following method on the @page instance variable, and the view is populating with html tags... module PagesHelper def linkify_page page regex = /\[\[([^|]+)\|(\w+)\]\]/ …
LDro
  • 37
  • 2
0
votes
1 answer

Clickable URL in EditText Android

I have a note editor. I want to be able to paste link in the EditText and make it clickable, but I still want to have the cut/copy/paste menu on long pressing and also I want the link to be opened only if it is clicked, not if I click anywhere else…
user3132352
  • 403
  • 1
  • 9
  • 24
0
votes
2 answers

Linkify is adding %20 in my url and is not opening exact url

i am opening a website using linkify feature of android and getting %20 in my url when opening from my device so what should i do? here is what i am doing license=(TextView)findViewById(R.id.find_us_tv3); license.setTextSize(18); Pattern…
dev_android
  • 493
  • 1
  • 11
  • 29
0
votes
2 answers

add css class or id before a wordpress post/page

i'm building a wordpress plugin, but to my plugin work needed a specific class in to html code (javascript linkify), but all templates themes are using different classes to formating the posts, for example:
or
Richzendy
  • 31
  • 8
0
votes
1 answer

How to match exact sequence with Pattern compile

I'm trying to use Linkify but can't seem to get the Pattern.compile() part down. Let's say i have a string like blah blah hi Hello world! can you match me? i want to match and linkify ONLY Hello world! and nothing else. i was trying to play around…
David T.
  • 22,301
  • 23
  • 71
  • 123
0
votes
2 answers

Change the text message, to be a clikable message

I'm trying to change the text message of the AlertDialog message. To be a clikable message. With this code the text is blue, but not clikable I want the phone, email and site from text to be clikable final SpannableString All = …
0
votes
1 answer

Android Linkify in nested RelativeView

I have a LinearLayout/Scrollview/LinearLayout in which I need two links. first is a regular TextView - that works fine. SECOND TextView is in a RelativeLayout with an ImageView left from it, that's not…
Michael D.
  • 1,795
  • 2
  • 18
  • 25
0
votes
0 answers

add exception in javascript

I have the following code: function replaceURLWithHTMLLinks(text) { var re = /(\(.*?)?\b((?:https?|ftp|file):\/\/[-a-z0-9+&@#\/%?=~_()|!:,.;]*[-a-z0-9+&@#\/%=~_()|])/ig; return text.replace(re, function(match, lParens, url) { var rParens = ''; …
arumi
  • 1
  • 1