Android Question [Solved] Circle with letter in it.

asales

Expert
Licensed User
Longtime User
I want to create an image (bitmap, like this below): a circle with a letter in it.
I found several posts with Canvas or B4XCanvas to create a circle, but I don't know how to create a solid circle and put a character in it.

Thanks in advance for any tip.
 

Peter Simpson

Expert
Licensed User
Longtime User
There are plenty of ways to accomplish that using B4A.

You could for example use the designer > add a 60x60 label > Give the label a corner of radius 60 > Text 'F' > Bold font > Font size about 32 or larger > Generate click event.
To add a shadow you can place the above label in a 60x60 panel > Give the panel a corner of radius 60 > Elevation of 5 > Generate Dim declaration.

You can also use a Button instead of a label.
You can also do the same without using the designer.
It just goes on and on and on...



What exactly are you going to use it for.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…