B4J Library [B4X] SD_ImageView

I created a custom ImageView view that allows you to upload an image from the web.
Just pass the URL as a parameter
This class is B4X but does not depend on the XUI library

NOTE: You can use this library for personal and commercial use. Include it in your projects.. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author


: Star-Dust
Version: 0.03

  • SD_ImageView
    • Events:
      • LongClick
      • OneClick
    • Fields:

      • NatObject As ImageView
      • Zoom As Boolean
    • Functions:

      • BringToFront
      • DesignerCreateView (Base As Panel, Lbl As Label, Props As Map)
      • GetBase
      • Initialize (Callback As Object, EventName As String)
      • RemoveViewFromParent
      • RequestFocus
      • SendToBack
    • Properties:

      • Bitmap As Bitmap [write only]
      • Enable As Boolean [write only]
      • Gravity As Int [write only]
      • Height As Float [write only]
      • Left As Float [write only]
      • PreserveRatio As Boolean [write only]
      • Tag As Object [write only]
      • Top As Float [write only]
      • UrlBitmap As String [write only]
      • Visible As Boolean [write only]
      • Width As Float [write only]

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Private SD_ImageView1 As SD_ImageView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
End Sub

Sub SD_ImageView1_OneClick

End Sub

Sub SD_ImageView1_LongClick

End Sub


  • aSample.zip
    9.1 KB · Views: 451
  • jSample.zip
    2 KB · Views: 439
  • iSample.zip
    2.4 KB · Views: 354
  • SD_ImageView.b4xlib
    3.2 KB · Views: 367
Last edited:


Licensed User
I don't know what is the problem :oops:
The choice of available software is protected by copyright. This means that only the owner of these rights can choose the name of the product, distribute and modify its source code.

Some developers waive the right to profit from it and distribute their product for free.

Few others decide to renounce the right to be the only distributor of the sw and grant others the right to redistribute it.

Still others give up the right to modify the code, and make the project open, so that others can modify and improve it.

Ho ancora incontrato nessuno che dà il diritto di scegliere il nome del loro software e io non voglio essere il primo a farlo. Così mi riservo il diritto di stabilire il suo nome🧐

I understand that everyone is free to do as they wish
Thank's 👍
Last edited:


Well-Known Member
Licensed User
Longtime User
To solve your issue I simply uninstalled your library and don't think I'll ever use your libraries again. 👍

There are people who seem to be great just because they put 2 initial letters of their name on the name of libraries and who does not care much if users has hard time to search that libraries on the Library Tab if he hasn't used it for maybe a long time and luckily there they are people like me who do not care that their name appears on the name of the library, in fact as I said in none of my libraries appear my name, that libraries I will release next, some also opensource on github with the complete code as Erel did in the B4X github repository.

But I fully realize that not all people on this planet can think of it the same way.

If you wanted an user not to change the name of your library because it is bad for the reason explained above, you should have avoided publishing it as a b4xzip library, you were aware of what you were doing, in fact I will do this only with libraries that I want make public, most but not all, and not only users will be able to feel free to change their name (only for personal use and not to redestribuite it with changed name) but above all to make sure that people can help and help change and improve and speed up the code.

Erel from this point of view has offered a great tool with which you can distribute libraries to anyone who wants to improve them and with all the contents they need within the b4xzip file, a super brilliant idea because it allows you to have everything you need inside a single file for the project, like as java executable works.

Your philosophy is totally opposite to all this, you want the name not to be changed (even on a single local machine, and just for praticity), and what happens then if I change the code to correct some bugs that I find and that you have left?

And note that I changed it's code on first run (other users too) on B4J because the example you distribuited not compiled and returned an error because no 'xm' variable declared, this means that you have distributed it without actually testing on the B4J IDE. Very good 👍
Last edited: