use of com.xhsemoticonskeyboard.common.data.ImMsgBean in project XhsEmoticonsKeyboard by w446108264.
the class SimpleTranslucentChatActivity method initListView.
private void initListView() {
chattingListAdapter = new ChattingListAdapter(this);
List<ImMsgBean> beanList = new ArrayList<>();
for (int i = 0; i < 20; i++) {
ImMsgBean bean = new ImMsgBean();
bean.setContent("Test:" + i);
beanList.add(bean);
}
chattingListAdapter.addData(beanList);
lvChat.setAdapter(chattingListAdapter);
lvChat.setOnScrollListener(new AbsListView.OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
switch(scrollState) {
case SCROLL_STATE_FLING:
break;
case SCROLL_STATE_IDLE:
break;
case SCROLL_STATE_TOUCH_SCROLL:
ekBar.reset();
break;
}
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
}
});
}
Aggregations