我有这个代码:
Serializable newList;
newList=extras.getSerializable("list");
Iterator<Element> itr =( (List<Element>) newList).iterator();
Element froga=null;
while (itr.hasNext()) {
Object element = itr.next();
Log.i("***Selected Tab", "Im currently in tab with index::" + element);
}
列表是这样的: HashMap < String, String >
并输出:
Im currently in tab with index::{L=blablabla, T=blablaba}
如何选择 L? 我可以选择带有索引之类的特定元素吗?
十分感谢!