Questions tagged [fromhtml]

44 questions
0
votes
0 answers

How to add HTML dependencies like images and css with HtmlSpanner?

I have the source code of index.html, the css file, the images, etc. But I do not know how to "add" the dependencies of index.html in Htmlspanner to allow them to be included in the final rendering, using the Android library HtmlSpanner …
Herz.
  • 1
  • 1
0
votes
1 answer

How to open an URL using fromHTML?

I want to open url using Html.fromHtml()also the particular text between tags should be green in color and not underline. How can I do that right now I'm doing like this: consent = consent.replace("", "
blackHawk
  • 6,047
  • 13
  • 57
  • 100
0
votes
1 answer

Android - LinkMovementMethod.getInstance() open automatically browser when user release scroll on a link

It's a usability problem I've used LinkMovementMethod.getInstance() to allow the textview scroll and the URLS clickable (to open the browser), the problem is that's creates a confusion, when the user RELEASE the scroll on a link it automatically…
Rodrigo João Bertotti
  • 5,179
  • 2
  • 23
  • 34
0
votes
1 answer

NoClassDefFoundError Html.fromHtml android

My code was working fine a day ago but now my application crashes with particular error when I try to use to populate html text inside my TextView i am using android JellyBean 4.4 Exception: E/UncaughtException: java.lang.NoClassDefFoundError: …
Mehvish Ali
  • 732
  • 2
  • 10
  • 34
0
votes
1 answer

Android 6 strips link from text with Html.fromHtml() method

What I want Open gmail with a certain text that contains anchors. What I expect I expected that text is shown in Gmail with a anchor to a website. Problem On Android 4.1.2 (and maybe al other android 4 devices) it works really well, but on Android 6…
Extranion
  • 588
  • 8
  • 25
0
votes
1 answer

How to convert html contents including divs and ng-grids/tables to pdf using jspdf

I want to convert entire html page to pdf. Thanks to stackoverflow, i got idea, but i want to convert both divs and ng-grids. Try1: While including both in specialElementHandlers, data and column headers in grid are not displayed properly in pdf.…
newbie
  • 13
  • 3
0
votes
1 answer

Jspdf - fromHtml() - Pdf with single page

I have a problem when I use the fromHtml function jspdf he only writes the first page in the PDF , the rest appears as blank pages. In older versions of the plugin do not, the problem that these versions do not have css and are not compatible with…
luizluan
  • 21
  • 7
0
votes
1 answer

Picaso with ImageGetter in TextView from JSON

Again, I've been trying to find answers all over the net. However I can't seem to find one to match my issue. Basically, I have a list of emoticons from an API I'm using and I'm trying to get these images to be displayed in a TextView which just…
BilalMH
  • 175
  • 1
  • 21
0
votes
0 answers

Set text in TextView using Html.fromHtml get fail

I have an string as Test 1 < 2 (1<2)


Best Regards, and I want to display it on a TextView, expected result must be Test 1 < 2 (1<2) Best Regards, I had used text.setText(Html.fromHtml(mString)); to archive but my output is…
ThaiPD
  • 3,503
  • 3
  • 30
  • 48
0
votes
3 answers

ANDROID--How to take one part of html tag with fromHtml?

I want to take one part of description from html tag. But I do not know how can I apply it? Here is my Html tag: İstanbul Çağlayan Adliyesi’nde teröristler tarafından silahla vurularak öldürülen savcı Mehmet Selim Kiraz’ın babası hastanede…
serdanarik
  • 45
  • 1
  • 9
0
votes
1 answer

use of HtmlSpanner with an css file added to it

HtmlSpanner with css I have found an library called HtmlSpanner that should help me with adding a html string with css to a TextView. but i cant find any documentation on it except (new HtmlSpanner()).fromHtml() but nothing on how to include a css…
quantum apps
  • 938
  • 2
  • 13
  • 25
0
votes
3 answers

Android Textview HTML not displaying colors?

I am using like this it should show green color but showing black all rgb values are dynamic(web service) same code working in browser(W3 SCHOOLS) mytextview.setText(Html .fromHtml("
SHASHIDHAR MANCHUKONDA
  • 3,302
  • 2
  • 19
  • 40
-1
votes
2 answers

Text is not in center in my view using fromHtml()

I am setting a textview with fromHtml(), and my TextView is not set in center. In below image you can show space bigger below of paragraf text, I don't know how to resolve this issue, other normal text it's fine but fromHtml its leave some space not…
Mohit Suthar
  • 8,725
  • 10
  • 37
  • 67
-3
votes
1 answer

Android Html.fromHtml(String) doesnt work

I want to set String with HTML tags effects. By using following method I am not able to do that. Its showing me normal text. @SuppressWarnings("deprecation") public static Spanned fromHtml(String html){ Spanned result; if…
Priyanka
  • 81
  • 2
  • 11
1 2
3