From fe4d5defd07962d622182bcc9a4eb8027ba23e8d Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Mon, 1 Nov 2010 11:29:24 -0700 Subject: Multiline EditText have top and bottom brackets to differentiate from single line. Change-Id: Iab6da75e7a823018221399c0b03dd47f7f768f21 --- core/java/android/widget/TextView.java | 9 ++++++++ .../drawable-hdpi/textfield_active_holo_dark.9.png | Bin 0 -> 1095 bytes .../textfield_active_holo_light.9.png | Bin 0 -> 1095 bytes .../textfield_default_holo_dark.9.png | Bin 187 -> 1082 bytes .../textfield_default_holo_light.9.png | Bin 184 -> 1088 bytes .../textfield_disabled_focused_holo_dark.9.png | Bin 0 -> 1081 bytes .../textfield_disabled_focused_holo_light.9.png | Bin 0 -> 1080 bytes .../textfield_disabled_holo_dark.9.png | Bin 245 -> 1069 bytes .../textfield_disabled_holo_light.9.png | Bin 236 -> 1078 bytes .../textfield_disabled_selected_holo_dark.9.png | Bin 235 -> 0 bytes .../textfield_disabled_selected_holo_light.9.png | Bin 233 -> 0 bytes .../textfield_multiline_active_holo_dark.9.png | Bin 0 -> 1124 bytes .../textfield_multiline_active_holo_light.9.png | Bin 0 -> 1122 bytes .../textfield_multiline_default_holo_dark.9.png | Bin 0 -> 1128 bytes .../textfield_multiline_default_holo_light.9.png | Bin 0 -> 1120 bytes ...ield_multiline_disabled_focused_holo_dark.9.png | Bin 0 -> 1113 bytes ...eld_multiline_disabled_focused_holo_light.9.png | Bin 0 -> 1113 bytes .../textfield_multiline_disabled_holo_dark.9.png | Bin 0 -> 1117 bytes .../textfield_multiline_disabled_holo_light.9.png | Bin 0 -> 1128 bytes core/res/res/drawable-hdpi/textfield_pressed.9.png | Bin 3986 -> 0 bytes .../textfield_pressed_holo_dark.9.png | Bin 179 -> 0 bytes .../textfield_pressed_holo_light.9.png | Bin 187 -> 0 bytes .../textfield_selected_holo_dark.9.png | Bin 179 -> 0 bytes .../textfield_selected_holo_light.9.png | Bin 187 -> 0 bytes core/res/res/drawable-ldpi/textfield_pressed.9.png | Bin 642 -> 0 bytes .../drawable-mdpi/textfield_active_holo_dark.9.png | Bin 0 -> 1070 bytes .../textfield_active_holo_light.9.png | Bin 0 -> 1073 bytes .../textfield_default_holo_dark.9.png | Bin 165 -> 1068 bytes .../textfield_default_holo_light.9.png | Bin 165 -> 1071 bytes .../textfield_disabled_focused_holo_dark.9.png | Bin 0 -> 1075 bytes .../textfield_disabled_focused_holo_light.9.png | Bin 0 -> 1075 bytes .../textfield_disabled_holo_dark.9.png | Bin 214 -> 1067 bytes .../textfield_disabled_holo_light.9.png | Bin 206 -> 1069 bytes .../textfield_disabled_selected_holo_dark.9.png | Bin 228 -> 0 bytes .../textfield_disabled_selected_holo_light.9.png | Bin 219 -> 0 bytes .../textfield_multiline_active_holo_dark.9.png | Bin 0 -> 1103 bytes .../textfield_multiline_active_holo_light.9.png | Bin 0 -> 1105 bytes .../textfield_multiline_default_holo_dark.9.png | Bin 0 -> 1101 bytes .../textfield_multiline_default_holo_light.9.png | Bin 0 -> 1106 bytes ...ield_multiline_disabled_focused_holo_dark.9.png | Bin 0 -> 1110 bytes ...eld_multiline_disabled_focused_holo_light.9.png | Bin 0 -> 1110 bytes .../textfield_multiline_disabled_holo_dark.9.png | Bin 0 -> 1090 bytes .../textfield_multiline_disabled_holo_light.9.png | Bin 0 -> 1107 bytes core/res/res/drawable-mdpi/textfield_pressed.9.png | Bin 1040 -> 0 bytes .../textfield_pressed_holo_dark.9.png | Bin 185 -> 0 bytes .../textfield_pressed_holo_light.9.png | Bin 185 -> 0 bytes .../textfield_selected_holo_dark.9.png | Bin 185 -> 0 bytes .../textfield_selected_holo_light.9.png | Bin 185 -> 0 bytes core/res/res/drawable/edit_text.xml | 7 ++---- core/res/res/drawable/edit_text_holo_dark.xml | 11 ++++------ core/res/res/drawable/edit_text_holo_light.xml | 11 ++++------ .../res/drawable/edit_text_multiline_holo_dark.xml | 24 +++++++++++++++++++++ .../drawable/edit_text_multiline_holo_light.xml | 24 +++++++++++++++++++++ core/res/res/values/attrs.xml | 5 ++++- core/res/res/values/styles.xml | 1 + core/res/res/values/themes.xml | 7 ++++-- 56 files changed, 77 insertions(+), 22 deletions(-) create mode 100644 core/res/res/drawable-hdpi/textfield_active_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_active_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_disabled_focused_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_disabled_focused_holo_light.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_disabled_selected_holo_dark.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_disabled_selected_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_active_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_active_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_default_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_default_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_light.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_dark.9.png create mode 100644 core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_light.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_pressed.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_pressed_holo_dark.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_pressed_holo_light.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_selected_holo_dark.9.png delete mode 100644 core/res/res/drawable-hdpi/textfield_selected_holo_light.9.png delete mode 100644 core/res/res/drawable-ldpi/textfield_pressed.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_active_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_active_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_disabled_focused_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_disabled_selected_holo_dark.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_disabled_selected_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_active_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_active_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_default_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_default_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_light.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_dark.9.png create mode 100644 core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_light.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_pressed.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_pressed_holo_dark.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_pressed_holo_light.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_selected_holo_dark.9.png delete mode 100644 core/res/res/drawable-mdpi/textfield_selected_holo_light.9.png create mode 100644 core/res/res/drawable/edit_text_multiline_holo_dark.xml create mode 100644 core/res/res/drawable/edit_text_multiline_holo_light.xml diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index b143325ae071..fbc8549a96e3 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -305,6 +305,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener int mTextSelectHandleRes; int mTextEditPasteWindowLayout; int mTextEditNoPasteWindowLayout; + Drawable mEditTextMultilineBackground; + Drawable mEditTextSingleLineBackground; Drawable mSelectHandleLeft; Drawable mSelectHandleRight; @@ -751,6 +753,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener mTextEditNoPasteWindowLayout = a.getResourceId(attr, 0); break; + case com.android.internal.R.styleable.TextView_multilineBackground: + mEditTextMultilineBackground = a.getDrawable(attr); + break; + case com.android.internal.R.styleable.TextView_textLineHeight: int lineHeight = a.getDimensionPixelSize(attr, 0); if (lineHeight != 0) { @@ -765,6 +771,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } a.recycle(); + mEditTextSingleLineBackground = getBackground(); BufferType bufferType = BufferType.EDITABLE; final int variation = @@ -6192,12 +6199,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener if (applyTransformation) { setTransformationMethod(SingleLineTransformationMethod.getInstance()); } + setBackgroundDrawable(mEditTextSingleLineBackground); } else { setMaxLines(Integer.MAX_VALUE); setHorizontallyScrolling(false); if (applyTransformation) { setTransformationMethod(null); } + setBackgroundDrawable(mEditTextMultilineBackground); } } diff --git a/core/res/res/drawable-hdpi/textfield_active_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_active_holo_dark.9.png new file mode 100644 index 000000000000..a38c03ac15dc Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_active_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_active_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_active_holo_light.9.png new file mode 100644 index 000000000000..6a88a695bfd0 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_active_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_default_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_default_holo_dark.9.png index 7ec219242167..87d9c21b47c5 100644 Binary files a/core/res/res/drawable-hdpi/textfield_default_holo_dark.9.png and b/core/res/res/drawable-hdpi/textfield_default_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_default_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_default_holo_light.9.png index c03e4f6bb4b2..720ee781383a 100644 Binary files a/core/res/res/drawable-hdpi/textfield_default_holo_light.9.png and b/core/res/res/drawable-hdpi/textfield_default_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_disabled_focused_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_disabled_focused_holo_dark.9.png new file mode 100644 index 000000000000..4275da07e6b1 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_disabled_focused_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_disabled_focused_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_disabled_focused_holo_light.9.png new file mode 100644 index 000000000000..3ec9c1f711f1 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_disabled_focused_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_disabled_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_disabled_holo_dark.9.png index 664271762622..227bde2043d6 100644 Binary files a/core/res/res/drawable-hdpi/textfield_disabled_holo_dark.9.png and b/core/res/res/drawable-hdpi/textfield_disabled_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_disabled_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_disabled_holo_light.9.png index 957275241b31..6ddfab0fb637 100644 Binary files a/core/res/res/drawable-hdpi/textfield_disabled_holo_light.9.png and b/core/res/res/drawable-hdpi/textfield_disabled_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_disabled_selected_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_disabled_selected_holo_dark.9.png deleted file mode 100644 index 0ad248c16051..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_disabled_selected_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/textfield_disabled_selected_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_disabled_selected_holo_light.9.png deleted file mode 100644 index b7a07c4a0bd8..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_disabled_selected_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_active_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_multiline_active_holo_dark.9.png new file mode 100644 index 000000000000..7528479d0b25 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_active_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_active_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_multiline_active_holo_light.9.png new file mode 100644 index 000000000000..4c7d9e78172b Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_active_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_default_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_multiline_default_holo_dark.9.png new file mode 100644 index 000000000000..09ca253edbc5 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_default_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_default_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_multiline_default_holo_light.9.png new file mode 100644 index 000000000000..0a7d3a18c162 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_default_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_dark.9.png new file mode 100644 index 000000000000..54a1519abfb4 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_light.9.png new file mode 100644 index 000000000000..06ca0d407a09 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_disabled_focused_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_dark.9.png new file mode 100644 index 000000000000..9015299a0022 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_light.9.png new file mode 100644 index 000000000000..b355cb398e41 Binary files /dev/null and b/core/res/res/drawable-hdpi/textfield_multiline_disabled_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/textfield_pressed.9.png b/core/res/res/drawable-hdpi/textfield_pressed.9.png deleted file mode 100644 index a42d87f05f41..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_pressed.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/textfield_pressed_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_pressed_holo_dark.9.png deleted file mode 100644 index a271ac9bfe45..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_pressed_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/textfield_pressed_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_pressed_holo_light.9.png deleted file mode 100644 index 521722dcaa4e..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_pressed_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/textfield_selected_holo_dark.9.png b/core/res/res/drawable-hdpi/textfield_selected_holo_dark.9.png deleted file mode 100644 index a271ac9bfe45..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_selected_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-hdpi/textfield_selected_holo_light.9.png b/core/res/res/drawable-hdpi/textfield_selected_holo_light.9.png deleted file mode 100644 index 521722dcaa4e..000000000000 Binary files a/core/res/res/drawable-hdpi/textfield_selected_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable-ldpi/textfield_pressed.9.png b/core/res/res/drawable-ldpi/textfield_pressed.9.png deleted file mode 100644 index 1433365208b2..000000000000 Binary files a/core/res/res/drawable-ldpi/textfield_pressed.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_active_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_active_holo_dark.9.png new file mode 100644 index 000000000000..d37c8b2bb98a Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_active_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_active_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_active_holo_light.9.png new file mode 100644 index 000000000000..16f2197ae371 Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_active_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_default_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_default_holo_dark.9.png index 3a5f36d38db2..c98c951dbbb8 100644 Binary files a/core/res/res/drawable-mdpi/textfield_default_holo_dark.9.png and b/core/res/res/drawable-mdpi/textfield_default_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_default_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_default_holo_light.9.png index b8cc76f83699..7691f81418d1 100644 Binary files a/core/res/res/drawable-mdpi/textfield_default_holo_light.9.png and b/core/res/res/drawable-mdpi/textfield_default_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_disabled_focused_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_disabled_focused_holo_dark.9.png new file mode 100644 index 000000000000..500ede31ae4e Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_disabled_focused_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png new file mode 100644 index 000000000000..99f7f38e526c Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_disabled_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_disabled_holo_dark.9.png index a1f0c71a82f3..fab86acae8e5 100644 Binary files a/core/res/res/drawable-mdpi/textfield_disabled_holo_dark.9.png and b/core/res/res/drawable-mdpi/textfield_disabled_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_disabled_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_disabled_holo_light.9.png index 71e310397ddd..876eb79418f0 100644 Binary files a/core/res/res/drawable-mdpi/textfield_disabled_holo_light.9.png and b/core/res/res/drawable-mdpi/textfield_disabled_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_disabled_selected_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_disabled_selected_holo_dark.9.png deleted file mode 100644 index ac6d406aa434..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_disabled_selected_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_disabled_selected_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_disabled_selected_holo_light.9.png deleted file mode 100644 index bb6e9531deef..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_disabled_selected_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_active_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_multiline_active_holo_dark.9.png new file mode 100644 index 000000000000..2646899c4ac3 Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_active_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_active_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_multiline_active_holo_light.9.png new file mode 100644 index 000000000000..374d457d121f Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_active_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_default_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_multiline_default_holo_dark.9.png new file mode 100644 index 000000000000..65c87badc80e Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_default_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_default_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_multiline_default_holo_light.9.png new file mode 100644 index 000000000000..724b3fd9de99 Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_default_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_dark.9.png new file mode 100644 index 000000000000..5f0ad56d65fb Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_light.9.png new file mode 100644 index 000000000000..df03a15f2d9f Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_disabled_focused_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_dark.9.png new file mode 100644 index 000000000000..2cc7f62f81e9 Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_light.9.png new file mode 100644 index 000000000000..a2d9d8af07d8 Binary files /dev/null and b/core/res/res/drawable-mdpi/textfield_multiline_disabled_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/textfield_pressed.9.png b/core/res/res/drawable-mdpi/textfield_pressed.9.png deleted file mode 100644 index c909ad2a5d54..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_pressed.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_pressed_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_pressed_holo_dark.9.png deleted file mode 100644 index 7667d958854d..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_pressed_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_pressed_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_pressed_holo_light.9.png deleted file mode 100644 index 269affd70c36..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_pressed_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_selected_holo_dark.9.png b/core/res/res/drawable-mdpi/textfield_selected_holo_dark.9.png deleted file mode 100644 index 7667d958854d..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_selected_holo_dark.9.png and /dev/null differ diff --git a/core/res/res/drawable-mdpi/textfield_selected_holo_light.9.png b/core/res/res/drawable-mdpi/textfield_selected_holo_light.9.png deleted file mode 100644 index 269affd70c36..000000000000 Binary files a/core/res/res/drawable-mdpi/textfield_selected_holo_light.9.png and /dev/null differ diff --git a/core/res/res/drawable/edit_text.xml b/core/res/res/drawable/edit_text.xml index 315278d5444d..e9ba84b6326d 100644 --- a/core/res/res/drawable/edit_text.xml +++ b/core/res/res/drawable/edit_text.xml @@ -15,11 +15,8 @@ --> - - - + + diff --git a/core/res/res/drawable/edit_text_holo_dark.xml b/core/res/res/drawable/edit_text_holo_dark.xml index b7d24ffa0ac4..63ccd1d6ba01 100644 --- a/core/res/res/drawable/edit_text_holo_dark.xml +++ b/core/res/res/drawable/edit_text_holo_dark.xml @@ -15,14 +15,11 @@ --> - - - - + + + - + diff --git a/core/res/res/drawable/edit_text_holo_light.xml b/core/res/res/drawable/edit_text_holo_light.xml index dae39e32e283..324acda1c857 100644 --- a/core/res/res/drawable/edit_text_holo_light.xml +++ b/core/res/res/drawable/edit_text_holo_light.xml @@ -15,14 +15,11 @@ --> - - - - + + + - + diff --git a/core/res/res/drawable/edit_text_multiline_holo_dark.xml b/core/res/res/drawable/edit_text_multiline_holo_dark.xml new file mode 100644 index 000000000000..67d274891bfa --- /dev/null +++ b/core/res/res/drawable/edit_text_multiline_holo_dark.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/core/res/res/drawable/edit_text_multiline_holo_light.xml b/core/res/res/drawable/edit_text_multiline_holo_light.xml new file mode 100644 index 000000000000..08b3ec68d885 --- /dev/null +++ b/core/res/res/drawable/edit_text_multiline_holo_light.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 0b6120277c83..55b3258e86d8 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -142,6 +142,8 @@ + + - + +