Android在我自己的应用中以编程方式隐藏鼠标指针 [英] Android Hide mouse pointer programmatically in my own app

查看:258
本文介绍了Android在我自己的应用中以编程方式隐藏鼠标指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这里有一个类似的问题:在Android屏幕上移动鼠标指针,但这似乎并不能满足我的需求(特别是因为答案是不可能"!)

I know there is a similar question here: Moving mouse pointer on Android screen programatically but it doesn't seem to answer my needs (particularly because the answer was "not possible"!)

我的客户有一个Android手机,该手机通过某种蓝牙软件狗连接到无线键盘/触控板.一切正常,我已经编写了一些软件来对按键做出反应.问题在于客户端不希望在屏幕上看到鼠标光标(该特定键盘将掩盖除少数几个按钮以外的所有按钮,并将其用作遥控器,无法使用触控板,因此指针位于屏幕的中间).屏幕无用).

My client has an Android phone which is connected via some sort of bluetooth dongle to a wireless keyboard/trackpad. This is all working fine and I have written some software to react to keypresses. The problem is that the client is NOT interested in seeing a mouse cursor on the screen (this particular keyboard will have all except a few buttons covered up and will function as a remote control, the trackpad is inaccessible so the pointer sits in the middle of the screen uselessly).

所以-我的应用程序有什么方法可以摆脱可见的鼠标指针(无论是针对自身还是在所有情况下,我都不在乎-这个应用程序是他们唯一希望在手机上运行的东西).如果我无法隐藏它,可以将其移至某个角,还是可以将其更改为看起来像纯白色框而不是箭头,还是其他?

So - is there any way for my app to get rid of the visible mouse pointer (either just for itself or for all cases, I don't care - this app is the only thing they want running on the phone). If I can't hide it can I move it to a corner, or can I change it to look like a plain white box instead of an arrow, or something else?

任何想法都将不胜感激

谢谢

推荐答案

所以-我的应用程序有什么方法可以摆脱可见的鼠标指针(无论是针对自身还是在所有情况下,我都不在乎-这个应用程序是他们唯一希望在手机上运行的东西).如果我无法隐藏它,可以将其移至某个角,还是可以将其更改为看起来像纯白色框而不是箭头,还是其他?

So - is there any way for my app to get rid of the visible mouse pointer (either just for itself or for all cases, I don't care - this app is the only thing they want running on the phone). If I can't hide it can I move it to a corner, or can I change it to look like a plain white box instead of an arrow, or something else?

所有这些都可以通过自定义固件来实现.通过Android SDK无法做到这一点.

All of this may be possible with custom firmware. None of this is possible via the Android SDK.

简单地用一个没有触控板的无线键盘/触控板"来为您服务.

You may be better served simply by replacing the "wireless keyboard/trackpad" with one that does not have a trackpad.

这篇关于Android在我自己的应用中以编程方式隐藏鼠标指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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