Android-PullToRefresh icon indicating copy to clipboard operation
Android-PullToRefresh copied to clipboard

Fix the pull happening when the top element is not shown

Open robUx4 opened this issue 11 years ago • 6 comments

I know it's not maintained but others may see this important patch.

robUx4 avatar Aug 06 '13 10:08 robUx4

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 .

robUx4 avatar Aug 06 '13 18:08 robUx4

Is this can solve the Problem when there is only a header?

Boelroy avatar Mar 04 '14 10:03 Boelroy

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

meablelee2013 avatar Jun 23 '14 03:06 meablelee2013

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 avatar Jun 23 '14 03:06 dolphinwang

@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.

meablelee2013 avatar Jun 23 '14 08:06 meablelee2013

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.

dolphinwang avatar Jun 23 '14 08:06 dolphinwang