In the SpanableString variable, click here. http://go.com" is included I'd like to change "http://go.com" to the text "link" and show it to you. Inside, we would like to keep "http://go.com" as is.
When I searched, I could see the Span that changes the text color or text size in a specific part, but I couldn't find the Span that changes the text itself. I ask for your help me.
android textview spannablestring
It would be possible to implement a custom span by inheriting ClickableSapn. For an example of saving Url in Span and moving when a click event occurs, check the code in the following link.
© 2024 OneMinuteCode. All rights reserved.