如何Facebook的Messenger的绘制chathead? (Android版) [英] How does Facebook Messenger draw a chathead? (Android)

查看:509
本文介绍了如何Facebook的Messenger的绘制chathead? (Android版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这已经被问了很多次这里的计算器,但我着迷的Facebook Messenger的如何绘制Chatheads。

I know this has already been asked a lot of times here on StackOverflow, but I'm fascinated how Facebook Messenger draws the Chatheads.

我跟着这个教程以放置的ImageView为覆盖。然而,拖拽它的非常不畅,不像Chatheads这表现出无比流畅的动画效果。

I followed this tutorial to place an ImageView as an overlay. However, dragging it around is very sluggish, unlike Chatheads which show extremely smooth animation.

打开显示GPU视图更新,在开发人员选项选项闪烁的屏幕,同时被拖动一个Chathead。然而,拖着ImageView的不会触发任何闪烁。

Turning on the "Show GPU view updates" option in Developer options flashes the screen while a Chathead is being dragged. However, dragging my ImageView doesn't trigger any flashing.

下面是一个小的截屏: https://dl.dropboxusercontent.com/u /13595927/temp/TRIM_20140225_134543.mp4

Here's a small screencast: https://dl.dropboxusercontent.com/u/13595927/temp/TRIM_20140225_134543.mp4

我尝试设置层类型 LAYER_TYPE_SOFTWARE ,但它并没有改变任何东西。还有什么我缺少什么?

I tried setting the layer type to LAYER_TYPE_SOFTWARE, but it didn't change anything. What else am I missing?

推荐答案

我chathead像Facebook信使:

https://github.com/henrychuangtw/FB-ChatHead


my chathead like facebook messenger :
https://github.com/henrychuangtw/FB-ChatHead


  • 拖动和弹跳动画





  • 使者:显示文本和sendtext


    结果




    • 龙pressing停止


    这篇关于如何Facebook的Messenger的绘制chathead? (Android版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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