36 Star 70 Fork 22

ijarobot / project_252764

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
ijarobot 提交于 2014-12-11 22:50 . add tips

Android-Chat-Widget

An Android Chat Widget, like WhatsApp \ Line \ WeChat

Demo

How to use?

1.In Layout

 <com.jialin.chat.MessageInputToolBox
    android:id="@+id/messageInputToolBox"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" 
  />

2.In Activity

	/**
	 * init MessageInputToolBox
	 */
	private void initMessageInputToolBox() {
		box = (MessageInputToolBox) findViewById(R.id.messageInputToolBox);

		box.setOnOperationListener(new OnOperationListener() {

			@Override
			public void send(String content) {
				// TODO
			}

			@Override
			public void selectedFace(String content) {
				// TODO
			}

			@Override
			public void selectedFuncation(int index) {
				// TODO
			}

		});

		box.setFaceData(faceData);

		box.setFunctionData(functionData);
	}

Tips

Run Android-Chat-Widget-Example, need reference android-support-v7-appcompat project

Blog

http://jingdl.com/blog/2014/12/06/android-liao-tian-kong-jian-android-chat-widget/

Android
1
https://gitee.com/justinqiu/Android-Chat-Widget.git
git@gitee.com:justinqiu/Android-Chat-Widget.git
justinqiu
Android-Chat-Widget
project_252764
master

搜索帮助