需要preV,下一步按钮上面的软键盘android系统 [英] Need Prev,Next button above soft keyboard in android

查看:284
本文介绍了需要preV,下一步按钮上面的软键盘android系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示虚拟键盘时用preV,键盘上方的下一个按钮。当用户点击$ P $光伏按钮,光标应该移动到previous的EditText输入字段并点击下一步按钮应该去下一个领域的EditText在视图中。

I want to show the virtual keyboard with Prev, Next Buttons above the keyboard. When the user clicks prev button, cursor should move to the previous edittext input field and clicking on next button should go to the next edittext field in the view.

如果我们打开Android浏览器的任何页面,询问输入,我们可以看到这种键盘。

IF we open any page in android browser which asks input, we can see this kind of keyboard.

我需要为我创造了正常的活动来实现。我想知道如何做到这一点?

I need that to be implemented for the normal activity which I created. May I know how to do this ?

谢谢,
Senthil.M

Thanks, Senthil.M

推荐答案

有关下一个按钮只需添加一行文字编辑文本字段

For Next Button just add one line to your edit text field

   EditText et1 = (EditText)findViewById(R.id.editText1);
    et1.setImeOptions(EditorInfo.IME_ACTION_NEXT);
   EditText et2 = (EditText)findViewById(R.id.editText2);
    et2.setImeOptions(EditorInfo.IME_ACTION_NEXT);

和我M还搜索约previous按钮
请查看

and i m also search about previous Button Please check

添加按钮到Android软键盘

这篇关于需要preV,下一步按钮上面的软键盘android系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