Android Question Getstring from listview with two lines

RobRock92

Member
Licensed User
Longtime User
B4X:
ListView1.AddTwoLinesAndBitmap(Main.cclienti.GetString("ID"), Main.cclienti.GetString("ragionesociale"),LoadBitmap(File.DirAssets,"Client-icon.png"))

how can I do to put the first line in a textbox and the second line in another textbox? thanks...
 

LucaMs

Expert
Licensed User
Longtime User
B4X:
ListView1.AddTwoLinesAndBitmap(Main.cclienti.GetString("ID"), Main.cclienti.GetString("ragionesociale"),LoadBitmap(File.DirAssets,"Client-icon.png"))

how can I do to put the first line in a textbox and the second line in another textbox? thanks...

Use AddTwoLinesAndBitmap2 - it accepts a 4h parameter, ReturnValue:

B4X:
Dim arrItemText(2) as String
arrItemText(0) = Main.cclienti.GetString("ID")
arrItemText(1) = Main.cclienti.GetString("ragionesociale")
ListView1.AddTwoLinesAndBitmap2(arrItemText(0), arrItemText(1), LoadBitmap(File.DirAssets,"Client-icon.png"), arrItemText)

' then, to get...
Dim arrResultText(2) as String
arrResultText = ListView1.GetItem(AnIndex)

(I have not tested this)
 
Last edited:
Upvote 0
Top