summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2018-12-13 15:53:16 -0800
committerYohei Yukawa <yukawa@google.com>2018-12-13 15:53:16 -0800
commitb7a284e37a0e2127c58722b44ea24176a0be86a2 (patch)
tree465e97eabc8b5f6e7dbe58d31a421b8381021b23 /core/java/android/inputmethodservice
parent6230c94e4c76193d7343ed4efce1164519a3b4c0 (diff)
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
Diffstat (limited to 'core/java/android/inputmethodservice')
-rw-r--r--core/java/android/inputmethodservice/Keyboard.java11
-rw-r--r--core/java/android/inputmethodservice/KeyboardView.java6
2 files changed, 14 insertions, 3 deletions
diff --git a/core/java/android/inputmethodservice/Keyboard.java b/core/java/android/inputmethodservice/Keyboard.java
index 51d33b2f1d4a..3f25113874e8 100644
--- a/core/java/android/inputmethodservice/Keyboard.java
+++ b/core/java/android/inputmethodservice/Keyboard.java
@@ -16,8 +16,6 @@
package android.inputmethodservice;
-import org.xmlpull.v1.XmlPullParserException;
-
import android.annotation.UnsupportedAppUsage;
import android.annotation.XmlRes;
import android.content.Context;
@@ -27,10 +25,12 @@ import android.content.res.XmlResourceParser;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.text.TextUtils;
+import android.util.DisplayMetrics;
import android.util.Log;
import android.util.TypedValue;
import android.util.Xml;
-import android.util.DisplayMetrics;
+
+import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.ArrayList;
@@ -59,7 +59,12 @@ import java.util.StringTokenizer;
* @attr ref android.R.styleable#Keyboard_keyHeight
* @attr ref android.R.styleable#Keyboard_horizontalGap
* @attr ref android.R.styleable#Keyboard_verticalGap
+ * @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 Keyboard {
static final String TAG = "Keyboard";
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 {
/**