本文整理匯總了Java中android.inputmethodservice.Keyboard.Row方法的典型用法代碼示例。如果您正苦於以下問題:Java Keyboard.Row方法的具體用法?Java Keyboard.Row怎麽用?Java Keyboard.Row使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.inputmethodservice.Keyboard
的用法示例。
在下文中一共展示了Keyboard.Row方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createKeyFromXml
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
@Override
protected Keyboard.Key createKeyFromXml(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
LatinKey key = new LatinKey(res, parent, x, y, parser);
final int code = key.codes[0];
if (code >= 0 && code != '\n' && (code < 32 || code > 127)) {
key.label = " ";
key.setEnabled(false);
}
switch (key.codes[0]) {
case KEYCODE_ENTER:
mEnterKey = key;
break;
}
return key;
}
示例2: LatinKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public LatinKey(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
super(res, parent, x, y, parser);
if (popupCharacters != null && popupCharacters.length() == 0) {
// If there is a keyboard with no keys specified in popupCharacters
popupResId = 0;
}
}
示例3: PuffKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public PuffKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) {
super(res, parent, x, y, parser);
if(this.label == null && this.icon == null) {
this.icon = new ColorDrawable(Color.argb(0xff, 0, 0, 0));
this.iconPreview = this.icon;
}
}
示例4: LatinKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public LatinKey(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
super(res, parent, x, y, parser);
if (popupCharacters != null && popupCharacters.length() == 0) {
// If there is a keyboard with no keys specified in popupCharacters
popupResId = 0;
}
}
示例5: LatinKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public LatinKey(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
super(res, parent, x, y, parser);
}
示例6: LatinKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public LatinKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) {
super(res, parent, x, y, parser);
}
示例7: ArabicKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public ArabicKey(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
super(res, parent, x, y, parser);
}
示例8: smKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public smKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) {
super(res, parent, x, y, parser);
}
示例9: BhoKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public BhoKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) {
super(res, parent, x, y, parser);
}
示例10: LatinKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public LatinKey(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
super(res, parent, x, y, parser);
}
示例11: createKeyFromXml
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
@Override
protected Keyboard.Key createKeyFromXml(Resources res, Keyboard.Row parent, int x, int y,
XmlResourceParser parser) {
Keyboard.Key key = new PuffKey(res, parent, x, y, parser);
return key;
}
示例12: HangulKey
import android.inputmethodservice.Keyboard; //導入方法依賴的package包/類
public HangulKey(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser) {
super(res, parent, x, y, parser);
}