<EditText android:id="@+id/some_edittext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:imeOptions="actionSend">
</EditText>


some_edittext.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_SEND) {
some_button.performClick();
}
return true;
}
});

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. android手电筒原理
  2. 70个具有商业实战性的精品Android源码
  3. android Pull解析复杂XML 转
  4. [android]组件之一Activity简介
  5. Android 线程学习
  6. 【Android】几种常见广播监听器(Wifi,亮
  7. 为Android加入busybox工具
  8. android view getWidth 和 getHeight 的
  9. Android单元测试之Testing和Instrumentat
  10. android apk编译