I\'m developing an application with ListView
for Student Marklist creation.
In this application, the List have 10 students. There are four grades provided f
This is a sample example of custom adapter for listview. Modify it as your need: XML layout :
news.java :
List> fillMaps = new ArrayList>();
String[] from = new String[] {"details", "date"};
int[] to = new int[] { R.id.item1, R.id.item2};
ListView lv= (ListView)findViewById(R.id.listview);
HashMap map = new HashMap();
map.put("details", "This is a sample message");
map.put("date", "24-07-2003");
fillMaps.add(map);
SimpleAdapter adapter = new SimpleAdapter(this, fillMaps, R.layout.grid_item, from, to);
lv.setAdapter(adapter);