This library gives you avatar like Telegram.
You can set color or use unique color based on your label.
Sample Code:
B4A Library:
AvatarGenerator
Author: MilaDesign
Version: 1.50
Methods:
Properties:
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