机器人:可点击浮动图标在屏幕上? [英] Android : Floating Clickable Icon over Screen?

查看:144
本文介绍了机器人:可点击浮动图标在屏幕上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个Android应用程序名为智能任务栏,它成功地引脚上的小图标半透明在屏幕上......图标保持在可见的所有该activites(包括主屏幕)。图标是可点击(/触摸式),而且它popopen一个小的弹出窗口,用户可以交互。

There's an Android Application called Smart Taskbar that manages to Pin a small SemiTransparent Icon over the screen...The icon remains visible over ALL the activites (including the home screen). The Icon is Clickable (/Touchable), and it does popopen a Small Popup window which the user can interact with.

我在如何做到这一点很感兴趣?我认为这件事情与 PopupWindow

I'm very interested in how this is done? I think it's something to with PopupWindow.

任何想法?在此先感谢。

Any ideas? Thanks in Advance.

推荐答案

我最近尝试了这一点。

I recently experimented with this.

请参阅这个问题:<一href="http://stackoverflow.com/questions/4481226/creating-a-system-overlay-always-on-top-button-in-android">creating系统覆盖(总在最前)在Android的按钮 - 该解决方案几乎是一样的,但你需要设置 TYPE_SYSTEM_ALERT 在布局PARAMS <$代替C $ C> TYPE_SYSTEM_OVERLAY 。

See this question: creating a system overlay (always on top) button in android - the solution is virtually the same, but you need to set TYPE_SYSTEM_ALERT in the layout params instead of TYPE_SYSTEM_OVERLAY.

这篇关于机器人:可点击浮动图标在屏幕上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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