package com.tsh.myadapter;
import java.util.ArrayList;
java.util.HashMap;
java.util.List;
java.util.Map;
android.app.Activity;
android.os.Bundle;
android.widget.ArrayAdapter;
android.widget.ListView;
android.widget.SimpleAdapter;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ListView lv_list=(ListView) findViewById(R.id.lv_list);
List<Map<String,Object>> data=new ArrayList<Map<String,Object>>();
Map<String,Object> map1=new HashMap<String,Object>();
map1.put("tv_name","电话");
map1.put("iv_icon",R.drawable.ic_menu_call);
Map<String,Object> map2=();
map2.put("tv_name","短信");
map2.put("iv_icon"();
map3.put("tv_name","摄像");
map3.put("iv_icon"new SimpleAdapter(this,R.layout.list2_item,new String[]{"tv_name","iv_icon"},1)">new int[]{R.id.tv_name,R.id.iv_icon}));
}
}