Hello,
the next view to make the B4X life easier
The view was written from scratch and is not compatible with the ASOnboarding.
First, 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.
Features
AS SlidingOnboarding
Author: Alexander Stolte
Version: 2.00
the next view to make the B4X life easier
The view was written from scratch and is not compatible with the ASOnboarding.
First, 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.
Features
- cross-platform compatible
- Slide between pages (ASViewPager)
- fully customizable
- Next,Back,Skip,Finish Button
- Use your own layout
- 3 Header Sizes
- Events
- Use a image as background
read the dependencies of the ASViewPager to avoid errors
B4j: jXUI,ASViewPager
B4a: XUi,ASViewPager
B4i: =iXUI,ASViewPager
B4j: jXUI,ASViewPager
B4a: XUi,ASViewPager
B4i: =iXUI,ASViewPager
AS SlidingOnboarding
Author: Alexander Stolte
Version: 2.00
- AS_SlidingOnboarding
- Events:
- BaseResize (Width As Double, Height As Double)
- GetStartedButtonClick
- PageChange (Index As Int)
- SkipButtonClicked (Mode As String)
- Fields:
- Tag As Object
- Functions:
- AddPage (HeaderText As String, Description As String, BackgroundColor As Int, HeaderLayout As B4XView, Value As Object) As String
- Base_Resize (Width As Double, Height As Double) As String
- BottomPanel (Index As Int) As B4XView
gets the Bottom Panel - Class_Globals As String
- Clear As String
- DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
Base type must be Object - GenerateImageView (ImageName As String) As B4XView
- getBottomButtons As AS_SlidingOnboarding_BottomButtons
- getBottomProperties As AS_SlidingOnboarding_BottomProperties
Call RefreshBottom if you change something - getCurrentIndex As Int
- getCustomListView As b4j.example.jpager
The View is based of the ASViewPager and this Pager is based on the xCustomListView - getDescriptionProperties As AS_SlidingOnboarding_DescriptionProperties
- getHeaderHeight As Float
gets the Header Height - getHeaderProperties As AS_SlidingOnboarding_HeaderProperties
- getIndicatorActiveColor As Int
- getIndicatorInactiveColor As Int
- getLoadingPanelColor As Int
- getSize As Int
- getSkipButtonMode As String
- getViewPager As b4j.example.asviewpager
This View is based on the ASViewPager - HeaderPanel (Index As Int) As B4XView
gets the Header Area Panel to change the Header Layout - Initialize (Callback As Object, EventName As String) As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - PageBackgroundPanel (Index As Int) As B4XView
If you want to change the background color of a page or you want to add your own views on the full page instead just on the header - RefreshBottom As String
- RemovePage (Index As Int) As String
- setCurrentIndex (index As Int) As String
sets or gets the current index - setHeaderSize (header_size As Float) As String
The header size must be between 25 and 75 if not the value is set to 50 - setIndicatorActiveColor (clr As Int) As String
gets or sets the active indicator color - setIndicatorInactiveColor (clr As Int) As String
gets or sets the inactive indicator color - setLoadingPanelColor (Color As Int) As String
- setShowIndicator (visible As Boolean) As String
- setSkipButtonMode (mode As String) As String
- SkipButtonMode_CLOSE As String
- SkipButtonMode_SKIP As String
- Properties:
- BottomButtons As AS_SlidingOnboarding_BottomButtons [read only]
- BottomProperties As AS_SlidingOnboarding_BottomProperties [read only]
Call RefreshBottom if you change something - CurrentIndex As Int
sets or gets the current index - CustomListView As b4j.example.jpager [read only]
The View is based of the ASViewPager and this Pager is based on the xCustomListView - DescriptionProperties As AS_SlidingOnboarding_DescriptionProperties [read only]
- HeaderHeight As Float [read only]
gets the Header Height - HeaderProperties As AS_SlidingOnboarding_HeaderProperties [read only]
- HeaderSize
The header size must be between 25 and 75 if not the value is set to 50 - IndicatorActiveColor As Int
gets or sets the active indicator color - IndicatorInactiveColor As Int
gets or sets the inactive indicator color - LoadingPanelColor As Int
- ShowIndicator
- Size As Int [read only]
- SkipButtonMode As String
- ViewPager As b4j.example.asviewpager [read only]
This View is based on the ASViewPager
- Events:
- AS_SlidingOnboarding_BottomButtons
- Fields:
- BackButton As B4XView
- FinishButton As B4XView
- IsInitialized As Boolean
Tests whether the object has been initialized. - NextButton As B4XView
- SkipButton As B4XView
- Functions:
- Initialize
Initializes the fields to their default value.
- Initialize
- Fields:
- AS_SlidingOnboarding_BottomProperties
- Fields:
- BackButtonText As String
- FinishButtonText As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - NextButtonText As String
- ShowFinishButton As Boolean
- ShowNextBackButton As Boolean
- ShowSkipButton As Boolean
- SkipButtonText As String
- xFont As B4XFont
- Functions:
- Initialize
Initializes the fields to their default value.
- Initialize
- Fields:
- AS_SlidingOnboarding_DescriptionProperties
- Fields:
- IsInitialized As Boolean
Tests whether the object has been initialized. - TextColor As Int
- xFont As B4XFont
- IsInitialized As Boolean
- Functions:
- Initialize
Initializes the fields to their default value.
- Initialize
- Fields:
- AS_SlidingOnboarding_HeaderProperties
- Fields:
- IsInitialized As Boolean
Tests whether the object has been initialized. - TextColor As Int
- xFont As B4XFont
- IsInitialized As Boolean
- Functions:
- Initialize
Initializes the fields to their default value.
- Initialize
- Fields:
- AS_SlidingOnboarding_Page
- Fields:
- BackgroundColor As Int
- Description As String
- HeaderLayout As B4XView
- HeaderText As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - Value As Object
- Functions:
- Initialize
Initializes the fields to their default value.
- Initialize
- Fields:
- 1.00
- Release
- 1.01
- Add BaseResize Event
- 1.02
- Add SkipButtonClicked Event
- Add SkipButtonMode
- SkipButtonMode_SKIP
- SkipButtonMode_CLOSE
- 1.03
- BugFix
- 1.04
- Add compatibility for AS_ViewPager Version 2.0
- 1.05
- BugFix
- 2.00
- Complete lib. rewrite with new name
- 2.01
- mBase is now public like in all other custom views
Attachments
Last edited: