Hey,
thanks to @KZero for his good zPager class, i was able to extract a few things from it to make this cross platform view.
I spend a lot of time in creating views, some views i need by my self, but some views not and to create a high quality view cost a lot of time. If you want to support me, then you can do it here by Paypal.
This library is compatible and tested with B4A,B4I and B4J!
If you have bugs or a wish then tell me it in the comments.
On B4J use the LEFT and RIGHT keys on your keyboard to change the page.
On B4I you need the GestureRecognizer class.
Features
B4A Carousel and B4I Carousel
ASViewPager
Author: Alexander Stolte
Version: 1.12


thanks to @KZero for his good zPager class, i was able to extract a few things from it to make this cross platform view.
I spend a lot of time in creating views, some views i need by my self, but some views not and to create a high quality view cost a lot of time. If you want to support me, then you can do it here by Paypal.
This library is compatible and tested with B4A,B4I and B4J!
If you have bugs or a wish then tell me it in the comments.
On B4J use the LEFT and RIGHT keys on your keyboard to change the page.
On B4I you need the GestureRecognizer class.
B4j: jXUI,JavaObject,xCustomListView,jReflection
B4a: XUi,Reflection,xCustomListView
B4i: iXUI,xCustomListView
B4a: XUi,Reflection,xCustomListView
B4i: iXUI,xCustomListView
- cross-platform compatible
- based on a cross-platform ListView
- add and remove pages
- scroll to pages
- a good swipe feeling
- NEW - Vertical
- NEW - Carousel
B4A Carousel and B4I Carousel
ASViewPager
Author: Alexander Stolte
Version: 1.12
- ASViewPager
- Events:
- PageChanged (Index As Int)
- ReachEnd
- ScrollChanged (Offset As Int)
- TouchBegin
- TouchEnd
- Fields:
- Tag As Object
- Functions:
- AddPage (xpnl_layout As B4XView, value As Object) As String
- AddPageAt (index As Int, xpnl_layout As B4XView, value As Object) As String
Adds an page at a special position - Base_Resize (Width As Double, Height As Double) As String
- Class_Globals As String
- Clear As String
- DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
Base type must be Object - getBase As B4XView
- getCurrentIndex As Int
- getCustomListView As b4a.example3.customlistview
- getSize As Int
- Initialize (Callback As Object, EventName As String) As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - NextPage As String
- NextPage2 As String
Jump to next page - PreviousPage As String
- PreviousPage2 As String
jump to previous page - RemovePage (index As Int) As String
- setCurrentIndex (index As Int) As String
- setCurrentIndex2 (index As Int) As String
sets the current index - jumps to the item - setIgnorePageChangedEvent (ignore As Boolean) As String
- Properties:
- Base As B4XView [read only]
- CurrentIndex As Int
- CurrentIndex2
sets the current index - jumps to the item - CustomListView As b4a.example3.customlistview [read only]
- IgnorePageChangedEvent
- Size As Int [read only]
- Events:
- 1.00
- Release
- 1.01
- Base_Resize is now public
- NextPage and PreviousPage Bug Fix
- setCurrentIndex Bug Fix
- PageChangeEvent Bug Fix
- 1.02
- B4I Bug Fixes
- NextPage and PreviousPage Bug Fix
- 1.03
- Resize BugFix
- 1.04
- B4I Page-Height BugFix
- B4I Page-Swipe BugFix
- 1.05
- BugFix
- 1.06
- Add Designer Property "Orientation" - Vertical is now supported
- 1.07
- BugFix getCurrentIndex
- BugFix PageChanged event is now only firing if the index is changed
- Add setIgnorePageChangedEvent Property
- Add TouchBegin Event
- Add TouchEnd Event
- BugFix PageChanged is now firing if you press on a emulator, for example the arrow up or down keys on yor keyboard
- 1.08
- Add Tag Property
- Add Clear - clears the list and sets the index to 0
- BugFix xCustomListview Top was always 0
- 1.09
- B4I BugFixes for Release Mode - swiping is now better
- 1.10
- Add AddPageAt (experimental it works for my need, if you have issuses, then tell me) - Adds an page at a special position
- Add set CurrentIndex2 - sets the current index - jumps to the item
- Better resize handling
- 1.11
- RemovePage Bugfixes
- B4J ScrollPane under the hood is now Transparent
- Add NextPage2 -Jump to next page
- Add PrevoiusPage2 - Jump to previous page
- 1.12
- [BETA] Add DesignerProperty Carousel - infinite swipe
- On B4I Bounce Effect is disabled
- B4I ScrollView Paging is now activated, this can improve the handling
- [BETA] Add DesignerProperty Carousel - infinite swipe
- 1.13
- Add PageClick Event
Attachments
-
9.9 KB Views: 50
-
4.3 KB Views: 24
Last edited: