开发者

Android : Floating Clickable Icon over Screen?

开发者 https://www.devze.com 2023-01-17 00:32 出处:网络
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

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.

I'm ve开发者_Python百科ry interested in how this is done? I think it's something to with PopupWindow.

Any ideas? Thanks in Advance.


I recently experimented with this.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消