Android 聊天控件:Android-Chat-Widget

jopen 9年前

Android-Chat-Widget 是像微信、WhatsApp、Line一样的聊天控件。

Demo

Android 聊天控件:Android-Chat-Widget

如何使用?

1.在Layout中

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

2.在 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);      }

项目主页:http://www.open-open.com/lib/view/home/1417953105839