B4J Library [B4X] [XUI] SD ImageViewMultiple

Discussion in 'B4J Libraries & Classes' started by Star-Dust, May 14, 2019.

  1. Star-Dust

    Star-Dust Expert Licensed User

    This new view allows you to insert up to 4 images and be viewed simultaneously in a view potion (See example images)
    The images are inserted with a small animation that makes the image look like clock hands.

    --------- 2 imeges ----------------- 3 images ----------------- 4 images ---------
    Video1.gif Video2.gif Video3.gif

    upload_2019-5-30_20-58-52.png
    SD_ImageViewMultiple

    Author: Star-Dust
    Version: 0.02
    • SD_ImageViewMultiple
      • Fields:
        • TimeLapse As Int
      • Functions:
        • AddImage (B As B4XBitmap)
        • Class_Globals As String
        • ClearImage As String
        • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
          Base type must be Object
        • Initialize (Callback As Object, EventName As String) As String
        • Invalidate
        • InvalidateAnimate
        • IsInitialized As Boolean
          Verifica se l'oggetto sia stato inizializzato.
        • Rotate

    Code:
    SD_ImageViewMultiple1.ClearImage
    SD_ImageViewMultiple1.AddImage(xui.LoadBitmap(
    File.DirAssets,"b4a.png"))
    SD_ImageViewMultiple1.AddImage(xui.LoadBitmap(
    File.DirAssets,"b4j.png"))
    SD_ImageViewMultiple1.AddImage(xui.LoadBitmap(
    File.DirAssets,"b4i.png"))
    SD_ImageViewMultiple1.AddImage(xui.LoadBitmap(
    File.DirAssets,"b4x.png"))
    And it is also possible to rotate the portions displayed with the rotate command.
    Code:
    SD_ImageViewMultiple1.Rotate
     

    Attached Files:

    Last edited: May 30, 2019
  2. Star-Dust

    Star-Dust Expert Licensed User

    Update rel 0.02
     
  3. MathiasM

    MathiasM Member Licensed User

    Cool effect!
     
    Star-Dust 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