Update
- 1.04
- Add compatibility for AS_ViewPager Version 2.0
Add a blank page and after load the layout. Correct?2 - How can a load a custom layout to one page and use texts in the others?
ASSlidingOnboarding1.AddPage("", "", 0, GenImageViews("1.png"), "")
ASSlidingOnboarding1.getPageBackgroundPanel(0).LoadLayout("page1")
asslidingonboarding._ini_views
Fatal Exception: java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1113)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1080)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1030)
at android.graphics.Bitmap.createBitmap(Bitmap.java:991)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:81)
at anywheresoftware.b4a.objects.B4XCanvas.Initialize(B4XCanvas.java:54)
at br.com.myprofiles.asslidingonboarding._ini_views(asslidingonboarding.java:508)
at br.com.myprofiles.asslidingonboarding._designercreateview(asslidingonboarding.java:284)
ASSlidingOnboarding1.AddPage("Check the new options","Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer quis fermentum nunc, et egestas tellus.", 0xFF27A3DF, GenImageViews("premium.png"),"")
ASSlidingOnboarding1.AddPage("", "", 0, GenImageViews("logo.png"), "")
ASSlidingOnboarding1.getPageBackgroundPanel(2).LoadLayout("page3")
Dim bmp As B4XBitmap = xui.LoadBitmap(File.DirAssets, "logo_600.png")
FitImageToView(bmp, ivPage3)
cs.Initialize.Bold.Size(22).Append("Turn on the notification !").Pop.Pop.Append(CRLF).Append(CRLF).Append("Do you want to receive NOTICES and REMINDERS ?")
cs.Append(CRLF).Append("Click in ACTIVATE ").Size(18).Typeface(Typeface.FONTAWESOME).Append(Chr(0xF0F3)).Pop.Pop.Append(CRLF).Append(CRLF)
cs.PopAll
lbInfo33.Text = cs
No it is not possible.1 - Is possible to use BCTextEngine to create a page?
Something like this:2 - How can a load a custom layout to one page and use texts in the others?
ASSlidingOnboarding1.ViewPager.GetPanel(0).LoadLayout("")
I don't know, in the sub where this occurs I have already specified 1dip as minimum for the panel that works with canvas.I put an app in Play Store and - in some devices - I get the error below in Crashlytics.
What could be the problem?
This?Something like this:
B4X:ASSlidingOnboarding1.ViewPager.GetPanel(0).LoadLayout("")
ASSlidingOnboarding1.AddPage("", "", 0, GenImageViews2("1.png"), "")
ASSlidingOnboarding1.ViewPager.GetPanel(0).LoadLayout("page1")
ASSlidingOnboarding1.AddPage("", "", 0, GenImageViews2("1.png"), "")
ASSlidingOnboarding1.getPageBackgroundPanel(0).LoadLayout("onpage1")
ASSlidingOnboarding1.AddPage("", "", 0, GenImageViews2("1.png"), "")
Use what works.Or could use both?
How can I pass a null value in the parameter (headerlayout) - GenImageViews2("1.png"):
ASSlidingOnboarding1.AddPage("Test","Description",xui.Color_Red,xui.CreatePanel(""),"")
I put an app in Play Store and - in some devices - I get the error below in Crashlytics.
B4X:asslidingonboarding._ini_views Fatal Exception: java.lang.IllegalArgumentException: width and height must be > 0
I found this thread:I don't know, in the sub where this occurs I have already specified 1dip as minimum for the panel that works with canvas.
Maybe, found it out. I have changed all the lines with Max(2dip,Could be related to the problem that I mentioned about this crashlytics error?
I updated an app with the new version, but the errors remains in Crashlytics.Maybe, found it out. I have changed all the lines with Max(2dip,
I think you got it!Maybe now. I set the default Width and Height of the canvas target to 2dip, instead of 1dip
very goodI think you got it!
I put 2 apps in Play Store and no errors in Crashlytics.
I might be dumb, but i don't understand how to close the entire view once the user clicks on Get started button...
Sub ASSlidingOnboarding1_GetStartedButtonClick
B4XPages.ClosePage(Me)
End Sub
I might be dumb, but i don't understand how to close the entire view once the user clicks on Get started button...
AS_SlidingOnboarding1.mBase.Visible = False
AS_SlidingOnboarding1.HeaderProperties.xFont.Size
AS_SlidingOnboarding1.HeaderProperties.xFont = xui.CreateDefaultFont(20)
Public Sub setNextButtonText(s As String)
xlbl_NextButton.Text = s
End Sub
Public Sub setBackButtonText(s As String)
xlbl_BackButton.Text = s
End Sub
Public Sub setSkipButtonText(s As String)
xlbl_SkipButton.Text = s
End Sub
Public Sub setFinishButtonText(s As String)
xlbl_FinishButton.Text = s
End Sub