Android Question Set color code dynamically in B4XLoadingIndicator

PumaCyan

Member
Licensed User
Hi all...
how to dynamically set the code for the B4XLoadingIndicator object
so that I don't have to change them one by one when there is a change in the color theme in the application

line of code that I used before :
B4XLoadingIndicator.mBase.Color = xui.Color_Blue
 

Attachments

  • error1.jpeg
    error1.jpeg
    35.6 KB · Views: 61

PumaCyan

Member
Licensed User
I mean the color of the indicator...
for the example in the middle top indicator image, the color is blue
i want to change it in code form, not from layout property
 

Attachments

  • B4XLoadingIndicator.gif
    B4XLoadingIndicator.gif
    238.2 KB · Views: 66
Upvote 0

PumaCyan

Member
Licensed User
Currently the color field is private (clr). Extract B4XLoadingIndicator.bar from XUI Views.b4xlib (=zip file). Rename it and add it to your project. Make clr public and change it when needed.

ok i will try it
Thank you for your help...
 
Upvote 0
Top