Linked Questions

99 votes
9 answers
35k views

SwipeRefreshLayout + ViewPager, limit horizontal scroll only?

I've implemented SwipeRefreshLayout and ViewPager in my app but there is a big trouble: whenever I'm going to swipe left / right to switch between pages the scrolling is too sensitive. A little swipe ...
user3896501's user avatar
  • 3,027
58 votes
5 answers
18k views

HorizontalScrollView inside SwipeRefreshLayout

I implemented the new SwipeRefreshLayout component in my application and it works well with any vertical views, like ListView, GridView and ScrollView. It behaves very bad with horizontal views, like ...
Lior Iluz's user avatar
  • 26.3k
37 votes
15 answers
31k views

Android - SwipeRefreshLayout with empty textview

I've implemented SwipeRefreshLayout into my app but it can only hold one direct child which should be the listview. I'm trying to figure out how to add an empty textview to the following working XML ...
Niels's user avatar
  • 659
48 votes
7 answers
57k views

How to make a Scroll Listener for WebView in Android

How to implement the Scroll Listener for WebView in Android i tried this but its not calling my Log.i on scrolling the webview. package com.example.webview.full.width; import android.content.Context;...
Qadir Hussain's user avatar
31 votes
8 answers
60k views

Adding pull to refresh on webview for refreshing

I will add pull to refresh on my webview so it refresh my webview. i have seen all questions on this page but i can't find the good way to add pull to refresh... Mainactivity.java package com.vvhvb....
Hessel's user avatar
  • 447
9 votes
4 answers
5k views

WebView getScrollY() always returns 0

Im trying to use the webview's scroll position to determine whether SwipeRefreshLayout should be able to refresh, except for some websites e.g. https://jobs.lever.co/memebox, getScrollY() always ...
Tim Mutton's user avatar
2 votes
3 answers
9k views

How can i add Swipe to Refresh in my WebVIew app?

I made a news Reader App (WebView). I don't know how to add a pull to refresh in my app. I am a student who just got into programming (Learner/n00b) Anyone here that can kindly let me know what to add ...
Moin Imran's user avatar
12 votes
2 answers
5k views

scrolling up in webview causes refresh by SwipeRefreshLayout

I have a WebView inside a FrameLayout, to add tabs because i am creating a browser. The FrameLayout is inside a SwipeRefreshLayout. The problem: Whenever i scroll the content up fast in the WebView, ...
DennisVA's user avatar
  • 2,119
0 votes
2 answers
1k views

SwipeRefreshLayout and Vertical ViewPager Touch Issues

I have a Activity with Custom SwipeRefreshLayout and a Vertical ViewPager which swipes vertically. (basically a deck of cards which can be refershed by using swipe to refresh). So Now when i try to ...
Santosh Joshi's user avatar
0 votes
3 answers
2k views

swipe refresh android webView

i have webView on my android studio app <WebView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerHorizontal="true" android:...
Derick's user avatar
  • 11
0 votes
1 answer
2k views

SwipeRefreshLayout with Tabs and fragments per page has premature pull to refresh functionality

I have setup an app with slidingTabs nested in a swipeRefreshLayout where I have fragments for the pages which have recyclerView lists in them. It works fine but when I scroll down the list and go to ...
CaptRisky's user avatar
  • 761
0 votes
1 answer
911 views

Android Webview SwipeRefreshLayout area

I have app android WebApp inside SwipeRefreshLayout. Problem is when I scroll down webview, SwipeRefreshLayout trigers and I am not able to scroll down webview it self. My target: SwipeRefreshLayout ...
IntoTheDeep's user avatar
  • 4,076
0 votes
1 answer
266 views

Getting scrollY atribute from an RecycleView with CardList inside a ViewPager adapter with SwipeToRefresh layout

Ok, so i`m trying to get the scrollY atribute from my RecycleView (to see the position of where i am scrolling in the CardList. I have the following setup First, the main activity , which houses a ...
Alex's user avatar
  • 125
0 votes
0 answers
232 views

Pull to Refreshing webview

I am trying to using Webview and also to pull down to refresh the CURRENT page. Everything going good except this one. The Problem is to Refresh the current page. @Override protected ...
user avatar