cxdzbl Active Member Licensed User Jul 17, 2017 #1 I want to do a drop-down refresh to get the Y value for sliding and lifting, but I cannot get the pressed Y value.
I want to do a drop-down refresh to get the Y value for sliding and lifting, but I cannot get the pressed Y value.
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2017 #2 Check this example: https://www.b4x.com/android/forum/t...w-with-pull-to-refresh-feature.27810/#content It is based on an old version of CustomListView but you should be able to add the relevant parts to the newer version. Upvote 0
Check this example: https://www.b4x.com/android/forum/t...w-with-pull-to-refresh-feature.27810/#content It is based on an old version of CustomListView but you should be able to add the relevant parts to the newer version.
cxdzbl Active Member Licensed User Jul 18, 2017 #3 Erel said: Check this example: https://www.b4x.com/android/forum/t...w-with-pull-to-refresh-feature.27810/#content It is based on an old version of CustomListView but you should be able to add the relevant parts to the newer version. Click to expand... This has been used before, it does not have the drop down damping effect and the rebound effect after release. Upvote 0
Erel said: Check this example: https://www.b4x.com/android/forum/t...w-with-pull-to-refresh-feature.27810/#content It is based on an old version of CustomListView but you should be able to add the relevant parts to the newer version. Click to expand... This has been used before, it does not have the drop down damping effect and the rebound effect after release.
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2017 #4 You will also need to implement this animation effect with GestureDetector. Upvote 0
cxdzbl Active Member Licensed User Jul 18, 2017 #5 Erel said: You will also need to implement this animation effect with GestureDetector. Click to expand... https://www.b4x.com/android/forum/threads/gesture-detector-doesnt-work-with-customlistview.80693/ I think it's the same as the problem mentioned in the link above, you can get the y value of any event for Listview, but you can't get the y value in the ScrollView press event. Upvote 0
Erel said: You will also need to implement this animation effect with GestureDetector. Click to expand... https://www.b4x.com/android/forum/threads/gesture-detector-doesnt-work-with-customlistview.80693/ I think it's the same as the problem mentioned in the link above, you can get the y value of any event for Listview, but you can't get the y value in the ScrollView press event.