Android - Add click inside text that looks all the same -


i have text multilingual , so, different sizes. text occupies 3 lines , defined in 3 separate parts, now, separated. have text in same flow. problem here that, part in middle of text clickable , don't know how without separating text , 3 blocks , text looks this:

lorem ipsum dummy text of printing , typesetting industry                lorem ipsum dummy text (<--link) of printing , typesetting industry 

as text single flow make together.

could me?

thanks!


use android:autolink="web"

put string in resources this:

    <string name="yourstring">lorem ipsum , <a href="http://example.com">link</a></string> 

<textview     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:autolink="web"     android:linksclickable="true"     android:text="@string/yourstring" /> 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -