You can use the built-in two ListView elements. Here is a quick example:
List<Map<String, String>> data = new ArrayList<Map<String, String>>(); Map<String, String> dataMap = new HashMap<String, String>(2); dataMap.put("Item1", item1Str); dataMap.put("Item2", item2Str); data.add(dataMap); dataMap = new HashMap<String, String>(2); dataMap.put("Item1", item1Str); dataMap.put("Item2", item2Str); data.add(dataMap); SimpleAdapter adapter = new SimpleAdapter(getActivity().getBaseContext(), data, android.R.layout.simple_list_item_2, new String[] { "Item1", "Item2" }, new int[] { android.R.id.text1, android.R.id.text2 }); listView.setAdapter(adapter);
Or you can create your own layout resource files and replace the android.R attributes with your resources you created.
source share