summaryrefslogtreecommitdiffstats
path: root/core/java/android/text/TextPaint.java
Commit message (Collapse)AuthorAgeFilesLines
* Bug 5281947: add to dictionnary option promoted in suggestions.Gilles Debunne2011-09-091-45/+6
| | | | | | | | | | | | | | | When several SuggestionSpans are available at a given position, their content are merged, in creation time order. As a result, the IME's suggestions are picked before the spell check, and no add to dictionnary option is created. This CL modifies the comparator to make easy correction spans appear first (Voice IME), then misspelled words and then regular suggestions. Also avoids the creation of a new comparator and length hash map on every display. Change-Id: I1f9f031a6fdcbbc09f248a192b83051092765f8e
* Bug 5250788: Fix memory consumption issues in TextPaint.Gilles Debunne2011-09-071-2/+9
| | | | | | | The increased size array was discarded in set. Reuse it instead if possible to avoid more size increases later. Change-Id: I9ab95ed0f4d4613dd1e28f02894bb19ecee7df41
* Add EditTextShortcutSpan to provide edit short cut in the text view.Luca Zanolin2011-08-301-12/+39
| | | | | | | | | | | At the moment, EditTextShortcutSpan allows only the deletion of the text. In the future, we may decide to add extra functionality, like "retry" where all the text is removed and a specific IME is triggered. Fix the underline. The underline is not defined in thickness, and not as a multiplier of the default underline thickness. Change the behaviour of SuggestionRangeSpan to match the specification. Change-Id: I80437d9887c7a2ff8f62c38afbb0cb7add7ee9c8
* Added support for colored / thick underlined text.Gilles Debunne2011-08-111-0/+30
| | | | Change-Id: Ib0e259dd20546855899bf091f694e41e7051fecb
* Make <font size> and <font height> in string resources respect density.Eric Fischer2009-08-121-0/+2
| | | | | | | | | | | | | | This unfortunately requires API changes because the existing text markup classes had no access to the screen density. TextPaint gains a "density" field so that TextView can pass the density along. AbsoluteSizeSpan gains a new flag to indicate that its argument is in dip instead of in physical pixels. LineHeightSpan gains an inner interface whose chooseHeight() method includes a TextPaint argument so it can get at the density. And when StringBlock creates the markup objects, it now uses the density-aware versions. Bug 1976971, Bug 2031746
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+55
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-55/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+55