how can I put a newline into a format string

by Mark Murphy » Tue, 09 Mar 2010 04:00:16 GMT


Sponsored Links
 


Out of curiosity -- where are you seeing this list of supported HTML
tags? Html.fromHtml() mentions special handling of <img> but otherwise
does not mention any specific tags it supports. If there is a definitive
list for it, I'd love to know!


Personally, I didn't even realize that existed. Thanks!

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training...At Your Office:  http://commonsware.com/training 

--



how can I put a newline into a format string

by Mark Murphy » Thu, 11 Mar 2010 11:07:15 GMT


 


10, actually -- 9 on the second page you linked to, plus <img> as
mentioned in Html.fromHtml()'s documentation. And I know that <font>
works, at least for the color attribute, based on some StackOverflow
support issues.

And examining the source code, in addition to the above, I see
references to <div>, <p>, <blockquote>, <font size="" face="">, <em>,
<strong>, <cite>, <dfn>, <h1> through <h6>, ...and <br>. <br> is
supposed to inject \n as a newline.

In a nutshell, the docs are out of sync with the source.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Beginning Android_ from Apress Now Available!

--


Sponsored Links


Other Threads

1. How to track URL in each landing page in Webview

Hi,

I am working on webview android application and I am successfully able to
load a URL in that webview ,and when i click a link in the webview, i want
to capture the new URL string.

for example,
i search in google and browser opens in webview with multiple search links,
now i click on a link and google opens that link,,,in that scenario,i want
to capture that opening link

bottom point is i am trying to open next link in new webview,just like
tabbed browsing.

 Can any one halp me to solve this issue.

Thanks..
Shivaprasad.

-- 

2. URGENT....REQ............Android

*Hi friends *



                Please send profiles matching the below requirements to *
ppadmanab...@hexacorp.com*

Title                       : *Android*

Location                *:** San Diego or Silicon Valley*

Duration               : *1 year + *

Rate                     : *$48/hr*



Description:





         Experts in Android

          Multimedia/Graphics optimization experience

          Browser optimization experience







*Skills*





*Must Have Skills*

Android OS, Kernel level, Multimedia/Graphics, browser optimization





Desirable

Writing drivers onAndroid, Libraries, Application framework





Soft Skills

Communication, go-getter





Project Details / Description

Integration of Android on the new generation smartphone platforms





Client Domain

Cellular/3G wireless





Visa Restrictions

None





Security Clearance €
None





Travel

None

% of Travel :





Any Other Information

Strong, experienced enggs needed





















*Regards,*

*PADHU*

*IT- Recruiter*

*Email:ppadmanab...@hexacorp.com <email%3appadmanab...@hexacorp.com>*

**

*IT Consulting MSSharePoint Services e-Learning Custom Content
Development***

*200,CentennialAve,Suite 200,Piscataway, NJ - 08854 | **Mobile 9940563104 |
visit us at **www.hexacorp.com* <http://www.hexacorp.com/>**

-- 

3. HTML5 video support

4. Android logo copyright/trademark

5. Change default Contact Application in Eclipse

6. Setting Translucent Theme from Java

7. Change Default Package Name of R.java