I am using Donmanfred's iconbutton library, and want to display one of Googles material icons on quite a small button.
What I get is a square filled with the color of the icon.
I thin it must be a problem with size.
Are the icons resized during display, or do I have to take care of the size?
What I get is a square filled with the color of the icon.
I thin it must be a problem with size.
Are the icons resized during display, or do I have to take care of the size?
B4X:
Dim bm As BitmapDrawable
bm.Initialize(LoadBitmap(File.DirAssets,"ic_play_black_48dp.png"))
' bm.Initialize(LoadBitmap(File.DirAssets,"ic_play.png"))
bm.Gravity=Gravity.FILL
b.IconPadding=1
b.setIcon(False,bm)