¡@

Home 

2014/10/16 ¤W¤È 08:17:23

android Programming Glossary: key_item

How to parse same name tag in Android XML DOM Parsing

http://stackoverflow.com/questions/17421506/how-to-parse-same-name-tag-in-android-xml-dom-parsing

Activity ListView lv ListAdapter adapter static final String KEY_RESOURCE MyResource parent node static final String KEY_ITEM Item ArrayList HashMap String String mylist new ArrayList HashMap String String String from KEY_ITEM int to R.id.mylist_item.. final String KEY_ITEM Item ArrayList HashMap String String mylist new ArrayList HashMap String String String from KEY_ITEM int to R.id.mylist_item @Override protected void onCreate Bundle savedInstanceState TODO Auto generated method stub super.onCreate.. for int i 0 i nl.getLength i HashMap String String map new HashMap String String Element e Element nl.item i map.put KEY_ITEM parser.getValue e KEY_ITEM mylist.add map My XML Parser Class import java.io.IOException import java.io.StringReader import..