Skip to content

ijarobot/Android-Chat-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/android-liao-tian-kong-jian-android-chat-widget/

About

An Android Chat Widget, like WhatsApp \ Line \ WeChat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages