swiperefreshlayout

SwipeRefreshLayout and Vertical ViewPager Touch Issues

梦想与她 提交于 2021-02-08 10:18:35
问题 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 swipe the Vertical Viewpager SwipeRefreshLayout handles the touch event and refresh the layout and the view pager's page does't move. Two things i tried but with no luck: Enable swipe to refresh layout only when user starts from the toolbar. MotionEvent.ACTION_DOWN event getY() gives toolbar's y

RecyclerView in SwipeRefreshLayout not “wrap_content”

五迷三道 提交于 2020-12-30 06:25:27
问题 I have a RecyclerView as the only child of SwipeRefreshLayout , I want the RecyclerView wrap_content . When I set both of them "wrap_content", it doesn't work. The RecyclerView with fewer items also match_parent . When i delete SwipeRefreshLayout , the RecyclerView will wrap_content . Can anyone help me? My English is poor, Maybe you cann't understand. Anyone can help me? Thank you very much. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk

RecyclerView in SwipeRefreshLayout not “wrap_content”

假如想象 提交于 2020-12-30 06:24:16
问题 I have a RecyclerView as the only child of SwipeRefreshLayout , I want the RecyclerView wrap_content . When I set both of them "wrap_content", it doesn't work. The RecyclerView with fewer items also match_parent . When i delete SwipeRefreshLayout , the RecyclerView will wrap_content . Can anyone help me? My English is poor, Maybe you cann't understand. Anyone can help me? Thank you very much. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk

Unable to refresh recyclerView with pagination

谁都会走 提交于 2020-08-10 12:25:25
问题 I have a RecyclerView that gets filled with paginated data. I need to be able to refresh it via SwipeRefreshLayout , but so far, I am unable to do so. I have tried plenty references that does similar to this, but without any success. Also, for letting you guys know, When I do refresh, the data gets retrieved correctly, but it is not being displayed on the recyclerView... Also, when I move from that destination to another via Navigation and then, I hit back, it gets updated. I am not sure what

Unable to refresh recyclerView with pagination

点点圈 提交于 2020-08-10 12:23:47
问题 I have a RecyclerView that gets filled with paginated data. I need to be able to refresh it via SwipeRefreshLayout , but so far, I am unable to do so. I have tried plenty references that does similar to this, but without any success. Also, for letting you guys know, When I do refresh, the data gets retrieved correctly, but it is not being displayed on the recyclerView... Also, when I move from that destination to another via Navigation and then, I hit back, it gets updated. I am not sure what

Can't zoom the webview under swipe to refresh

半城伤御伤魂 提交于 2020-07-27 03:31:45
问题 I've webview under swipetorefresh layout. I cannot zoom smoothly in the webview. But, if I remove the swipetorefresh then it is zooming perfectly. This the layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" tools:ignore="MergeRootFrame" android

AndroidX SwipeRefreshLayout with DataBinding

久未见 提交于 2020-05-27 06:28:48
问题 I'm trying to implement swipe to refresh functionality using AndroidX library: androidx.swiperefreshlayout.widget.SwipeRefreshLayout My app is using Android Databinding therefore I'd like to use observable fields to control the state of this widget. In the past I've used AppCompat one - it has as since been deprecated. Before, I could access the fields in the following way: <android.support.v4.widget.SwipeRefreshLayout xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width=