Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<HashMap<String, String>> fillMaps;
- private SimpleAdapter adapter;
- list = (ListView) findViewById(android.R.id.list);
- // My data
- fillMaps = new ArrayList<HashMap<String, String>>();
- adapter = new SimpleAdapter(this, fillMaps, R.layout.questions_list,
- new String[] {"train", "to"},
- new int[] {R.id.TRAIN_CELL, R.id.TO_CELL});
- for ( int i = 0; i < obj.length(); i++ )
- {
- HashMap<String, String> map = new HashMap<String, String>();
- question_id = o.getString("question_id");
- question = o.getString("question");
- question_by_member_id = o.getString("member_id");
- map.put("train", question);
- map.put("from", ">");
- fillMaps.add(map);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement