B4A Library AHSwipeToRefresh - Wrapper for Android SwipeToRefresh implementation

DonManfred

Expert
Licensed User
Longtime User

eps

Expert
Licensed User
Longtime User
I have created a small project that I have shared in the forum in Spanish, maybe it will be useful.

https://www.b4x.com/android/forum/threads/b4a-generar-una-lista-v0-2-librerías-customlistview-cardview-ahswipetorefresh.81739/

Muchas gracias (many thanks!) both

I'll check it out and let you know how I get on

....

The above didn't work for me either, but it did lead me to a solution

I've removed the PC and VP stuff (see Donmanfred's post) and this now 'works' well at least it displays something! now to get the functionality working that I wanted to in the first place...
 

yiankos1

Well-Known Member
Licensed User
Longtime User
Good morning,
I use it with ULV but as another user mention here, object scrolls down but it does not animate till async finishes. It disappears immediately. At your example, with timer, everything works fine.
 

rscheel

Well-Known Member
Licensed User
Longtime User
Good morning,
I use it with ULV but as another user mention here, object scrolls down but it does not animate till async finishes. It disappears immediately. At your example, with timer, everything works fine.

B4X:
Sub STR_Refresh
    Log("Refresh started")
    tm.Initialize("Timer", 2000)
    tm.Enabled = True
    STR.Enabled = False 'Try changing it to True
End Sub
 

yiankos1

Well-Known Member
Licensed User
Longtime User
B4X:
Sub STR_Refresh
    Log("Refresh started")
    tm.Initialize("Timer", 2000)
    tm.Enabled = True
    STR.Enabled = False 'Try changing it to True
End Sub
You are right. That solved issue! Thank you
 

eps

Expert
Licensed User
Longtime User
I know there is canChildScrollUp but is there an equivalent canChildScrollDown or is the answer to this question 'obvious'?
 

Brandsum

Well-Known Member
Licensed User
You can attach native UIRefreshcontrol to scroll view and table view. The tutorial I have posted is for scroll view. If you want to use this with a table view then click on the original tutorial link from that tutorial.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…