Skip to content

Commit

Permalink
Merge pull request #75 from jpush/dev
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
KenChoi1992 committed Jul 10, 2017
2 parents 74dc146 + eaac96f commit 4a030c8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Android/chatinput/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,24 @@ chatInput.setMenuClickListener(new OnMenuClickListener() {
```
关于上述事件的处理,可以参考 sample 中的 MessageListActivity 对于事件的处理。



### OnClickEditTextListener

监听输入框点击事件,点击输入框后触发此事件。用法:

```
mChatInput.setOnClickEditTextListener(new OnClickEditTextListener() {
@Override
public void onTouchEditText() {
mAdapter.getLayoutManager().scrollToPosition(0);
}
});
```




### RecordVoiceListener
这是录音的接口,使用方式:

Expand Down
14 changes: 14 additions & 0 deletions Android/chatinput/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 4a030c8

Please sign in to comment.