Apr 15, 2022 This library gives you avatar like Telegram. You can set color or use unique color based on your label. Sample Code: B4X: Copy 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 AvatarGenerator.zip 4.3 KB · Views: 523 Sample.zip Sample.zip 9.1 KB · Views: 567 Click to expand...
This library gives you avatar like Telegram. You can set color or use unique color based on your label. Sample Code: B4X: Copy 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