I Have A listview(with2 labels and bitmap). i know how to save the listview to file, but how do i save listview(with 2 labels and bitmap) to file and retrieve text and bitmap to view in a listview.
many thx in advance.
Hi Erel
(this is for testing only and of coarse learning).
at the moment i have 1 listview(2labelsand bitmap)
2 button
2 pictures in files tab
the buttons add date/time and a picture(different pics for each button)
i have been using this code to write singleline listview
B4X:
s = DateTime.now
DateTime.DateFormat = "yyyyMMdd"
dT = DateTime.Date(s)
Dim MyList As List
Dim li As Int
MyList.Initialize
For li = 0 To ListView1.Size -1
MyList.Add(ListView1.GetItem(li))
Next
File.WriteList(dir,dT & ".Txt",MyList)
MyList.Clear
You can use AddTwoLinesAndBitmap2 and add a Type with all the required information. You will then be able to retrieve this information with ListView.GetItem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.