Library that shows a horizontal progress like Instagram stories. You can add your own layout like on the AS_ViewPager. The AS_Stories supports lazy laoding too.
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee.
This is the 1st version, it may contain bugs and errors.
AutoPlay = True | Default = False
Tap to skip a page or hold, to hide infos from the layout
AS_Stories
Author: Alexander Stolte
Version: 1.00
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee.
This is the 1st version, it may contain bugs and errors.
AutoPlay = True | Default = False
Tap to skip a page or hold, to hide infos from the layout
AS_Stories
Author: Alexander Stolte
Version: 1.00
- AS_Stories
- Events:
- AutoPlayContinue
- AutoPlayEnd
- AutoPlayPause
- LazyLoadingAddContent (Parent As B4XView, Value As Object)
- PageChanged (Index As Int)
- Fields:
- mBase As B4XView
- Tag As Object
- Functions:
- AddPage (PagePanel As B4XView, Value As Object) As String
- Base_Resize (Width As Double, Height As Double) As String
- Class_Globals As String
- Clear As String
- Commit As String
- DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
Base type must be Object - getHeaderPanel As B4XView
- getIndex As Int
- GetPanel (Index As Int) As B4XView
Returns the Panel stored at the specified index. - getSize As Int
- getTouchWidth As Float
Gets or sets the touch panel width
Default: 100dip - GetValue (Index As Int) As Object
Returns the Value stored at the specified index. - Initialize (Callback As Object, EventName As String) As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - NextPage As String
- Pause As String
Call Resume to start - PreviousPage As String
- RemovePageAt (Index As Int) As String
- Resume As String
Call Pause to stop - setAutoPlay (Enabled As Boolean) As String
- setIndex (Index As Int) As String
- setTouchWidth (Width As Float) As String
- Properties:
- AutoPlay
- HeaderPanel As B4XView [read only]
- Index As Int
- Size As Int [read only]
- TouchWidth As Float
Gets or sets the touch panel width
Default: 100dip
- Events:
- 1.00
- Release
- 1.01
- B4A - Click events of views are now triggered
- Add ResetAutoPlay - Resets the autplay on the current index
Attachments
Last edited: