Android的:如何绘制免费的东西(的活动)顶部 [英] Android: How to draw free on top of anything (any activity)

查看:116
本文介绍了Android的:如何绘制免费的东西(的活动)顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何画一个观点上的所有其他活动前,无论他们所呈现出的与不使用透明的活动或消费的触摸事件。

How do you draw a view on top of all other activities regardless of what they are showing and without using transparent activities or consuming its touch events.

这就像当你触摸它的反应,但你仍然可以触摸屏幕上的其它视图显示在所有其他应用程序的顶部屏幕上的自定义图标。

Its like to display a custom icon on the screen on top of all other apps that reacts when you touch it but you can still touch the other views on the screen.

示例:在屏幕上显示一个dragable和可点击的图标,无论你在做什么,你是否在主屏幕或应用程序菜单或任何应用程序,Facebook的聊天头。不过,你可以点击聊天头图标,后台程序元素分开

Example: facebook chat heads that displays a dragable and clickable icon on screen regardless of what you are doing whether you are on home screen or app menus or any app. Still you can click the chat head icon and background app elements seperately

如何做类似的东西?

推荐答案

看看这个很酷的文章,我认为这正是你想要的:

Take a look at this cool article, I think that's exactly what you want :

http://www.piwai.info/chatheads-basics/

这篇关于Android的:如何绘制免费的东西(的活动)顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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