How can I do fix the xCustomlistview width?
somtimes its working perfectly and other times showing items in a very wrong way, please see attached.
Heres is the code for generating the items:
somtimes its working perfectly and other times showing items in a very wrong way, please see attached.
Heres is the code for generating the items:
B4X:
Sub CreateOFR_ITM(RTS As DB_EXP_OFR) As B4XView
Dim px As B4XView = xui.CreatePanel("")
Dim ht As Int
Try
ht=100dip
px.SetLayoutAnimated(100, 0, 0, 100%x, ht)
If mdl_FNC.USR_LNG=0 Then
px.LoadLayout("OFR_ITM")
Else
px.LoadLayout("OFR_ITM")
End If
lblOFR_ROT.Text=RTS.POL_CNT & " to " & RTS.POD_CNT
lblOFR_PRC.Text=RTS.OFR_VAL & "%"
px.SetLayoutAnimated(100,0,0,100%x,ht)
Catch
Log(LastException)
End Try
Return px
End Sub