Questions tagged [swiperefreshlayout]

SwipeRefresLayout is a standard way to implement the common Pull to Refresh pattern in Android.

0
votes
0answers
8 views

SwipeRefreshLayout in NestedScrollView not worked

I learn to use a SwipeRefreshLayout, but In this widget not worked the dynamic animation to update, so I can't to understand why happend this, my code is the same one that I use to others proyects, I ...
-1
votes
1answer
46 views

Swipe Refresh Layout retry progress bar after (x) minutes

I read documentation of SwipeRefreshLayoutbut couldn't find any method for RetryPolicy. I want SwipeRefreshLayout to show retry in progressbar if data isn't fetched in 5 seconds. Any guideliness
0
votes
1answer
49 views

Pressing Back Button from the intent to return Fragment disappears the recyclerview list items in Android?

I have list items of custom object and I am using recyclerview to show them and using loaders for internet connection. My problem is when you click an item Google Chrome Custom Tabs intent is ...
0
votes
1answer
28 views

Android Studio doesn't accept “this” as LoaderCallBack argument inside OnRefreshListener

I am trying to add Swipe Refresh Layout to my fragment. I am using AsyncTaskLoader to load data. While setting the Refresh Layout's OnRefreshListener, I want to restart the loader to load new data (or ...
-1
votes
2answers
51 views

SwipeRefreshLayout refresh animation doesn't stop, though I set swipeView.setRefreshing(false)

I found some answers like SwipeRefreshLayout refresh animation doesn't stop plus some other Q&A, but till now I have not found my solution, Even I can not understand the problem. Actually ...
1
vote
1answer
109 views

How to use progress bar and swipe refresh at the same fragment?

I'm using ProgressBar (with counting) to load a web site. I'm using android.support.v4.widget.SwipeRefreshLayout to connect to internet when internet disconnected. and I'm using Custom error.html page ...
0
votes
0answers
28 views

Android: Pull SwipeRefreshLayout from left to refresh

I am using a horizontol recyclerview inside a SwipeRefreshLayout. Is it possible for me to activate the refresh on the recyclerview by pulling from left to right instead of top to bottom ? A question ...
1
vote
2answers
27 views

OnSwipeRefreshLayout doesn't stop refreshing

I have an OnSwipeRefreshLayout on a RecyclerView in a fragment. The fragment implements OnRefreshListener. I call a method from the fragment as the refresh method. I found out that it won't set the ...
0
votes
0answers
23 views

Setup SwipeToRefreash with Fragment layout

I'm new in android programming, I have created a navigation drawer activtity and I have added swipe to refreash with Recycler view, but I get it like that when I run the app: the IMG here this is my ...
2
votes
1answer
41 views

webview's iframe pull down refresh

How to refresh the webview in Android. Inside a webview iframe is there. When i am using NestedScrollView its going to infinite scrolling. even if i am chceking scrolling in y direction value its ...
0
votes
1answer
30 views

Multiple SwipeRefreshLayout and RecyclerView in wrap_content

I've a layout with 2 SwipeRefreshLayout and RecyclerView, it works only if the layout_height is fixed (ex: 200dp). If it is set to wrap_content, the items are not visible. I've tried a lot of ...
0
votes
0answers
12 views

refreshing icon doe not show up on swipping the layout

I am trying to use SwipeRefreshLayout as shown below in the layout below. but when i run the App and initially there is no data in the enclosed RecyclerView, when i swipe, i dont show the refreshing ...
0
votes
1answer
26 views

Swipe to refresh webview fragment doesnt load url

I have a webview fragment in my MainActivity. I am trying to add Swipetoview inside it. But when I load the fragment it doesn't load the url. My fragment: // Inflate the layout for this fragment ...
0
votes
1answer
28 views

How to wait till a method completes inside OnRefreshListener()?

I am trying to make an example using Volley, recycleView and SwipeRefreshLayout as shown below in the code. The problem I am facing now is, when I swipe down, the SwipeRefresh icon appears, and the ...
0
votes
1answer
27 views

SwipeRefreshLayout not working inside NavigationView's app:headerLayout

Can someone help with this. I am trying to implement a menu with dynamic content in a RecyclerView. The RecyclerView is working fine but the SwipeRefreshLayout is not. <android.support.constraint....
0
votes
0answers
29 views

Implement a ViewPager/RecyclerView with vertical scrolling, snapping and trigger options.

Prelude: I'm trying to implement something that has a this. And I was looking to a few ways that can be done. First I was thinking of implementing something like in the line of this. But I was ...
0
votes
0answers
32 views

