aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-05-26 22:56:13 +0900
committersatok <satok@google.com>2010-05-27 12:06:58 +0900
commitf22d479e48c2cd951f64e4f4a2b1202e7860c240 (patch)
tree57b17867ff0fcc37609191e14e365db9868ccac9 /java/src/com/android/inputmethod/latin/LatinKeyboardView.java
parentb72f348467888d6f759f8b287ec94425c2748ec0 (diff)
downloadlatinime-f22d479e48c2cd951f64e4f4a2b1202e7860c240.tar.gz
latinime-f22d479e48c2cd951f64e4f4a2b1202e7860c240.tar.xz
latinime-f22d479e48c2cd951f64e4f4a2b1202e7860c240.zip
Log and UI fix
- add Log entry for the setting of auto completion - fix the parameter names - reduce the time to commit - copy popup window's resources from framework - change extention window to use the current layout Change-Id: I5f52c41dc8027c28a874ba8f198471eb3c9bdd1e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardView.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index 323f4bf6b..6e3226ae5 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -65,6 +65,8 @@ public class LatinKeyboardView extends KeyboardView {
/** The y coordinate of the last row */
private int mLastRowY;
+ private int mExtensionLayoutResId = 0;
+
public LatinKeyboardView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@@ -77,6 +79,10 @@ public class LatinKeyboardView extends KeyboardView {
mPhoneKeyboard = phoneKeyboard;
}
+ public void setExtentionLayoutResId (int id) {
+ mExtensionLayoutResId = id;
+ }
+
@Override
public void setKeyboard(Keyboard k) {
super.setKeyboard(k);
@@ -294,7 +300,8 @@ public class LatinKeyboardView extends KeyboardView {
mExtensionPopup.setBackgroundDrawable(null);
LayoutInflater li = (LayoutInflater) getContext().getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
- mExtension = (LatinKeyboardView) li.inflate(R.layout.input_trans, null);
+ mExtension = (LatinKeyboardView) li.inflate(mExtensionLayoutResId == 0 ?
+ R.layout.input_trans : mExtensionLayoutResId, null);
mExtension.setExtensionType(true);
mExtension.setOnKeyboardActionListener(
new ExtensionKeyboardListener(getOnKeyboardActionListener()));