Android Question drawing circle with dot (on Title)

mw71

Active Member
Licensed User
Longtime User
Hi

- how can i draw a circle with a "red dot" on xxx°?
- how can i do this on Activity Titel?

Thanks
 

Mahares

Expert
Licensed User
Longtime User
You can do something like this using CSBuilder:
B4X:
Dim cs As CSBuilder
    cs.Initialize.Size(30).Typeface(Typeface.MONOSPACE)
    cs.Append("Bulls Eye: ").Image(LoadBitmap(File.DirAssets, "reddot.png"), 40dip, 40dip, False).PopAll
    Activity.Title = cs
For goodness sake, you should at least try to type the word title correctly. It is not titel; it is title. I know English is not the native language for many of us, but it makes it easier for people searching the forum when the word is spelled correctly. It is even typed for you in the IDE.
 

Attachments

  • reddot.png
    reddot.png
    5.9 KB · Views: 245
  • title.png
    title.png
    5.9 KB · Views: 246
Upvote 0

mw71

Active Member
Licensed User
Longtime User
Hello,
CSBouilder looks good.
Is there a way to "rotate" the image? I need it as direction indicator.

Thanks

ps: Titel is change to Title :)
 

Attachments

  • ring.png
    ring.png
    8.6 KB · Views: 205
  • ring1.png
    ring1.png
    8.6 KB · Views: 215
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Is there a way to "rotate" the image? I need it as direction indicator.

B4X:
Dim cs As CSBuilder
    cs.Initialize.Size(30).Typeface(Typeface.MONOSPACE)
    cs.Append("Bulls Eye: ").Image(LoadBitmap(File.DirAssets, "reddot.png").Rotate(45), 40dip, 40dip, False).PopAll
    Activity.Title = cs
 

Attachments

  • reddotrotated.png
    reddotrotated.png
    5.9 KB · Views: 231
Upvote 0
Top