B4A Library Avatar Generator

This library gives you avatar like Telegram.
You can set color or use unique color based on your label.


Sample Code:
B4X:
Dim AG As AvatarGenerator
AG.Initialize.AvatarSize(64).TextSizePercentage(50).Label(Name).ToCircle

AG.Build 'To get bitmap
AG.Build2 'To get bitmapdrawable


B4A Library:

AvatarGenerator
Author:
MilaDesign
Version: 1.50

Methods:

  • Initialize
  • AvatarSize(Size As Int)
  • TextSizePercentage(TextSize As Int)
  • Label(Label As String)
  • BackgroundColor(Color As Int)
  • Typeface(Typeface As Typeface)
  • ToCircle
  • ToSquare
  • Build
  • Build2

Properties:

  • RANDOM As Int
 

Attachments

  • AvatarGenerator.zip
    4.3 KB · Views: 247
  • Sample.zip
    9.1 KB · Views: 261
Cookies are required to use this site. You must accept them to continue using the site. Learn more…