B4J Question [ABMaterial] [Solved] ABMImage and ABMlabel

magi6162

Well-Known Member
Licensed User
Longtime User
I'm trying to put an abmlabel (with a transparent background) on an ABMImage, but without success.
It's possible? If yes, how?
As always, I thank you for your help.
 

Harris

Expert
Licensed User
Longtime User
Does bring to front do anything for the label.
 
Upvote 0

magi6162

Well-Known Member
Licensed User
Longtime User
i use in buildpage:
B4X:
    page.AddRowsM(1,True,10,20,"").AddCellsOS(1,0,0,0,12,6,4,"")
    page.BuildGrid ' IMPORTANT!
in ConnectPage:
B4X:
         Dim cnt1 As ABMContainer
        cnt1.Initialize(page,"cnt1","")
      
        cnt1.AddRowsM2(1,True,5,15,0,0,"").AddCells12MP(1,0,0,0,0,"")
        cnt1.BuildGrid ' IMPORTANT!
      
        Dim img1 As ABMImage
        img1.Initialize(page,"img1,"../images/img1.png",1.0)
        img1.IsCircular = False
        img1.IsMaterialBoxed = False
        img1.IsResponsive = True
        img1.IsClickable = True
      
        cnt1.Cell(1,1).AddComponent(img1)
      
        Dim lbl As ABMLabel
        lbl.Initialize(page,"lbl1","Prova",ABM.SIZE_H6,True,"ltrasp")
      
        cnt1.Cell(1,1).AddComponent(lbl)
        cnt1.Refresh
      
        page.Cell(1,1).AddComponent(cnt1)
Style:
B4X:
    MyTheme.AddLabelTheme("ltrasp")
    MyTheme.Label("ltrasp").BackColor = ABM.COLOR_TRANSPARENT
    MyTheme.Label("ltrasp").ForeColor = ABM.COLOR_YELLOW
    MyTheme.Label("ltrasp").Align = ABM.TEXTALIGN_CENTER
    MyTheme.Label("ltrasp").ZDepth = ABM.ZDEPTH_4

don't work....:(
 
Last edited:
Upvote 0
Top