Comments (3)
I would imagine that when you long click the link and the text selection happens, the TextView
loses focus, so the click event goes off. Hmm. I am not really sure how to solve this, admittedly. I know that you can long click any non-linked text and then drag to select the linked text that way, but that is different from what you are asking about.
In my apps, I just set up a long click listener for the link that brings up a contextual menu where one of the actions is copy. I feel like if the user is long clicking a link, they will see that it is highlighted and they would not expect it to react the same way as regular text. I think it is perfectly justified - and expected - to pop up some kind of AlertDialog
or bottom sheet to handle the long click actions on the link. Your users will expect a different experience here, it isn't normal text that they are clicking, it is linked text.
from android-textview-linkbuilder.
Does that help you with your issue? I am going to close this, if so.
from android-textview-linkbuilder.
Your answer was quite helpful though it didn't solve my problem. I guess I will have to try few more alternatives to achieve what is needed or go with what you suggested. Deeply appreciate you help and quick response.
from android-textview-linkbuilder.
Related Issues (20)
- That not support use in Fargment because of the LinkBuilder . you should correct this. HOT 2
- it gives NullPointerException when clicked a link for fragment transaction in a recycler view HOT 3
- 有没有设置背景色的方法,如果没有,楼主是否方便加下 HOT 1
- Cancel long press monitor
- Misjudgment trigger long click listener
- After setting the link, maxlines and ellipsize-> end Settings are invalid. HOT 10
- Clickable area is small
- Support for Case insensitive text link HOT 1
- how to set the background when click? HOT 1
- How to get the position of text clicked? HOT 1
- How can i add a icon to a link HOT 2
- Lib doesn't work with UrlSpan
- java.lang.AbstractMethodError: HOT 1
- java.lang.AbstractMethodError: HOT 1
- It's difficult to click when the replace words show in two lines
- Dismiss DialogFragment by link click crashes the app
- More than one file was found with OS independent path 'META-INF/library_release.kotlin_module'
- img
- Obfuscated configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-textview-linkbuilder.