How to use CustomAdapter with ListView from XML Async Task
I achieved populate a ListView using StringBuilder from a Internet XML Source. With this code the listView is populated with only one String but I want populate the listview by elements: getIdLine and getTimeLeft (With CustomAdapter ) for customize the layout of the listView items in separated Strings. How to achieve this? EDITED CODE FragmentActivity.class private ListView listViewEMT; private ArrayList<HashMap<String, String>> yourList; ... AsyncTask protected void onPostExecute(String string) { super.onPostExecute(string); CustomAdapter adapter = new CustomAdapter(getActivity(), yourList);