Android Question How to create sub property within HasLogo in Xui CustomView

Theera

Expert
Licensed User
Longtime User
Refer to this ,How we create Logo under sub of HasLogo. If HasLogo is True then Logo is visibled (actived) else Logo is unvisibled (no actived)
 

aeric

Expert
Licensed User
Longtime User
I think you didn't run my example project. The answer is there.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
I think you didn't run my example project. The answer is there.
I've run your app, but your app can't change icon image.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
If the QR code can change, then the logo can be changed too.
Just write another function to change the logo.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I hope you don't unmark my answer again if I give you a good solution.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I've run your app, but your app can't change icon image.
Hope the following project can help you understand better.
You can unzip the b4xlib to see.
If you want to check the original source project how I developed the b4xlib, you can check on my GitHub link inside this post.

See, not much lines of code. It is not that difficult to change the icon.
Just prepare some transparent PNG files, example with size 200x200 and the logo is centered with size 40x40 to 60x60 pixels.
 
Upvote 0