喜欢的WhatsApp,Viber的,Facebook的聊天泡泡 [英] Bubbles like whatsapp, viber, facebook chat

查看:581
本文介绍了喜欢的WhatsApp,Viber的,Facebook的聊天泡泡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个聊天气泡状Viber的,WhatsApp的和Facebook聊天有。请看看这个截图:

最后气泡不具有箭头。我想知道,如果这些气泡是9片图像或东西是编程制作。我用Google搜索了一段时间,但我不能准确地找到这一形象,寿它在许多应用程序(Viber的,WhatsApp的)。

相同

我的第二个问题是,如何创建,在其中显示,如果该消息已交付的气泡底线。它是与Html.fromHtml()内(一个为底线)的ImageButton的?它是有两个TextViews一个LinearLayout中?

我也在寻找这些✓✓。 Viber的WhatsApp的和有相同的,但它似乎并没有为UTF。它是一个图像可能?

THX。

解决方案
  

我想知道,如果这些气泡是9片图像或东西   这是编程制作

泡沫(用箭头和无)是九补丁。

  

我的第二个问题是,我该如何创建一个底线,其中显示,如果该消息已交付的气泡。

在这个泡沫底部的消息状态是的ImageView ,从没有✓一个✓,然后当邮件到达的两个接收器变为图像✓✓显示图像。

I am trying to create a chat bubble like viber, whatsapp and facebook chat have. Please look at this screenshot:

The last bubble does not have an arrow. I am wondering if those bubbles are a 9-patch images or something which is made programmatically. I have googled a while but I cannot find exactly this image, tho it is the same in many apps (viber, whatsapp).

My second question is, how do I create that bottom line in the bubbles which shows if the message has been delivered. Is it an ImageButton with Html.fromHtml() inside (a for bottom line)? Is it a LinearLayout with two TextViews?

I am also searching for these ✓✓. Viber and WhatsApp have the same, but it does not seem to be utf. Is it an image maybe?

Thx.

解决方案

I am wondering if those bubbles are a 9-patch images or something which is made programmatically

The bubble (with the the arrow and without) are nine-patches.

My second question is, how do I create that bottom line in the bubbles which shows if the message has been delivered.

the message status at the bottom of this bubble is an ImageView that changes from no ✓ to an image with one ✓ and then when the message arrived to the receiver the two ✓✓ image is shown.

这篇关于喜欢的WhatsApp,Viber的,Facebook的聊天泡泡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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