bassaer/ChatMessageView

SwipeRefreshListener + setRefreshing

arthurabreu opened this issue · 1 comments

I see there is a SwipeRefresh Listener and setRefreshing methods on the ChatView class.

I wanna know how to use them? I tried the listener with a TOAST but nothing happened at first when I tried to swipe on the TOP of the ChatView (First message).

More details:

What I want to do is to have a SwiperRefresh behaviour on the first message (TOP of the ChatView) to load more messages from the past (Like in WhatsApp). In my case I'm using an API to provide me these messages so no worries about this part. I will have messages to show on Swipe. But, as I've mentioned, I wanna know if the ChatView already provide something like this and how to use it specific on it?

Otherwise, I will do this myself, manually. =)

My issue was due to a method I didn't noticed before. The

chatView.setEnableSwipeRefresh(true);

With this I can implement the behaviour I want.