У меня есть 2 элемента тегов, которые я хочу добавить в 2 edittexts списка.
Как мне это сделать?
String[] from = new String[] {"col_1", "col_2"};
int[] to = new int[] { R.id.editText1, R.id.editText2 };
List<HashMap<String, String>> fillMaps = new ArrayList<HashMap<String, String>>();
HashMap<String, String> map;
Document doc = Jsoup.parse(test);
Elements tdsFromSecondColumn = doc.select("td:eq(0)");
Elements tdsFromSecondColumn1 = doc.select("td:eq(1)");
for (Element tdFromSecondColumn: tdsFromSecondColumn) {
map = new HashMap<String, String>();
map.put("col_1", tdFromSecondColumn.text());
map.put("col_2", ?????);
fillMaps.add(map);
SimpleAdapter adapter = new SimpleAdapter(AndroidLogin.this, fillMaps, R.layout.test, from, to);
kp.setAdapter(adapter);