question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android display issue with hyper link

See original GitHub issue

Given a html text I shared some of my (perhaps terrible) <a href=\"https://twitter.com/rrhoover/status/924678180073455617\">ideas on Twitter</a> earlier today.

Result screen shot 2017-11-05 at 11 00 11 am

The hyper link takes up one line.

Expected result The hyper link is inline with other texts

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
dbof10commented, Feb 19, 2018

That’s valid. Thanks

1reaction
isilhercommented, Feb 19, 2018

Currently, the library expects valid HTML, meaning it should be wrapped in a single top level tag. Not doing so will break lines for all first level tags (not just <a>) as the RootComponent default is a View (not inline styled). If you have no control over the source, you could wrap value before passing it to the HTMLView component:

<HTMLView
  value={`<div>${value}</div>`}
  stylesheet={stylesheet}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Clickable links - Android Accessibility Help - Google Support
Android offers developers several different ways to display text that is styled and behaves as a hyperlink. Some approaches support accessibility services more ......
Read more >
Can't open links in Android apps? Here's what to do!
If you can't open links on Android apps, make sure to inspect WebView, clear data from Google Services, or reset app preferences.
Read more >
How to make links in a TextView clickable - Stack Overflow
Buried in the API demos, I found the solution to my problem: File Link.java: // text2 has links specified by putting <a> tags...
Read more >
9 Ways to Fix “No App Found to Open URL” in Android
1. Force-Close Android Apps and Retry ... It's best to begin by force-quitting the browser or app that displays the “No App Found...
Read more >
Handling Android App Links
Overview · Load and display paged data · Page from network and database · Transform data streams · Manage and present loading states...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found