本文整理了Java中android.widget.TextView.onEditorAction()
方法的一些代码示例,展示了TextView.onEditorAction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.onEditorAction()
方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:onEditorAction
暂无
代码示例来源:origin: robolectric/robolectric
@Test
public void shouldTriggerTheImeListener() {
TestOnEditorActionListener actionListener = new TestOnEditorActionListener();
textView.setOnEditorActionListener(actionListener);
textView.onEditorAction(EditorInfo.IME_ACTION_GO);
assertThat(actionListener.textView).isSameAs(textView);
assertThat(actionListener.sentImeId).isEqualTo(EditorInfo.IME_ACTION_GO);
}
代码示例来源:origin: stackoverflow.com
v.onEditorAction(actionId);
break;
v.onEditorAction(actionId);
break;
代码示例来源:origin: stackoverflow.com
public boolean performEditorAction(int actionCode) {
if (DEBUG) Log.v(TAG, "performEditorAction " + actionCode);
mTextView.onEditorAction(actionCode);
return true;
内容来源于网络,如有侵权,请联系作者删除!