From eaac96f74fd0d8fade5f10b50b48479433bb4b4b Mon Sep 17 00:00:00 2001 From: KenChoi Date: Mon, 10 Jul 2017 14:05:49 +0800 Subject: [PATCH] update README --- Android/chatinput/README.md | 18 ++++++++++++++++++ Android/chatinput/README_EN.md | 14 ++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/Android/chatinput/README.md b/Android/chatinput/README.md index f33ed240..a349dd2e 100644 --- a/Android/chatinput/README.md +++ b/Android/chatinput/README.md @@ -111,6 +111,24 @@ chatInput.setMenuClickListener(new OnMenuClickListener() { ``` 关于上述事件的处理,可以参考 sample 中的 MessageListActivity 对于事件的处理。 + + +### OnClickEditTextListener + +监听输入框点击事件,点击输入框后触发此事件。用法: + +``` +mChatInput.setOnClickEditTextListener(new OnClickEditTextListener() { + @Override + public void onTouchEditText() { + mAdapter.getLayoutManager().scrollToPosition(0); + } + }); +``` + + + + ### RecordVoiceListener 这是录音的接口,使用方式: diff --git a/Android/chatinput/README_EN.md b/Android/chatinput/README_EN.md index 497be434..d9d553c3 100644 --- a/Android/chatinput/README_EN.md +++ b/Android/chatinput/README_EN.md @@ -123,6 +123,20 @@ chatInput.setMenuClickListener(new OnMenuClickListener() { As for how to handle these events and what to do with these events, you can refer sample project for detail. + + +### OnClickEditTextListener + +Callback of click EditText,fires when click EidtText, usage: + +``` +mChatInput.setOnClickEditTextListener(new OnClickEditTextListener() { + @Override + public void onTouchEditText() { + mAdapter.getLayoutManager().scrollToPosition(0); + } + }); +``` #### RecordVoiceListener This is the interface of record voice, the way to use: