UPDATE:大多数三星机器人具有"设置"按键太软键盘。如何拦截或禁用? [英] UPDATE : Most Samsung Androids have "Settings" button too in soft keyboard. How to intercept or disable that?

查看:111
本文介绍了UPDATE:大多数三星机器人具有"设置"按键太软键盘。如何拦截或禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ExitText全屏活动。当点击编辑文本(被聚焦)一softkeyboard显示出来。

I have a full screen activity with a ExitText. When edit text is clicked(gets focus) a softkeyboard shows up.

现在,在一些三星Android手机(ATLEAST两块我都用过),键盘也有一个小的设置按钮,将关闭您的活动,带你到手机的系统设置按钮。

Now, on some samsung android phones(atleast two that I have used), the keypad also has a small "Settings" button which will close your activity and take you to phone's system settings button.

我想拦截,当用户点击的这个设置软按钮,然后采取一些决定之前,我的活动被推迟到堆栈中。

I want to intercept when a user click's this "Settings" soft button and then take some decision before my activity gets pushed back to the stack.

这可能吗?如果是的话,怎么样?

Is it possible? If yes, how?

修改

我知道,在正常情况下它是一个糟糕的用户体验,并应避免。然而,我在溶液(技术面)更感兴趣。我不打算在市场上具有这样的事情启动应用,普通用户,所以请不要评论说我不应该这样做。

I know that in normal circumstance its a bad user experience and should be avoided. However, I am more interested in the solution (technology side). I am not going to launch an app in the market with such a thing for regular user, so please dont comment saying I should not do this.

我知道,开发商把这些评论在谁仍在学习用户的利益,但在某些情况下,它更多关于如何做到这一点?此方案只是其中之一。希望没有人会是我在一个错误的感觉说。日Thnx!

I know that developers put such comments in the benefit of the users who are still learning but in some cases, "Its more about HOW to do it?". This scenario is just one of them. Hope nobody takes what I said in a wrong sense. Thnx!

推荐答案

采用Android:inputType下=在活动的布局号和软键盘要么不会有设置键,否则将被禁止。我实现它,测试它的是三星手机(2.3.6)和解决方案适用于!

use android:inputType="number" in the layout of the activity and the soft keyboard either will not have the Settings key or it will be disabled. I implemented it and tested it on a samsung phone(2.3.6) and the solution works!

这篇关于UPDATE:大多数三星机器人具有"设置"按键太软键盘。如何拦截或禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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