Android Question how get words complete in the listview in tne twolines?

oscar cabrales

Member
Licensed User
Longtime User
hi, i want know how do for that the words look full in the screen on the second line of the listview item, for example the letter p and g show incomplete in the listview.

look me screenshot and me code:
B4X:
 Case consultas
            ' añade los nombres a el listView
            ListView1.Clear
            Dim nombres As List
            nombres = parser.NextArray 'returns a list with maps
            For i = 0 To nombres.Size - 1
                Dim m As Map
                m = nombres.Get(i)
                'We are using a custom type named TwoLines (declared in Sub Globals).
                'It allows us to later get the two values when the user presses on an item.
              ''Dim tl As TwoLines
                ''tl.First = m.Get("id") &" "& m.Get("fecha")
                ''tl.Second = m.Get("chat")
                Dim w,q,e As String
                w= m.Get("id")
               
                q=m.Get("chat")
                e= m.Get("fecha")
                'ListView1.AddTwoLines2
                Dim labellist As Label
               
                labellist=ListView1.SingleLineLayout.Label
                labellist.Text=5
                labellist.Height=60
                labellist.TextColor= Colors.Green 
                ListView1.AddSingleLine2(w&":"&q,e)
                'ListView1.AddSingleLine2 (w&":"&q&""&e,w)
                ''ListView1.AddTwoLines2(tl.First, tl.Second, tl)
               
               
           
           
               

            Next
            ProgressDialogHide
           
            End Select 
        ListView1.SetSelection(23)
        Else
        ToastMessageShow("Error: " & Job.ErrorMessage, True)
    End If
    Job.Release
   
End Sub
 

Attachments

  • shot_2013-12-04_20-04-12[1].png
    shot_2013-12-04_20-04-12[1].png
    38.8 KB · Views: 274
Top