is it possible to add B4XFloatTextField programatically?
i need to add and remove multiple B4XFloatTextField to a panel and i prefer not to create all of them in design view.
Create panel with B4XFloatTextField:
Try
PN_CRIA_PARCELA.Initialize("PN_CRIA_PARCELA")
PN_CRIA_PARCELA.Color=Colors.LightGray
'**** DIMENSIONA ****
Dim LB_QTT As B4XFloatTextField
LB_QTT.Initialize(CALLBACK,"LB_QTT")
Dim ET_QTT As EditText=LB_QTT.TextField
'**** ESTILIZA ****
'**** INSERE NA LISTA ****
PN_CRIA_PARCELA.AddView(ET_QTT,1%x,10%y,40%x,10%y)
'****
Catch
Log(LastException)
End Try
Activity.AddView(PN_CRIA_PARCELA,0%x,10%y,100%x,83%y)
Custom views are designed to be added with the designer. It is however very simple to create a layout file with the custom view and load it multiple times. Tip: remove the call to AutoScaleAll from the designer script. Complete example: Sub Globals Private B4XSwitch1 As B4XSwitch End...