I Have a two dimensional string array,
I want to create a 3 column list-view, that display data from the string array, it should have the same number of rows that the size of the string array.
This is my string array:
String[][] data = {
{"001", "JOHN ","1001" },
{"002", "SIBIN", "1002" },
{"003", "TOM ", "1003" },
{"004", "FREEDY", "1004" }
};
I want to display it in a Listview like
ID NAME VACANCY ID
001 JOHN 1001
002 SIBIN 1002
003 TOM 1003
004 FREEDY 1004
Also when I click a list-view item, it redirect to another page with the listview id
How is this possible? I am new in the android development, I know only the basics, and I only know how to create listview.
for that you need a customize list view first you should add a listview in your main.xml(just an eg) file then create a class like this
R.layout.list_name this will be the new xml file which will load the contents to the list view
and the the final step just in your on create method do this