B4J Question [ABMaterial] center icons in float button

alienhunter

Active Member
Licensed User
Longtime User
Hi ,
i have a understanding problem , with a contanier and this grid

B4X:
    openshipcount.AddRows(1,True,"").AddCellsOS(1,10,10,0,1,1,1,"").AddCellsOS(5,10,10,0,2,2,2,"").AddCellsOS(1,10,10,0,1,1,1,"")
    openshipcount.AddRows(1,True,"").AddCellsOS(3,0,0,0,4,4,3,"").AddCellsOS(3,0,0,0,12,12,1,"")
    openshipcount.BuildGrid ' IMPORTANT!

floating buttons do not align icon in center

B4X:
    Dim btn6 As ABMButton
    btn6.Initializefloating(page, "btn4", "mdi-action-account-circle", "transparent")
    btn6.size = ABM.BUTTONSIZE_Normal
    btn6.IconAlign=ABM.ICONALIGN_CENTER
    openshipcount.Cell(2,6).AddComponent(btn6)


any suggestions ?
thanks AH

floatbuttons.PNG
 
Last edited:
Top