diff options
| author | Jean Chalard <jchalard@google.com> | 2014-03-10 04:03:32 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-10 04:03:32 +0000 |
| commit | 30c86ad4754e228ecc0ff07ecb3d76ea37a619e0 (patch) | |
| tree | 48efb6640c532157564b8f74513da7f9ccea6cb6 /core/java/android/view/View.java | |
| parent | 6f91cedfeba3accca5e627093b8958428d3a4edb (diff) | |
| parent | 6fd68e0930a0260437a50b3a0e3edbac073dfcec (diff) | |
Merge "Improve doc for EditorInfo#initialSel{Start,End}"
Diffstat (limited to 'core/java/android/view/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 975d5190d16a..9b45f9778825 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8705,7 +8705,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * * <p>When implementing this, you probably also want to implement * {@link #onCheckIsTextEditor()} to indicate you will return a - * non-null InputConnection. + * non-null InputConnection.</p> + * + * <p>Also, take good care to fill in the {@link android.view.inputmethod.EditorInfo} + * object correctly and in its entirety, so that the connected IME can rely + * on its values. For example, {@link android.view.inputmethod.EditorInfo#initialSelStart} + * and {@link android.view.inputmethod.EditorInfo#initialSelEnd} members + * must be filled in with the correct cursor position for IMEs to work correctly + * with your application.</p> * * @param outAttrs Fill in with attribute information about the connection. */ |
