-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnRefreshListener getting triggered only once #12
Labels
bug
Something isn't working
Comments
Bug. I will fix it.
Parag Pawar <[email protected]> 于2020年7月6日周一 下午8:51写道:
… Hello,
Thank you for this awesome library, it works just fine. but when I'm using
RefreshbarLayout and RefreshHeaderView, the onRefreshListener is getting
triggered only once, for the first time. After that on pulling it down, the
loading view just stays there and does not get a callback.
Following is how I'm using it:
Layout:
<com.todou.nestrefresh.RefreshBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
***@***.***/colorWhite"
android:fitsSystemWindows="true">
<com.todou.nestrefresh.RefreshHeaderView
android:id="@+id/refresh_header_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:nr_layout_scrollFlags="flag_refresh_header" />
<com.todou.nestrefresh.NRCollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
app:nr_layout_scrollFlags="flag_collapse">
</com.todou.nestrefresh.NRCollapsingToolbarLayout>
</com.todou.nestrefresh.RefreshBarLayout>
In code:
mRefreshListener = object : OnRefreshListener {
override fun onRefresh() {
mBinding.refreshHeaderView.stopRefresh()
Log.e("CustomerWalletFragment", "onRefresh: ")
}
}
mBinding.refreshHeaderView.setOnRefreshListener(mRefreshListener!!)
Is this bug? or am I doing something wrong?
Thanks again.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYQAFL35XSQF52B22YALDDR2HCEHANCNFSM4ORSKTLA>
.
|
Is That will be ok when delay to stopRefresh? Because it stops immediately
when refreshing. It's a bug in the RefreshHeader.
ToDou Yang <[email protected]> 于2020年7月7日周二 下午4:28写道:
… Bug. I will fix it.
Parag Pawar ***@***.***> 于2020年7月6日周一 下午8:51写道:
> Hello,
>
> Thank you for this awesome library, it works just fine. but when I'm
> using RefreshbarLayout and RefreshHeaderView, the onRefreshListener is
> getting triggered only once, for the first time. After that on pulling it
> down, the loading view just stays there and does not get a callback.
>
> Following is how I'm using it:
>
> Layout:
>
> <com.todou.nestrefresh.RefreshBarLayout
> android:layout_width="match_parent"
> android:layout_height="wrap_content"
> ***@***.***/colorWhite"
> android:fitsSystemWindows="true">
>
> <com.todou.nestrefresh.RefreshHeaderView
> android:id="@+id/refresh_header_view"
> android:layout_width="match_parent"
> android:layout_height="match_parent"
> app:nr_layout_scrollFlags="flag_refresh_header" />
>
> <com.todou.nestrefresh.NRCollapsingToolbarLayout
> android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:fitsSystemWindows="true"
> app:layout_scrollFlags="scroll|exitUntilCollapsed"
> app:nr_layout_scrollFlags="flag_collapse">
>
>
>
> </com.todou.nestrefresh.NRCollapsingToolbarLayout>
>
> </com.todou.nestrefresh.RefreshBarLayout>
>
> In code:
>
> mRefreshListener = object : OnRefreshListener {
> override fun onRefresh() {
> mBinding.refreshHeaderView.stopRefresh()
> Log.e("CustomerWalletFragment", "onRefresh: ")
> }
>
> }
>
> mBinding.refreshHeaderView.setOnRefreshListener(mRefreshListener!!)
>
> Is this bug? or am I doing something wrong?
>
> Thanks again.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#12>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYQAFL35XSQF52B22YALDDR2HCEHANCNFSM4ORSKTLA>
> .
>
|
Fix in 0.0.8 |
Yeah It's working fine now, thank you very much @ToDou |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Thank you for this awesome library, it works just fine. but when I'm using RefreshbarLayout and RefreshHeaderView, the onRefreshListener is getting triggered only once, for the first time. After that on pulling it down, the loading view just stays there and does not get a callback.
Following is how I'm using it:
Layout:
In code:
Is this bug? or am I doing something wrong?
Thanks again.
The text was updated successfully, but these errors were encountered: