From b7a284e37a0e2127c58722b44ea24176a0be86a2 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Thu, 13 Dec 2018 15:53:16 -0800 Subject: Deprecate android.inputmethodservice.{Keyboard,KeyboardView} This CL deprecates the following two classes. * android.inputmethodservice.Keyboard * android.inputmethodservice.KeyboardView Most likely having these classes in the Android Framework does not make much sense anymore, because basically it is just one implementation of how keyboard-like UI can be implemented on top of public Android APIs. Source code of these classes have been available as part os AOSP. Thus it should not be that difficult for app developers to have their own copy of these classes in their project or re-implement a similar widget by themselves. Fix: 116815596 Test: make -j checkbuild Change-Id: Ie0cb0456c2cc4eacd4b188514508021774f60591 --- core/java/android/inputmethodservice/KeyboardView.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android/inputmethodservice/KeyboardView.java') diff --git a/core/java/android/inputmethodservice/KeyboardView.java b/core/java/android/inputmethodservice/KeyboardView.java index 9ca804975b7a..45f067b95298 100644 --- a/core/java/android/inputmethodservice/KeyboardView.java +++ b/core/java/android/inputmethodservice/KeyboardView.java @@ -65,7 +65,13 @@ import java.util.Map; * @attr ref android.R.styleable#KeyboardView_keyTextColor * @attr ref android.R.styleable#KeyboardView_verticalCorrection * @attr ref android.R.styleable#KeyboardView_popupLayout + * + * @deprecated This class is deprecated because this is just a convenient UI widget class that + * application developers can re-implement on top of existing public APIs. If you have + * already depended on this class, consider copying the implementation from AOSP into + * your project or re-implementing a similar widget by yourselves */ +@Deprecated public class KeyboardView extends View implements View.OnClickListener { /** -- cgit v1.2.3