The simple way to add items to a Custom List View is by using the AddTextItem method.
This method takes 2 arguments: a Text object and a Value object.
Usually the Text object is a string containing a name or some text composed of concatenated string pieces.
And the Value object contains an index for the listitem.
In this example you can learn how to use other elements in the Custom List View item line.
An image and a text label are added to a panel and that panel is then added to the Custom List View.
There are examples of 3 events: a Custom List View ItemClick event, an ImageView images_Click event and a Label titles_Click event.
These events each trigger a different action.
You can read the comments in the code to better understand what is going on.
Attached you can find the zip file of the clvtest project.
Happy coding!
Paul
Note: a Custom List View can replace a ScrollView in most cases.
This method takes 2 arguments: a Text object and a Value object.
Usually the Text object is a string containing a name or some text composed of concatenated string pieces.
And the Value object contains an index for the listitem.
In this example you can learn how to use other elements in the Custom List View item line.
An image and a text label are added to a panel and that panel is then added to the Custom List View.
There are examples of 3 events: a Custom List View ItemClick event, an ImageView images_Click event and a Label titles_Click event.
These events each trigger a different action.
You can read the comments in the code to better understand what is going on.
Attached you can find the zip file of the clvtest project.
Happy coding!
Paul
Note: a Custom List View can replace a ScrollView in most cases.