jahswant Well-Known Member Licensed User Longtime User May 13, 2023 #1 xCustomListView JumpTo and ScrollToItem behaves in a weired way ? When called Item jumps to the end of the list. B4X: CustomListViewTop.JumpToItem(CustomListViewTop.Size-1) Is there a workaround for this ?
xCustomListView JumpTo and ScrollToItem behaves in a weired way ? When called Item jumps to the end of the list. B4X: CustomListViewTop.JumpToItem(CustomListViewTop.Size-1) Is there a workaround for this ?
Solution Filippo May 14, 2023 jahswant said: In B4i when called with one item in list, that item jumps to the end of the list ! Click to expand... In B4i I use this solution: B4X: If CustomListViewTop.LastVisibleIndex < CustomListViewTop.GetSize - 1 Then CustomListViewTop.JumpToItem(CustomListViewTop.GetSize -1 ) End If
jahswant said: In B4i when called with one item in list, that item jumps to the end of the list ! Click to expand... In B4i I use this solution: B4X: If CustomListViewTop.LastVisibleIndex < CustomListViewTop.GetSize - 1 Then CustomListViewTop.JumpToItem(CustomListViewTop.GetSize -1 ) End If
Erel B4X founder Staff member Licensed User Longtime User May 14, 2023 #2 What exactly happens? Upvote 0
jahswant Well-Known Member Licensed User Longtime User May 14, 2023 #3 Erel said: What exactly happens? Click to expand... In B4i when called with one item in list, that item jumps to the end of the list ! Upvote 0
Erel said: What exactly happens? Click to expand... In B4i when called with one item in list, that item jumps to the end of the list !
Filippo Expert Licensed User Longtime User May 14, 2023 #4 jahswant said: In B4i when called with one item in list, that item jumps to the end of the list ! Click to expand... In B4i I use this solution: B4X: If CustomListViewTop.LastVisibleIndex < CustomListViewTop.GetSize - 1 Then CustomListViewTop.JumpToItem(CustomListViewTop.GetSize -1 ) End If Upvote 1 Solution
jahswant said: In B4i when called with one item in list, that item jumps to the end of the list ! Click to expand... In B4i I use this solution: B4X: If CustomListViewTop.LastVisibleIndex < CustomListViewTop.GetSize - 1 Then CustomListViewTop.JumpToItem(CustomListViewTop.GetSize -1 ) End If
jahswant Well-Known Member Licensed User Longtime User May 14, 2023 #5 Thanks for this suggestion. Upvote 0
jahswant Well-Known Member Licensed User Longtime User May 15, 2023 #6 @Erel could you look into this issue ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 16, 2023 #7 I think that you are talking about this: https://www.b4x.com/android/forum/t...listview-and-scrolltoitem.139549/#post-883830 Upvote 0
I think that you are talking about this: https://www.b4x.com/android/forum/t...listview-and-scrolltoitem.139549/#post-883830