iOS Question Horizontal xCustomlistview resize problem

hammad78

Member
Licensed User
Longtime User
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:

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
 

Attachments

  • cLV.jpg
    cLV.jpg
    25.1 KB · Views: 95

Sagenut

Expert
Licensed User
Longtime User
Activity project or B4XPages project?
 
Upvote 0
Top