SwipeRefreshLayout doesn't doesn't scroll recyclerView

Just updated my phone to Android Pie and discovered that one of my complex screens doesn't work properly. I have a few SwipeRefreshLayouts, and one of them can only refresh data, but cannot scroll the ...
0
votes
0answers
26 views

SwipeRefreshLayout with ListView is taking all space available

I thought I wouldn't have to write here, but I can't solve the problem! I have a ListView that has wrap_content, and below it TabLayout and ViewPager. Everythings workes fine, the layout is properly ...
0
votes
1answer
37 views

How can I update the adapter in tablayout in fragment

Well I have a tablayout, inside the tablayout is 3 tabs(fragments) and inside of the fragment i need to update the whole tablayout using swiperefreshlayout. anyone knows how to do that?
0
votes
0answers
17 views

SwipeRefreshLayout scroll not work correctly

I'm using RecyclerView+SwipeRefreshLayout+CoordinatorLayout. I have a problem scrolling in RecyclerView. When I'm scrolling up RecyclerView, AppBarLayout is hiding. And when I'm scrolling down ...
0
votes
1answer
29 views

SwipeRefreshLayout + AsyncTask: Fail to refresh data

I am using both SwipeRefreshLayout and AsyncTask in my app. I know that if I were to use AsyncTask twice, I will have to create a new instance to get everything running. But when I do this as follow, ...
0
votes
2answers
63 views

How to implement pull refresh animation on a recyclerView without using external libraries?

I have a simple example where I have a RecyclerView that I want to be refreshed when the user pulls on the top of the list! I have used swipeRefresh layout. However when the list is refreshed the ...
0
votes
0answers
23 views

SwipeRefreshLayout + NestedScrollView: Data cannot be refreshed

I encountered a problem using SwipeRefreshLayout + NestedScrollView. The problem is that when everything is OK (every item of the app can be loaded with no crash and swipe-refresh can be done), the ...
0
votes
1answer
26 views

How to work with ExpandableListView inside SwipeRefreshLayout which in turn inside of CoordinatorLayout?

A WebView(that contains vimeo or youtube video) which is wrapped inside RelativeLayout along with some TextViews will be added to postViewContainer programatically. Sometimes, it's just some TextViews ...
1
vote
1answer
40 views

Android ListView Scroll down forces Pull To Refresh

In my Activity, I have a FrameLayout inside a SwipeRefreshLayout, like this: <android.support.v4.widget.SwipeRefreshLayout android:id="@+id/swipeRefreshLayout" android:...
0
votes
1answer
28 views

When I refresh my webview with one page of webview, each time its redirect to homepage URL ! why?

Here this is my code........ Two problem are here, when i minimise this app window and start another app on my phone, while again view this app its not resume where i minimise this app. when i ...
0
votes
0answers
7 views

Cannot SwipeRefresh after mulitple SwipeRefresh and scroll in ListView at once

I make an Android app that uses SwipeRefreshLayout for a listView. It works fine usually, but if I do a lot of refreshes as well as scroll down in the listview it sometimes becomes impossible to do a ...
0
votes
2answers
46 views

My SwipeRefreshLayout do not stop showing after data has been loaded

I want to stop refreshing the recyclerview after the data is loaded but it keeps showing. I want the SwipeRefreshLayout to disappear after the the data of the recyclerview is fully loaded xml <?...
0
votes
0answers
70 views

SwipeRefreshLayout: Scrolling in a ListView

I have a problem. If I want to scroll up the ListView the SwipeRefreshLayout will be triggered. Here is the example of the design The text is german so.... Beneath "Ausstehende Order:" and "Letzte ...
0
votes
0answers
9 views

ViewTreeObserver doesn't call after URL change or activity onStart

I've been trying to use SwipeRefreshLayout with WebView. To seperate the scroll trigger (which is in use to scroll through the page vertically) and SwipeRefreshLayout, I've tried using ...
0
votes
0answers
37 views

Android Webview SwipeRefreshLayout doesn't allow to scroll down

When I try to scroll down the page in my WebView scrolling triggers SwipeRefreshLayout instead of WebView itself. How can I limit the area to top of my Activity? I tried to write something like this ...
0
votes
1answer
34 views

SwipeRefreshLayout and to handle external links in webview( manual class) not working together in android webview

I am using webview in android i have implemented pull to refresh in webview. Also i have created a class that handles the external links inside the website to open the links within the app only but ...
0
votes
2answers
25 views

Refresh wheel freezes until onRefresh() is finished

