B4A Library [B4X] [XUI] AS Image Comparison Slider


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. :)

This view was inspired by Image Comparison Slider and this.

  • cross-platform compatible
  • image compare
Bildschirmfoto 2020-05-02 um 03.21.38.png

Author: Alexander Stolte
Version: 1.00

  • ASImageComparisonSlider
    • Fields:
      • xcv_main As B4XCanvas
    • Functions:
      • Class_Globals As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • getDescriptionLabel_Left As B4XView
      • getDescriptionLabel_Right As B4XView
      • getImage1 As B4XView
      • getImage2 As B4XView
      • getSliderLabel As B4XView
      • getSliderPanel As B4XView
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • setImages (img1 As B4XBitmap, img2 As B4XBitmap) As String
    • Properties:
      • DescriptionLabel_Left As B4XView [read only]
      • DescriptionLabel_Right As B4XView [read only]
      • Image1 As B4XView [read only]
      • Image2 As B4XView [read only]
      • SliderLabel As B4XView [read only]
      • SliderPanel As B4XView [read only]
  • 1.0
    • Release
Have Fun :)


  • B4A Example.zip
    348 KB · Views: 464
  • B4I Example.zip
    406.2 KB · Views: 374
  • B4J Example.zip
    346.9 KB · Views: 372
  • ASImageComparisonSlider.b4xlib
    2.1 KB · Views: 483
Last edited:


Licensed User
Very Nice...

How difficult would it be if possible at all to display or mark or flag if there is a difference in the 2 images that is compared..