Marco Maria Vilucchi Active Member Licensed User Longtime User Feb 4, 2019 #1 Hi all, I'm using xCuxtomListView to create a list view and I'm using the ReachEnd event to update the list with possible new items. But if Listview height is less than screen height the Reachview Event dosen't start. This is the case where I have only one item or two. How can i use ReachEnd event in this case? Or witch event can I use? Thanks Marco
Hi all, I'm using xCuxtomListView to create a list view and I'm using the ReachEnd event to update the list with possible new items. But if Listview height is less than screen height the Reachview Event dosen't start. This is the case where I have only one item or two. How can i use ReachEnd event in this case? Or witch event can I use? Thanks Marco
MarkusR Well-Known Member Licensed User Longtime User Feb 4, 2019 #2 if u not use the source of this xCuxtomListView because it comes as library with the ide as workaround i would add dummy entries. or u need make a feature request / wish. or try gesture library. or extra button. or maybe other events are raised from this control, but i don't think so. Upvote 0
if u not use the source of this xCuxtomListView because it comes as library with the ide as workaround i would add dummy entries. or u need make a feature request / wish. or try gesture library. or extra button. or maybe other events are raised from this control, but i don't think so.
Marco Maria Vilucchi Active Member Licensed User Longtime User Feb 4, 2019 #3 I'm using the class, not the library. What I can do? Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Feb 4, 2019 #4 i looked into source code of customlistview i had from xcustomlistview.zip here https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ emm, the scrollview have only the ScrollChanged event.. and did not raised if the list is smaller than the screen. the other events seems only happen for each existing item, so not in the blank area. so at least you can add empty items that will raise your ReachEnd or add one item at the end with text "update list" and you get a ItemClick event and there you can do whatever you like. Upvote 0
i looked into source code of customlistview i had from xcustomlistview.zip here https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ emm, the scrollview have only the ScrollChanged event.. and did not raised if the list is smaller than the screen. the other events seems only happen for each existing item, so not in the blank area. so at least you can add empty items that will raise your ReachEnd or add one item at the end with text "update list" and you get a ItemClick event and there you can do whatever you like.
Marco Maria Vilucchi Active Member Licensed User Longtime User Feb 4, 2019 #5 yes thanks I think so too Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2019 #6 I recommend you to use the library. ReachEnd is raised when the user scrolls to the end. You should start with filling the list with enough items to make it scrollable. How do you decide how many items to add? Upvote 0
I recommend you to use the library. ReachEnd is raised when the user scrolls to the end. You should start with filling the list with enough items to make it scrollable. How do you decide how many items to add?
Marco Maria Vilucchi Active Member Licensed User Longtime User Feb 5, 2019 #7 when I use ReachEnd I need to add new items after last item without recreate all the list. So I can't fill the list with blank items enough to make it scrollable, otherwise i'll put new item after all blank items used previously to fill list. I think I need to use a button to refresh..... Upvote 0
when I use ReachEnd I need to add new items after last item without recreate all the list. So I can't fill the list with blank items enough to make it scrollable, otherwise i'll put new item after all blank items used previously to fill list. I think I need to use a button to refresh.....