diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-07-07 23:51:04 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-07 23:51:06 +0000 |
commit | f2474d336a7df696f3897e2cd255d138eb3fac02 (patch) | |
tree | a05837e54a05ded8a9b2ffc0f52c7dad1176695c /core/java/android/view | |
parent | b2f9c284cdf1835e48ebbc6b3995590a1b308bf2 (diff) | |
parent | 6f0fdc4167ad906fc7409856e86cd0cc601c3b53 (diff) | |
download | frameworks_base-f2474d336a7df696f3897e2cd255d138eb3fac02.zip frameworks_base-f2474d336a7df696f3897e2cd255d138eb3fac02.tar.gz frameworks_base-f2474d336a7df696f3897e2cd255d138eb3fac02.tar.bz2 |
Merge "Implement better handling of text in assist." into mnc-dev
Diffstat (limited to 'core/java/android/view')
-rw-r--r-- | core/java/android/view/ViewStructure.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/view/ViewStructure.java b/core/java/android/view/ViewStructure.java index 794622a..2e4ba74 100644 --- a/core/java/android/view/ViewStructure.java +++ b/core/java/android/view/ViewStructure.java @@ -178,6 +178,17 @@ public abstract class ViewStructure { public abstract void setTextStyle(float size, int fgColor, int bgColor, int style); /** + * Set line information for test that was previously supplied through + * {@link #setText(CharSequence)}. This provides the line breaking of the text as it + * is shown on screen. This function takes ownership of the provided arrays; you should + * not make further modification to them. + * + * @param charOffsets The offset in to {@link #setText} where a line starts. + * @param baselines The baseline where the line is drawn on screen. + */ + public abstract void setTextLines(int[] charOffsets, int[] baselines); + + /** * Set optional hint text associated with this view; this is for example the text that is * shown by an EditText when it is empty to indicate to the user the kind of text to input. */ |