B4J Library [B4X] [XUI] [B4xLib] SD LoadingIndicator

This library is an update of this source based on @Erel's code (here)
New indicators in the shape of Heart, Infinity, Bubble have been added and some bugs have been fixed.

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. If you want to study the code, a part of it can be found in the links above. Those are public and you can use them.

SD_LoadingIndicator

Author:
Star-Dust
Version: 0.01
  • SD_LoadingIndicator
    • Functions:
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
        Base type must be Object
      • Hide
      • Initialize (Callback As Object, EventName As String)
      • Show

Video 1.gif
 

Attachments

  • SD_LoadingIndicator.B4xLib
    3.4 KB · Views: 197
  • B4j Sample.zip
    2.4 KB · Views: 141
  • B4a Sample.zip
    8.7 KB · Views: 145
  • b4i Sample.zip
    2.6 KB · Views: 105
  • B4XPages_LoadingIndicators.zip
    16.8 KB · Views: 141
Last edited:

Star-Dust

Expert
Licensed User
Orrenda! Horrible

View attachment 105898

I was trying to imitate one I saw. I'll fix it. It does not use your library 😁 (nor the canvases, at the moment, just 3 Labels, but I will have to do it, so it doesn't work).

I would like to show you what I saw but underneath there is a well-known brand :confused:
Above is a link of my code that you can use from the older version of the library.
This new one has some indicators with a code that I have studied a lot and would like to keep for myself. All the others can be found in the codes I write about in the first post.

Your indicator is interesting, but I think it should tighten in the center and not in the lower right. It does not maintain the proportions of the squares and the frame or border as you reduce in size must also be reduced proportionally
 

LucaMs

Expert
Licensed User
Your indicator is interesting, but I think it should tighten in the center and not in the lower right. It does not maintain the proportions of the squares and the frame or border as you reduce in size must also be reduced proportionally
Per questo ti ho detto che è orribile, hehehe.
This is why I wrote it is horrible!

The intention was to get a different animation from that; that was the first attempt, without thinking 2 seconds.

Anyway now I'm discovering something... probably a bug or... I'm completely stupid! I will let you know.
 

oparra

Well-Known Member
Licensed User
Already discussed with Erel, and not allowed. Otherwise we would have published the bas files.

B4xlib is published for these reasons:
1. Best for the compiler. Changing compiler version to older libraries versions may have problems. So there are no problems
2. You use only one file for all platforms and not one for single platform
3. In the case of B4i, if you use the Builder, you need to ask for permission from erel to build a library. With B4xLib it is not necessary

The latter reason is the main reason why I use the B4xLib.

P.S. It is clear that there is a risk, but going to publish changes as Oparra did seems excessive to me.
It's like stealing a neighbor's bike and walking in front of the window with the stolen bike .... At least hide ... Then if the neighbor calls the police, don't complain
I understand and respect your comments, regarding your B4xLib (MIT license or another?), I know there is time and work in the development of adding new spinners to the published @Erel, and good job @Star-Dust.

I wonder:
Can the B4xLibs published by @Erel be decompressed, to add, modify and adapt them to particular needs?

Tips
- It will work properly in debug mode but will not be smooth. Should look good in release mode.
- You can change the duration of a single cycle. The default is 1000ms. For some of the types such as Arc 1 and Arc 2 it makes sense to change it to about 2000.
- See the code. Shouldn't be difficult to add more types of animations.
- In B4A you should add this code in Activity_Resume:

Regards,
 

Star-Dust

Expert
Licensed User
I understand and respect your comments, regarding your B4xLib (MIT license or another?), I know there is time and work in the development of adding new spinners to the published @Erel, and good job @Star-Dust.

I wonder:
Can the B4xLibs published by @Erel be decompressed, to add, modify and adapt them to particular needs?



Regards,
Thanks for understanding.
For Erel's Libraries, you should ask him.

I asked for the source of a compiled library and he gave it to me. So he will probably say yes. But the important thing is to respect the developer and ask.

Many of my sources are open and free, others I have chosen to keep closed. However you can access the sources of the previous version that I made them public and they will surely be useful to create your own custom
 
Top