wimpie3 Well-Known Member Licensed User Longtime User Mar 13, 2022 #1 In B4I, it's fairly easy to implement horizontal snapping (or paging) in xCustomListView by doing this: Code: Dim sv As ScrollView = MonthListView.sv sv.PagingEnabled = True My question is: is the same possible in Android? I know there's a library to implement snapping but that would be overkill when it's as easy to do it in B4A as it is in B4I.
In B4I, it's fairly easy to implement horizontal snapping (or paging) in xCustomListView by doing this: Code: Dim sv As ScrollView = MonthListView.sv sv.PagingEnabled = True My question is: is the same possible in Android? I know there's a library to implement snapping but that would be overkill when it's as easy to do it in B4A as it is in B4I.
Erel B4X founder Staff member Licensed User Longtime User Mar 13, 2022 #2 1. There is no similar feature in Android. 2. Using SnapCLV is the correct solution. It is far from being an overkill. Open the project and you will see that this huge library is made of exactly 20 lines of code. Upvote 0
1. There is no similar feature in Android. 2. Using SnapCLV is the correct solution. It is far from being an overkill. Open the project and you will see that this huge library is made of exactly 20 lines of code.
wimpie3 Well-Known Member Licensed User Longtime User Mar 13, 2022 #3 2. Correct but it kind of 'simulates' the snapping in code, while the b4i solution uses the internal snapping routines Upvote 0
2. Correct but it kind of 'simulates' the snapping in code, while the b4i solution uses the internal snapping routines
Alexander Stolte Expert Licensed User Longtime User Mar 14, 2022 #4 wimpie3 said: 2. Correct but it kind of 'simulates' the snapping in code, while the b4i solution uses the internal snapping routines Click to expand... apparently the android internal listview does not have this feature Upvote 0
wimpie3 said: 2. Correct but it kind of 'simulates' the snapping in code, while the b4i solution uses the internal snapping routines Click to expand... apparently the android internal listview does not have this feature
wimpie3 Well-Known Member Licensed User Longtime User Mar 14, 2022 #5 Alexander Stolte said: apparently the android internal listview does not have this feature Click to expand... Yes that seems to be the correct conclusion, thanks. Upvote 0
Alexander Stolte said: apparently the android internal listview does not have this feature Click to expand... Yes that seems to be the correct conclusion, thanks.