-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix the pull happening when the top element is not shown #234
base: master
Are you sure you want to change the base?
Conversation
There is no dev branch anymore On Tue, Aug 6, 2013 at 5:05 PM, Oleg Vaskevich [email protected]:
|
Is this can solve the Problem when there is only a header? |
Sorry ,i have no idea that i cannot pull any new request,so i pull my question here ,my question is |
you can use the method setRefreshing. Hope can help you. ------------------ 原始邮件 ------------------ 主题: Re: [Android-PullToRefresh] Fix the pull happening when the topelement is not shown (#234) Sorry ,i have no idea that i cannot pull any new request,so i pull my question there ,my question is — |
@dolphinwang i had used the method setRefreshing, it cannot work,but when i call the setRefreshing second time,it can show the loading view at the header .For example,i enter a new activity ,and call a method(getDataFromWeb) to get data form web in the OnCreate() method,and then call setRefreshing,it cannot appear show loading at the header ,but if i call the method (getDataFromWeb) another time ,it can work(will appear the loading view at the header),so ,i am confused ,why. |
According to your description, I'm not sure which problem occur. May the first time you call getDataFromWeb, the Activity has not got it's focus. You can try call getDataFromWeb in onResume, see weather listview shows it's loading header. ------------------ 原始邮件 ------------------ @dolphinwang i had used the method setRefreshing, it cannot work,but when i call the setRefreshing second time,it can show the loading view at the header ,for example,i enter a new activity ,and call a method(getDataFromWeb) to get data form web in the OnCreate() method,and then call setRefreshing,it cannot appear show loading at the header ,but if i call the method (getDataFromWeb) another time ,it can work(will appear the loading view at the header),so ,i am confused ,why. — |
I know it's not maintained but others may see this important patch.