Opensource a test tool called EditTextVariations
This CL opensouces a testing tool called EditTextVariations that has
been used internally to test IME behaviors on various
EditorInfo#inputType and EditorInfo#imeOptions.
Bug: 80039502
Test: Manually verified as follows.
1. tapas EditTextVariations
2. make -j
3. adb install -r $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
Change-Id: Ia87e655573c2fd1fc09d56e4af90bfb1dfd65f9b
diff --git a/tools/EditTextVariations/assets/Theme.css b/tools/EditTextVariations/assets/Theme.css
new file mode 100644
index 0000000..b7aa514
--- /dev/null
+++ b/tools/EditTextVariations/assets/Theme.css
@@ -0,0 +1,56 @@
+<!--
+/*
+**
+** Copyright 2014, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+body {
+ background-color: black;
+}
+div.placeholder {
+ color: #a0a0a0;
+ font-size: 18px;
+ margin: 0px 0px -34px 0px;
+ padding: 4px 0px 4px 0px
+}
+div.input {
+ border: none;
+ margin: 4px 0px 4px -8px;
+}
+input {
+ color: black;
+ background-color: white;
+ font-size: 18px;
+ line-height: 200%;
+ vertical-align: center;
+ padding-left: 8px;
+ border-top: none;
+ border-right: none;
+ border-bottom: none;
+ border-left: none;
+}
+textarea {
+ color: black;
+ background-color: white;
+ font-size: 18px;
+ line-height: 150%;
+ vertical-align: center;
+ padding-left: 8px;
+ border-top: none;
+ border-right: none;
+ border-bottom: none;
+ border-left: none;
+}