From 13a741999480343ccebd81ff6349b572bde17b07 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 24 May 2011 21:08:20 +0900 Subject: [PATCH] Use custom theme for Keyboard theme switch This change reduces the number of layout files and make these theme-generic. This might be very helpful to re-design suggestion strip. Bug: 4175031 Change-Id: Idca10a4aa0bf7ac496eedd1879311e59780a423b --- ...d_popup.xml => btn_keyboard_key_popup.xml} | 2 +- ...l => btn_keyboard_key_popup_honeycomb.xml} | 2 +- java/res/layout-xlarge/candidate.xml | 59 ------------- java/res/layout-xlarge/candidate_preview.xml | 29 ------- java/res/layout-xlarge/candidates.xml | 2 +- java/res/layout/candidate.xml | 4 +- java/res/layout/candidate_preview.xml | 5 +- java/res/layout/candidates.xml | 2 +- java/res/layout/input_basic.xml | 38 -------- java/res/layout/input_gingerbread.xml | 39 --------- java/res/layout/input_honeycomb.xml | 46 ---------- java/res/layout/input_stone_bold.xml | 44 ---------- java/res/layout/input_stone_normal.xml | 43 --------- ..._basic_highcontrast.xml => input_view.xml} | 6 +- java/res/layout/key_preview.xml | 2 +- java/res/layout/key_preview_honeycomb.xml | 29 ------- java/res/layout/keyboard_popup.xml | 8 +- java/res/layout/keyboard_popup_honeycomb.xml | 40 --------- java/res/layout/keyboard_popup_stone.xml | 40 --------- java/res/values/attrs.xml | 15 +++- java/res/values/styles.xml | 87 ++++++++++++++++++- java/res/values/themes.xml | 67 ++++++++++++++ .../keyboard/KeyboardSwitcher.java | 19 ++-- .../keyboard/LatinKeyboardView.java | 10 +-- .../keyboard/PopupMiniKeyboardView.java | 2 +- 25 files changed, 194 insertions(+), 446 deletions(-) rename java/res/drawable/{btn_keyboard_key_gingerbread_popup.xml => btn_keyboard_key_popup.xml} (94%) rename java/res/drawable/{btn_keyboard_key_honeycomb_popup.xml => btn_keyboard_key_popup_honeycomb.xml} (93%) delete mode 100644 java/res/layout-xlarge/candidate.xml delete mode 100644 java/res/layout-xlarge/candidate_preview.xml delete mode 100644 java/res/layout/input_basic.xml delete mode 100644 java/res/layout/input_gingerbread.xml delete mode 100644 java/res/layout/input_honeycomb.xml delete mode 100644 java/res/layout/input_stone_bold.xml delete mode 100644 java/res/layout/input_stone_normal.xml rename java/res/layout/{input_basic_highcontrast.xml => input_view.xml} (86%) delete mode 100644 java/res/layout/key_preview_honeycomb.xml delete mode 100644 java/res/layout/keyboard_popup_honeycomb.xml delete mode 100644 java/res/layout/keyboard_popup_stone.xml create mode 100644 java/res/values/themes.xml diff --git a/java/res/drawable/btn_keyboard_key_gingerbread_popup.xml b/java/res/drawable/btn_keyboard_key_popup.xml similarity index 94% rename from java/res/drawable/btn_keyboard_key_gingerbread_popup.xml rename to java/res/drawable/btn_keyboard_key_popup.xml index 9b6d23beb..860cfd5d5 100644 --- a/java/res/drawable/btn_keyboard_key_gingerbread_popup.xml +++ b/java/res/drawable/btn_keyboard_key_popup.xml @@ -1,5 +1,5 @@ - - - - -