B4A Class [B4X] [XUI] AS Onboarding View V1.8

Discussion in 'Additional libraries, classes and official updates' started by Alexander Stolte, Mar 3, 2019.

  1. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    The Header is not a image, you can put a image in the header, but the header is a B4xView it can also be a panel with parents. So you have the controll over the header, not the Class, the class is only resizing the Header if the width or height of the view is changed.
     
  2. Gunther

    Gunther Active Member Licensed User

    Please re-check V1.6: The B4J example is displaying only an empty small window

    the DrawIndicators don't have the Height parameter in 2x calling lines.

    As requested by the 'Private Sub DrawIndicators(Height As Float)'
     
    Last edited: Mar 17, 2019
  3. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    I have upload the wrong example project, sorry :rolleyes:

    Fixed in 1.7

    -V1.7
    • Add BackgroundImage
    • Add TagOfPage Set or Get the Tag on a Index
    Background Image
    Screenshot_20190317-134546__01.jpg
     
  4. Gunther

    Gunther Active Member Licensed User

    Ok, with a few modifications like:

    • giving back the AS ViewSizes:
    Code:
    Public Sub getWidth As Int
       
        
    Return mBase.Width
       
    End Sub
    Public Sub getHeight As Int
       
        
    Return mBase.Height
       
    End Sub
    • and changing the two lines in the GenImageViews-Sub:
    Code:
    Private Sub GenImageViews(ImageName As StringAs ImageView
       
        
    Private ImageView1 As ImageView
        ImageView1.Initialize(
    "")
        ImageView1.SetLayoutAnimated(
    0,0,0Activity.Width, Activity.Height*ASOnboarding1.Header_Size/100)
        ImageView1.Bitmap = xui.LoadBitmapResize(
    File.DirAssets,ImageName, ASOnboarding1.Width, ImageView1.Height, True)
        
    Return ImageView1
       
    End Sub
    The result is like I would like to have it. Thanks again.
     
  5. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    You dont need this, Because i have. .BaseView as a property.

    But the same result you have with .BackgroundImage = Loadbitmapresize...

    Or not? :)
     
  6. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    Ahhhh i see ,this is the example Code not the code in the class
     
  7. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    Code:
    Private Sub GenImageViews(ImageName As StringAs ImageView
      
        
    Private ImageView1 As ImageView
        ImageView1.Initialize(
    "")
        ImageView1.SetLayoutAnimated(
    0,0,0, MainForm.RootPane.Width, MainForm.RootPane.Height*ASOnboarding1.Header_Size/100)
        
    #If B4J
        ImageView1.SetImage(xui.LoadBitmapResize(File.DirAssets,ImageName, ASOnboarding1.BaseView.Width, ImageView1.Height, True))
        #Else
        
         ImageView1.Bitmap = xui.LoadBitmapResize(File.DirAssets,ImageName, ASOnboarding1.BaseView.Width, ImageView1.Height, True)
        
    #End If
      
        
    Return ImageView1
      
    End Sub
     
  8. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    -V1.8
    • Add Partingline + Visible + Color + BorderWidth Property
    • Add Indicator Active and Inactive Color Property
    • BugFixes
    • Add b4xlib
     
    Almora, inakigarm and Erel like this.
  9. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    Good Job!
     
    Alexander Stolte likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice