Android-PullToRefresh
Android-PullToRefresh copied to clipboard
Fix the pull happening when the top element is not shown
I know it's not maintained but others may see this important patch.
There is no dev branch anymore
On Tue, Aug 6, 2013 at 5:05 PM, Oleg Vaskevich [email protected]:
Do another pull against dev?
"I will gladly accept pull requests for fixes and feature enhancements but please do them in the dev branch. The master branch is for the latest stable code, dev is where I try things out before releasing them as stable. Any pull requests that are against master from now on will be closed asking for you to do another pull against dev."
— Reply to this email directly or view it on GitHubhttps://github.com/chrisbanes/Android-PullToRefresh/pull/234#issuecomment-22185196 .
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 how can i show the loading view at the header like i pull down the list view or scrollview when i enter the new activity or fragment at the first time which the data i get from web . thank you
you can use the method setRefreshing. Hope can help you.
------------------ 原始邮件 ------------------ 发件人: "meablelee2013";[email protected]; 发送时间: 2014年6月23日(星期一) 中午11:26 收件人: "chrisbanes/Android-PullToRefresh"[email protected];
主题: 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 how can i show the loading at the header like i pull down the list view or scrollview at the first time. thank you
— Reply to this email directly or view it on GitHub.
@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.
------------------ 原始邮件 ------------------ 发件人: "meablelee2013";[email protected]; 发送时间: 2014年6月23日(星期一) 下午4:45 收件人: "chrisbanes/Android-PullToRefresh"[email protected]; 抄送: "dolphin wang"[email protected]; 主题: Re: [Android-PullToRefresh] Fix the pull happening when the topelement is not shown (#234)
@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.
— Reply to this email directly or view it on GitHub.