android.widget.TextView.onKeyDown()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(266)

本文整理了Java中android.widget.TextView.onKeyDown()方法的一些代码示例,展示了TextView.onKeyDown()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.onKeyDown()方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:onKeyDown

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);
}

相关文章

TextView类方法