pull-to-refresh

How to disable “pull to refresh” action and use only indicator?

心不动则不痛 提交于 2019-12-03 14:17:42
问题 I enabled "pull to refresh" to my project using the SwipeRefreshLayout . When I move down, appear the loading indicator (material design style). I know, it must so work, but I want to disable this function, and start refreshing by click some button and use SwipeRefreshLayout loading indicator. How I can to do this? 回答1: From the documentation: If an activity wishes to show just the progress animation, it should call setRefreshing(true). To disable the gesture and progress animation, call

Tap to refresh is visible all the time and gap is still visible on list view

喜你入骨 提交于 2019-12-03 09:15:53
I am using pull to refresh in my application. Pull to refresh is working fine when the list size is crossing screen. But when the size is one or two there is a gap between the header and the listview saying tap to refresh. Here is my code public class PullToRefreshListView extends ListView implements OnScrollListener { private static final int TAP_TO_REFRESH = 1; private static final int PULL_TO_REFRESH = 2; private static final int RELEASE_TO_REFRESH = 3; private static final int REFRESHING = 4; private static final String TAG = "PullToRefreshListView"; private OnRefreshListener

Animating UIScrollView contentInset causes jump stutter

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 08:16:48
问题 I implemeted a custom refresh control (my own class, not a subclass), and for some reason since moving to iOS 8, setting the contentInset of the scroll view (specifically, UICollectionView) to start the refresh animation causes a weird jump/stutter. Here is my code: - (void)containingScrollViewDidScroll:(UIScrollView *)scrollView { CGFloat scrollPosition = scrollView.contentOffset.y + scrollView.contentInset.top; if( scrollPosition > 0 || self.isRefreshing ) { return; } CGFloat percentWidth =

Pull to refresh like gmail new (4.5) application [closed]

柔情痞子 提交于 2019-12-03 06:22:55
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . In the new gmail application (4.5) the refresh is done by "Pull-to-Refresh" action in the Actionbar: Where can I find more information about that "Pull-to-Refresh"? 回答1: Chris Banes (the same guy that implemented

How to disable “pull to refresh” action and use only indicator?

瘦欲@ 提交于 2019-12-03 04:09:26
I enabled "pull to refresh" to my project using the SwipeRefreshLayout . When I move down, appear the loading indicator (material design style). I know, it must so work, but I want to disable this function, and start refreshing by click some button and use SwipeRefreshLayout loading indicator. How I can to do this? nhasan From the documentation: If an activity wishes to show just the progress animation, it should call setRefreshing(true). To disable the gesture and progress animation, call setEnabled(false) on the view. So to show the animation: swiperefreshLayout.setEnabled(true);

JQuery Mobile : Pull to refresh list view [duplicate]

喜你入骨 提交于 2019-12-03 02:54:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to do this pull-to-refresh in webapp? Is there a plugin available which will animate a list item of a list-view such that when pulled down or pulled up the list-view can be added with new list items using ajax? I came across this plug-in which ISCROLL 4 but I doesn't work with Jquery Mobile. 回答1: Here are a few I found: https://github.com/svdgraaf/pull-to-refresh How to do this pull-to-refresh in webapp?

Pull-to-refresh in UICollectionViewController

纵然是瞬间 提交于 2019-12-03 00:09:01
问题 I want to implement pull-down-to-refresh in a UICollectionViewController under iOS 6. This was easy to achieve with a UITableViewController , like so: UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(startRefresh:) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refreshControl; The above implements a nice liquid-drop animation as part of a native widget. As UICollectionViewController is a "more evolved"

Pull-to-refresh in UICollectionViewController

▼魔方 西西 提交于 2019-12-02 13:54:20
I want to implement pull-down-to-refresh in a UICollectionViewController under iOS 6. This was easy to achieve with a UITableViewController , like so: UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(startRefresh:) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refreshControl; The above implements a nice liquid-drop animation as part of a native widget. As UICollectionViewController is a "more evolved" UITableViewController one would expect somewhat of a parity of features, but I can't find a reference

How do I add Pull to Refresh in WebView?

笑着哭i 提交于 2019-12-02 05:10:17
问题 I'm very new to developing. I'm building a WebView and I want it to have pull to refresh capabilities. How do I go about doing that in swift? My code in the View Controller is @IBOutlet var webView: UIWebView! override func viewDidLoad() { super.viewDidLoad() func webViewDidFinishLoad(webView: UIWebView) { UIApplication.sharedApplication().networkActivityIndicatorVisible = false } func webViewDidStartLoad(webView: UIWebView) { UIApplication.sharedApplication().networkActivityIndicatorVisible

How do I add Pull to Refresh in WebView?

假如想象 提交于 2019-12-01 23:54:35
I'm very new to developing. I'm building a WebView and I want it to have pull to refresh capabilities. How do I go about doing that in swift? My code in the View Controller is @IBOutlet var webView: UIWebView! override func viewDidLoad() { super.viewDidLoad() func webViewDidFinishLoad(webView: UIWebView) { UIApplication.sharedApplication().networkActivityIndicatorVisible = false } func webViewDidStartLoad(webView: UIWebView) { UIApplication.sharedApplication().networkActivityIndicatorVisible = true } let url = NSURL (string: "https://www.foo.com"); let requestObj = NSURLRequest(URL: url!);