如何跟踪虚拟键盘的向下箭头按钮? [英] How to track the down arrow button in virtual keyboard?

查看:606
本文介绍了如何跟踪虚拟键盘的向下箭头按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上面的图我要听的向下箭头(我已在红色,用来隐藏键盘关键的一条标有它)。我曾试图把它通过菜单选项,viewconfiguration类等行动,但它是没有用的。有没有什么方法,听众或任何回调事件追踪此按钮。请让我知道您的建议和想法。在这方面的任何帮助是非常AP preciable

In the above figure i want to listen for down arrow( i have marked it in red colour, the key one which is used to hide the keyboard). I have tried to get it action through menu options, viewconfiguration class etc. But it is not useful. Is there any method, listeners or any callback event to track this button. Please let me know your suggestions and thoughts. Any help in this regard is highly appreciable

inAdvance

Thanks inAdvance

推荐答案

如果我不是你说的这个方法

If I am not you talking about this method

public boolean onKeyDown(int keyCode, KeyEvent event) {
super.onKeyDown(keyCode, event);
    switch(keyCode)
    {

    case KeyEvent.KEYCODE_BACK:
     Toast.makeText(KeyActions.this, "Pressed Back Button", Toast.LENGTH_SHORT).show();

        return true;
    }

    return false;
}

这篇关于如何跟踪虚拟键盘的向下箭头按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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