需要的Andr​​oid code表情弹出窗口 [英] Android code is needed smileys pop up window

查看:135
本文介绍了需要的Andr​​oid code表情弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个聊天应用程序。我想有弹出与它表情窗口,这样,当用户点击表情之一,它会被插入到编辑文本框。

I am developing a chat application. And i want to have pop up window with smileys in it so that when user clicks on one of smileys it will be inserted to edit text box.

有谁知道样品code呢?

Does anyone know sample code for it?

我想code为弹出窗口和code到embbed表情中的应用程序。
(同雅虎的情况下,这已smileys.how至code它,以及如何将它们存储在数据库和所有)

I wanted code for both pop up window and code to embbed smileys in an application. (same as in case of yahoo which has smileys.how to code for it and how to store them in database and all)

推荐答案

看看的的 PopupWindow 。你想用它以类似的方式向本教程此处的 http://www.mobilemancer.com/2011/01/08/popup-window-in-android/

Take a look at the PopupWindow. You'll want to use it in similar fashion to this tutorial here: http://www.mobilemancer.com/2011/01/08/popup-window-in-android/.

我要和你绘制的图像填充它,然后附加到每个图像创建的 onClickListener 将插入笑脸成任何文本窗口中使用。

I would populate it with your drawable images, and then attach to each image you create a onClickListener that would insert the smiley into whatever text window your using.

我不是Android的专家,我还在学习自己,但是这是一个方法我会进行调查。

I'm not an Android expert, and I'm still learning myself, but this is one approach I would investigate.

这篇关于需要的Andr​​oid code表情弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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