android-Ultra-Pull-To-Refresh
android-Ultra-Pull-To-Refresh copied to clipboard
How can i cancel refreshing event?
How can i cancel animation of refreshing and return header in start position? I need it because if my task return me an error(no connection with in-net) i want to return header in current state and set the last update time. How can i make it?
You can use refreshComplete()
to cancel / stop.
if i use refreshComplete() header will be updated, i mean the counter of last update time will reset. i want to save previous updating time if i've got an error.
I think you can setup your custom header to do this
I think it will be better to introduce a overload method: refreshComplete(boolean success)
.
@liaohuqiu Yeah. It is better in that way. OnUIRefreshComplete(PtrFrameLayout frame)
should be handled too.
As i understand, where is no way for me to extends PtrFrameLayout and override refreshCompleate() ?
oh, Merci!