aa0af8e86278d8b0935c95a5ff06c80532bf7733 |
|
14-Dec-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Use TextDirectionHeuristics to detect text direction in Html Previously, AndroidBidi was used instead, whch did a lot of extra work just to detect a paragraph's direction. TextDirectionHeuristics stops as soon as the direction is found, and avoids JNI too. Bug: 21455837 Test: cts-tradefed run cts-dev --module CtsTextTestCases --test android.text.cts.HtmlTest Change-Id: Iea196fb5ca43dca99e65a367a2da701b1c1b98b8
/frameworks/base/core/java/android/text/Html.java
|
4037d51b132a85dcfe37a95f9d2d91ad23d162fd |
|
12-Oct-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix imports in android.text package. This change also removes trailing whitespaces. Test: code still compiles Change-Id: I65f79a34288d01616808fa9cd6732ae4ef0f1377
/frameworks/base/core/java/android/text/Html.java
|
1eab97ac8edec59e3c0453af7c56e1a751e3fa85 |
|
03-Feb-2016 |
Daniel U <uda@google.com> |
Adopt HTML/CSS color values in fromHtml() - "green", "gray/grey", "lightgray/lightgrey", and "darkgray/darkgrey" have different values in HTML/CSS. - Adopt HTML/CSS color values according to user specified option flag. - Remove support to "@color" notation as it is not standard HTML/CSS. - Replace SPAN_MARK_MARK with SPAN_INCLUSIVE_EXCLUSIVE consistency. BUG:26950749 Change-Id: I5b33282368042f74f1b4768e096aae3e5bf45de6
/frameworks/base/core/java/android/text/Html.java
|
4a70f09e39ac7c5f57b0f6dd44475641c68afafd |
|
29-Jan-2016 |
Daniel U <uda@google.com> |
Tweak toHtml() paragraph conversion behavior For mode TO_HTML_PARAGRAPH_LINES_INDIVIDUAL: 1) Empty line outputs <br> instead of <p><br></p> 2) A <ul> element is closed if it is followed by a <br> 3) Explicit zero vertical margin is applied to <ul> instead of <li>'s 4) More deterministic way to encode AlignmentSpans: only spans with SPAN_PARAGRAPH flag is used. If multiple spans exist, the last one (which is added most recently) is used. BUG: 26224878 Change-Id: I86a2aeced9965ae465daac1ace64e5e41cf45caf
/frameworks/base/core/java/android/text/Html.java
|
8b36c0bbd1503c61c111feac939193c47f812190 |
|
01-Feb-2016 |
Daniel U <uda@google.com> |
Handle <span>, <ul>, and <li> tags in fromHtml() The vertical spacing of <ul> and <li> are determined by the FROM_HTML_SEPARATOR_* flags. Foreground color, background color, and text-decoration CSS attributes are parsed and converted into the corresponding spans. Change-Id: I93b232de15753ae510392cbacf45e7453d1ae067
/frameworks/base/core/java/android/text/Html.java
|
cf1fa60331b6ce935788c06fcdfd09817e104c8c |
|
21-Jan-2016 |
Daniel U <uda@google.com> |
Allow different paragraph breaks in fromHtml() - Separate block-level elements with different numbers of newline characters according to the user specified option flag. - Parse the ALIGN attribute and the CSS TEXT-ALIGN property to handle text alignment. - Rename "header" to the correct term "heading" Change-Id: I446fa97155e761623a1da6632a0d872a5e47e8af
/frameworks/base/core/java/android/text/Html.java
|
ca124ab1e25b4709c46de50ae8536d4a9338c8cb |
|
23-Dec-2015 |
Daniel U <uda@google.com> |
Encode BulletSpan in toHtml() conversion Changes in toHtml() conversion with TO_HTML_PARAGRAPH_LINES_INDIVIDUAL: - Wrap each paragraph inside a block-level element Each paragraph delimited by '\n' is now wrapped individually inside either a <p> or a <li> block to allow per-paragraph formatting. - Wrap paragraphs covered by BulletSpans as <li> instead of <p> blocks - Encode text alignment at paragraph level Instead of creating <div> blocks outside of the block quote level. - Encode AlignmentSpan as CSS style instead of the ALIGN attribute The ALIGN attribute is obsolete. Change-Id: I3a8b315224b762af99eda69cb19f5cf6b3f05dac
/frameworks/base/core/java/android/text/Html.java
|
b138e2877823a0e9f9d834059a64d4035556562b |
|
23-Dec-2015 |
Daniel U <uda@google.com> |
Enhance support to text size spans in toHtml() Convert AbsoluteSizeSpan to <span> with CSS font-size property with CSS px as the unit of measurement. Sizes measured in Android px are converted to dip, since there is no CSS unit which conveys the idea of a device pixel. Add support to RelativeSizeSpan, which converts to <span> with CSS font-size property with em as the unit of measurement. Change-Id: I9104cc5f9b00ab1a31929565dc49e0026466cc75
/frameworks/base/core/java/android/text/Html.java
|
5c02d7374f36672e8c3bab8c7cf519ed4a4d8ead |
|
22-Dec-2015 |
Daniel U <uda@google.com> |
Support more CharacterStyles in toHtml() conversion - Add support to convert BackgroundColorSpan - Convert StrikethroughSpan to <span> with CSS styling instead of <strike> - Convert ForegroundColorSpan to <span> with CSS styling instead of <font> Change-Id: I05ff6b97534df9ee586a552c7e6435aabca152ac
/frameworks/base/core/java/android/text/Html.java
|
2102de9e1f7444001a5408856c7cf47df050c4e2 |
|
17-Dec-2015 |
Daniel U <uda@google.com> |
Overload toHtml() & fromHtml() to accept option flags Overload the methods to take int option flags indicating the conversion behavior. This guards against large disruptions in legacy applications. Change-Id: I0f47180bbb78884b67aa200fe5156e903eeaa6f6
/frameworks/base/core/java/android/text/Html.java
|
5e9ed365ade5b0e24c2f6bd61f6dc36fb0f66c0f |
|
12-Aug-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Support strikethrough text in Html.fromHtml(). All the three tags, <del>, <s>, and <strike> are now converted to strikethrough text. Bug: 21025743 Change-Id: I62dc9793223e266f6e2181169766fde8be0e2aa7
/frameworks/base/core/java/android/text/Html.java
|
c55277d689dee83f58f63f56a0e26debff62aa56 |
|
11-Jul-2015 |
Raph Levien <raph@google.com> |
Improve Html.toHtml() documentation The existing documentation is very terse and users were getting confused whether the method escapes HTML metacharacters or not. Expand the description a bit and explicitly state that metacharacters are escaped. Bug: 17456925 Change-Id: Icaae7fe1344629de5c0860674f3913781de18013
/frameworks/base/core/java/android/text/Html.java
|
8e71a397c6542d6a37cd59ea8b53236ac2dba86a |
|
05-May-2015 |
Raph Levien <raph@google.com> |
Fix NPE in Html.inParagraph() The typeface in a TypefaceSpan can be the null string. This patch fixes the string comparison to not throw a NullPointerException. Bug: 20849738 Change-Id: Ied049305794966bcbca00cfd11fe97a91b685d79
/frameworks/base/core/java/android/text/Html.java
|
2243ae17a9df91d589c8580f3ae499b63de91166 |
|
19-Mar-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Make Html#toHTML() generate correct bidi directions. Previously, after the first paragraph, the the detected bidi direction of the text in the last paragraph was used, nstead of the detected bidi direction of the current one. Bug: 12027356 Change-Id: I51622a3156f1e321f53f7ca1855bc37aa6f77319
/frameworks/base/core/java/android/text/Html.java
|
4a357cd2e55293402d7172766f7f9419815fc1e8 |
|
19-Mar-2015 |
Alan Viverette <alanv@google.com> |
Replace usages of deprecated Resources.getColor() and getColorStateList() Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
/frameworks/base/core/java/android/text/Html.java
|
4656e69bf36d42a35c9290ab79eeb33b4cca1d5c |
|
08-Sep-2014 |
Elliott Hughes <enh@google.com> |
resolved conflicts for merge of 2008cff7 to lmp-dev-plus-aosp Change-Id: I5148eda624e8504f12dbc1288cd4a7a5b7c10850
|
d0646dca40ff740bd49755ad60751678b0ccca52 |
|
28-Aug-2014 |
Mark Doliner <mark@kingant.net> |
Small documentation fixes across many files. Change-Id: I3e8787ce4bc6018ea1dc9aef2a2cd4e0a8dde663
/frameworks/base/core/java/android/text/Html.java
|
776abc24cdd18610232a50b997cce3cffa74609b |
|
07-Mar-2014 |
Adam Lesinski <adamlesinski@google.com> |
Uses VMRuntime.newUnpaddedArray for ideal array sizes Bug:13028925 Change-Id: I0a9301248b10a339afbdc5e4ffe3310ac4fa1fb7
/frameworks/base/core/java/android/text/Html.java
|
6090995951c6e2e4dcf38102f01793f8a94166e1 |
|
19-Nov-2013 |
John Spurlock <jspurlock@google.com> |
Remove unused imports from frameworks/base. Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/core/java/android/text/Html.java
|
3d4764159c78857bbd3305f4fa9c11c70e742d88 |
|
29-Oct-2013 |
Victoria Lease <violets@google.com> |
Handle surrogate pairs in Html.toHtml() Bug: 11338711 Change-Id: Ia44187cbfe3db82d6bc11c1ae3a0fb59c0a6d371
/frameworks/base/core/java/android/text/Html.java
|
a8f6d5f0720f400b6f59b0809aaefea83c5f51d4 |
|
27-Nov-2012 |
Romain Guy <romainguy@google.com> |
Add support for face attribute to HTML string resources Bug #7480719 This change also adds the alias "color" for the attribute "fgcolor". This change also unifies HTML colors parsing between the Html class and StringBlock for consistency. Change-Id: I696a6e080387901d88e9baf7cb989b892f14b9db
/frameworks/base/core/java/android/text/Html.java
|
286da7b6f5389166afa2e71c11809a7db6acf3f8 |
|
08-Oct-2012 |
Raph Levien <raph@google.com> |
Fix for 7301594 Html.toHtml creating potentially invalid html Generate <p dir="rtl"> instead of <p dir=rtl>. The form with the quotes is cleaner and will reduce warnings in apps that consume the output. Change-Id: Ic9879c8c882c42079598b741e897a24415d96374
/frameworks/base/core/java/android/text/Html.java
|
acb69bb909d098cea284df47d794c17171d84c91 |
|
14-Apr-2012 |
Dianne Hackborn <hackbod@google.com> |
Add direct support for HTML formatted text in ClipData etc. When using the clipboard, ACTION_SEND, etc., you can now supply HTML formatted text as one of the representations. This is exposed as a set of methods on ClipData for building items with HTML formatted text, and retrieving and coercing to HTML (and styled) text. In addtion, there is a new EXTRA_HTML_TEXT for interoperating with the old ACTION_SEND protocol. Change-Id: I8846520a480c8a5f829ec1e693aeebd425ac170d
/frameworks/base/core/java/android/text/Html.java
|
cd4161b134387457bac9943db569afbfa427b87b |
|
29-Feb-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5371909 Hebrew & Arabic mails are sent as LTR intead of RTL - make paragraphs aware of text direction Change-Id: I0b0cf5a47c7da870dea836cb6150aa83e9de0e90
/frameworks/base/core/java/android/text/Html.java
|
dd808c0bd498854e878db257bbf82b73ea5000b4 |
|
06-Sep-2011 |
Romain Guy <romainguy@google.com> |
Prevent crash when using <em> or <strong> in spanned strings Bug #5258853 Change-Id: Ifde1efe9ba3b44cfa0be55d51b2c9696cbe096f5
/frameworks/base/core/java/android/text/Html.java
|
94d5e9ad6533864f098b99c231d69c77230a828f |
|
29-Aug-2011 |
Romain Guy <romainguy@google.com> |
Italic should be italic and bold should be bold. Change-Id: I68933a7d7c32951c4d52d945baaedcb2583caef4
/frameworks/base/core/java/android/text/Html.java
|
2269d1572e5fcfb725ea55f5764d8c3280d69f6d |
|
25-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Re-arrange android-common so framework no longer links with it. This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
/frameworks/base/core/java/android/text/Html.java
|
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 |
|
21-Dec-2009 |
Tom Taylor <tomtaylor@google.com> |
Update imports to android-common Several files were moved to android-common. Update all the references to import those files from the new location.
/frameworks/base/core/java/android/text/Html.java
|
9cab7f7684f046934e3d400482dbd1db67c93ee4 |
|
15-Jul-2009 |
Bjorn Bringert <bringert@android.com> |
Allow system colors in <font> tags Fixes http://b/issue?id=1970693
/frameworks/base/core/java/android/text/Html.java
|
00ba76670fd06d9c51cce36a74c384a212f705b5 |
|
26-Mar-2009 |
Eric Fischer <> |
Automated import from //branches/donutburger/...@142700,142700
/frameworks/base/core/java/android/text/Html.java
|
32048300e917c9181927ac017d02855bbde940ef |
|
25-Mar-2009 |
Satoshi Kataoka <> |
Automated import from //branches/donutburger/...@141195,141195
/frameworks/base/core/java/android/text/Html.java
|
105925376f8d0f6b318c9938c7b83ef7fef094da |
|
19-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@140373
/frameworks/base/core/java/android/text/Html.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/Html.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/Html.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/text/Html.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/android/text/Html.java
|