Android Question Expandable Panels - add view

fasilosman

Active Member
Licensed User
Longtime User
Hi,
I am using Expandable panels class.
When I tried to add a label in expandable panel I get the error - cannot find symbol.
But I can add layout to the expandable panel.

Below my code and error. Please correct me.

2ebrdx4.png


B4X:
 Dim DisL(5) As Label
        DisL(0).Initialize("LBL")
        DisL(0).Text = "Soft-touch cotton jersey" & CRLF & "Model's height: 6'1.5”/187 cm" & CRLF & "Model Is wearing: Size Medium" & CRLF & "Body: 100% Cotton"
       
        expPnls(0).Initialize("expPnls" , "AddToCart" )
        pnls(0) = expPnls(0).AsPanel
        SView.Panel.AddView(pnls(0),0,Top,100%x,20%x)
        expPnls(0).AsPanel.AddView(DisL(0),10%x,2%xs,80%x,15%x)
        expPnls(0).setSpeed(1,15)
        expPnls(0).maxHeight = 300Dip
        expPnls(0).minHeight = 20%x
        expPnls(0).Collapse
 
Top