question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version

0.6.1

Issues and Steps to Reproduce

Since RecyclerViewWrapper inherits from SwipeRefreshLayout, swipe down should show refresh indicator but nothing happens. Because it’s not well-documented, is there any method to activate to refresh?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dbof10commented, Oct 2, 2017

With Button it’s able do to something like

  static void onClick(ComponentContext c, @FromEvent View view,
      @Prop OnButtonClickListener listener) {
    listener.onButtonClick();
  }

with an interface

  interface OnButtonClickListener {
    void onButtonClick();
  }

in Spec.class

With Recycler unfortunately, it is not

        @OnEvent(PTRRefreshEvent::class)
        static void onRefresh(ComponentContext c, @Prop OnRefreshListener refreshListener) {
            refreshListener.onRefresh()
        }

Is there any way to setRefreshing(false)?

0reactions
dbof10commented, Oct 30, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding Swipe-to-Refresh To Your App - Android Developers
The swipe-to-refresh user interface pattern is implemented entirely within the SwipeRefreshLayout widget, which detects the vertical swipe, ...
Read more >
Android swipe to refresh - Material Design
Swipe to refresh is a swipe gesture available at the beginning of lists, grid lists, and card collections where the most recent content...
Read more >
Android Pull/Swipe Down to Refresh - DigitalOcean
Android SwipeRefreshLayout is a ViewGroup that can hold only one scrollable child. It can be either a ScrollView, ListView or RecyclerView. The ...
Read more >
How to Implement Swipe Down to Refresh in Android
Step 1: Before start writing the code it is essential to add a Swipe Refresh Layout dependency into the build. · Step 2:...
Read more >
Implementing Pull to Refresh Guide - CodePath Cliffnotes
With the swipe to refresh control, you are responsible for notifying the system once the new data has been loaded into the list....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found