When I swipe up to refresh my ListView, I perform a click using performClick(), but the wheel freezes until everything that's under the onClickListener is executed. btini.setOnClickListener(new View....
0
votes
0answers
26 views

How do we handle the position change of the item when using SwipeRefreshLayout and RecyclerView?

Generally, I plan to use SwipeRefreshLayout and RecyclerView to implement Pull-To-Refresh list. After pulling the list to refresh the data, it seems that the original item position has been added one ...
0
votes
0answers
14 views

how long SwipeRefreshLayout

i need to know the end of time swipeRefresh i need relay to do the progressDialog while swipe and the progress cancel when swipe end final ProgressDialog progress = new ProgressDialog(context); ...
0
votes
0answers
21 views

Update UI from AsyncTask hang the SwipeRefreshLayout loading circle

I've created a generic AsyncTask. It works fine in background but when I update UI in doInBackground callback of this task, it just hang loading circle of SwipeRefreshLayout multiple times. I need ...
2
votes
0answers
53 views

android WebView overflow:auto trigger SwipeRefreshLayout on scroll up

When you load in WebView content with overflow:auto and it is surrounded with SwipeRefreshLayout, scroll down is working good, but scroll up triggers onRefresh of SwipeRefreshLayout. <android....
0
votes
1answer
72 views

LinearLayout inside SwipeRefreshLayout doesn't work

I have this XML structure: <ScrollView> <RelativeLayout> .......... <SwipeRefreshLayout> <LinearLayout/> </SwipeRefreshLayout> ..... &...
0
votes
1answer
119 views

Espresso test to verify that SwipeRefreshLayout is showing the refreshing indicator

I would like to create an Espresso test which verifies that SwipeRefreshLayout is showing the refreshing indicator. How can I do this?
1
vote
0answers
116 views

Move RecyclerView together with the Swipe Refresh Layout indicator (like Instagram pull to refresh)

I want to move Recyclerview together with Swipe Refresh Layout indicator (do not place the indicator above the Recyclerview, but Recyclerview should be appeared below of swipe refresh indicator). I ...
0
votes
0answers
118 views

When I do Pull down to refresh, it also triggers onScrollListener of Recyclerview

I am facing a strange issue whenever I pull down to refresh, the onScroll event of Recycler view is also fired, has anyone faced the issue note: I am using custom Scroll listener scrollListener =...
1
vote
1answer
65 views

Hide and show custom view on scroll inside a SwipeRefreshLayout

I'm trying to implement hide/show SearchView on scroll feature inside a SwipeRefreshLayout. I want to show SearchView when user scroll to the bottom and hide - when scroll to top. Also i want to keep ...
0
votes
0answers
40 views

How remove bottom padding in SwipeRefreshLayout

When i add RecyclerView in SwipeRefreshLayout, in the RecyclerView an padding appeared at the bottom, height ReryclerView is match_parent , how can I remove this bottom padding? size ...
0
votes
2answers
41 views

My imageview not showing up after swiperefreshlayout

For some reason, my imageview under swipe refresh layout doesn't show up. The elements in the recyclerview would show up fine but anything under the recylerview would not. <LinearLayout ...
1
vote
2answers
60 views

SwipeRefreshLayout hiding part of last ListView item

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/...
0
votes
0answers
17 views

How to attach dragListener to SwipeRefreshLayout?

Actually I wanna perform some operations when the drag of swipeRefreshLayout starts . But for that I need to get something like dragStart from swipeRefreshLayout . Although I tried to find some ...
3
votes
2answers
167 views

Pull to Refresh RecyclerVIew Adapter not working

I have searched lot of times on google that how to refresh recycler view after pull the swipeRefreslayout but code did not work This is my code swipeRefreshLayout.setOnRefreshListener(new ...
1
vote
2answers
88 views

Add swiperefreshlayout/ custom pull to refresh in AppBarLayout(CoordinatorLayout Setup)

How do I add swipetorefresh on the appbar inside a coodinatorlayout setup? I have added my xml below. With this layout setup I pull to refresh or swipe to refresh on the appbar does not seem to ...
0
votes
1answer
397 views

Android WebView, load from cache and attempt to refresh

I am trying to create a small app that loads a webpage and stores it in the cache. When swiping refresh it must attempt to update, but if there is no internet access it should keep the current version....
1
vote
0answers
36 views

Is it possible to make swipe refresh layout spinner have a static position relative to RecyclerView?

Currently when I call SwipeRefreshLayout.setRefreshing(true) a spinner will appear. However, when I scroll the underlying RecyclerView upon which SwipeRefreshLayout wraps around, the spinner stays in ...