Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecyclerView #62

Open
yc654084303 opened this issue Jan 3, 2018 · 1 comment
Open

RecyclerView #62

yc654084303 opened this issue Jan 3, 2018 · 1 comment

Comments

@yc654084303
Copy link

是不时不兼容RecyclerView啊,把listview换成RecyclerView布局不顶上去了

@AikinLei
Copy link

是不时不兼容RecyclerView啊,把listview换成RecyclerView布局不顶上去了

不是布局顶不上去了,而是需要你添加addOnFuncKeyBoardListener的监听 ,然后在OnFuncPop回调中调用ScrollToBottom方法

private void scrollToBottom() {
mMessageRecyclerView.requestLayout();
mMessageRecyclerView.post(new Runnable() {
@OverRide
public void run() {
mMessageRecyclerView.scrollToPosition(mChatMessageAdapter.getItemCount()-1);
}
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants