Android 在我自己的应用程序中以编程方式隐藏鼠标指针

发布于 2024-12-12 17:50:21 字数 522 浏览 0 评论 0原文

我知道这里有一个类似的问题: 以编程方式在 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"!)

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?

Any ideas would be greatly appreciated

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷爱 2024-12-19 17:50:21

那么 - 有什么方法可以让我的应用程序摆脱可见的鼠标指针(无论是对于它自己还是对于所有情况,我不在乎 - 这个应用程序是他们想要在手机上运行的唯一东西)。如果我无法隐藏它,我可以将其移动到角落,或者可以将其更改为看起来像纯白框而不是箭头,还是其他东西?

所有这一切都可以通过定制固件来实现。通过 Android SDK,这一切都是不可能的。

只需将“无线键盘/触控板”替换为不带触控板的键盘/触控板,您可能会得到更好的服务。

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?

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文