Facebook Messenger如何绘制聊天头? (机器人) [英] How does Facebook Messenger draw a chathead? (Android)
问题描述
我遵循了教程将ImageView作为叠加层。但是,拖动它是非常缓慢,不同于显示非常流畅的动画的Chatheads。
打开显示GPU视图更新选项当拖动聊天头时,开发人员选项会闪烁屏幕。但是,拖动我的ImageView不会触发任何闪烁。
这是一个小的截屏: https://dl.dropboxusercontent.com/u/13595927/temp/TRIM_20140225_134543.mp4
我尝试将图层类型设置为 LAYER_TYPE_SOFTWARE
,但没有改变任何内容。我还缺少什么?
我的聊天头像facebook messenger:
https://github.com/henrychuangtw/FB-ChatHead
- 拖动和反弹动画
- 信使:显示文字和发送文字$ $ $ b
- LongPressing to停止
- LongPressing to停止
I know this has already been asked a lot of times here on StackOverflow, but I'm fascinated how Facebook Messenger draws the 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.
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.
Here's a small screencast: https://dl.dropboxusercontent.com/u/13595927/temp/TRIM_20140225_134543.mp4
I tried setting the layer type to LAYER_TYPE_SOFTWARE
, but it didn't change anything. What else am I missing?
my chathead like facebook messenger :
https://github.com/henrychuangtw/FB-ChatHead
- Dragging and Bounce animation
- Messenger : show text and sendtext
- LongPressing to Stop
- LongPressing to Stop
这篇关于Facebook Messenger如何绘制聊天头? (机器人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!