本文整理了Java中android.widget.TextView.onKeyDown()
方法的一些代码示例,展示了TextView.onKeyDown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.onKeyDown()
方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:onKeyDown
暂无
代码示例来源:origin: libgdx/libgdx
@Override
public boolean onKeyDown (int keyCode, KeyEvent event) {
Log.d("Test", "down keycode: " + event.getKeyCode());
return super.onKeyDown(keyCode, event);
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean onKeyDown (int keyCode, KeyEvent event) {
Log.d("Test", "down keycode: " + event.getKeyCode());
return super.onKeyDown(keyCode, event);
}
代码示例来源:origin: robolectric/robolectric
@Implementation
protected boolean onKeyDown(int keyCode, KeyEvent event) {
previousKeyCodes.add(keyCode);
previousKeyEvents.add(event);
return directlyOn(realTextView, TextView.class).onKeyDown(keyCode, event);
}
代码示例来源:origin: WeAreFairphone/FP2-Launcher
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
return FocusHelper.handleTabKeyEvent(this, keyCode, event)
|| super.onKeyDown(keyCode, event);
}
代码示例来源:origin: fookwood/Launcher3
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (super.onKeyDown(keyCode, event)) {
// Pre-create shadow so show immediately on click.
if (mPressedBackground == null) {
mPressedBackground = mOutlineHelper.createMediumDropShadow(this);
}
return true;
}
return false;
}
代码示例来源:origin: WeAreFairphone/FP2-Launcher
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (super.onKeyDown(keyCode, event)) {
// Pre-create shadow so show immediately on click.
if (mPressedBackground == null) {
mPressedBackground = mOutlineHelper.createMediumDropShadow(this);
}
return true;
}
return false;
}
代码示例来源:origin: klinker24/Android-Blur-Launcher
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (super.onKeyDown(keyCode, event)) {
// Pre-create shadow so show immediately on click.
if (mPressedBackground == null) {
mPressedBackground = mOutlineHelper.createMediumDropShadow(this);
}
return true;
}
return false;
}
代码示例来源:origin: enricocid/LaunchEnr
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (super.onKeyDown(keyCode, event)) {
// Pre-create shadow so show immediately on click.
if (mPressedBackground == null) {
mPressedBackground = mOutlineHelper.createMediumDropShadow(this);
}
return true;
}
return false;
}
代码示例来源:origin: klinker24/launcher3
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (super.onKeyDown(keyCode, event)) {
// Pre-create shadow so show immediately on click.
if (mPressedBackground == null) {
mPressedBackground = mOutlineHelper.createMediumDropShadow(this);
}
return true;
}
return false;
}
代码示例来源:origin: org.robolectric/framework
@Implementation
public boolean onKeyDown(int keyCode, KeyEvent event) {
previousKeyCodes.add(keyCode);
previousKeyEvents.add(event);
return directlyOn(realTextView, TextView.class).onKeyDown(keyCode, event);
}
代码示例来源:origin: org.robolectric/shadows-core
@Implementation
public boolean onKeyDown(int keyCode, KeyEvent event) {
previousKeyCodes.add(keyCode);
previousKeyEvents.add(event);
return directlyOn(realTextView, TextView.class).onKeyDown(keyCode, event);
}
代码示例来源:origin: org.robolectric/shadows-framework
@Implementation
protected boolean onKeyDown(int keyCode, KeyEvent event) {
previousKeyCodes.add(keyCode);
previousKeyEvents.add(event);
return directlyOn(realTextView, TextView.class).onKeyDown(keyCode, event);
}
代码示例来源:origin: org.robolectric/shadows-core-v23
@Implementation
public boolean onKeyDown(int keyCode, KeyEvent event) {
previousKeyCodes.add(keyCode);
previousKeyEvents.add(event);
return directlyOn(realTextView, TextView.class).onKeyDown(keyCode, event);
}
内容来源于网络,如有侵权,请联系作者删除!