How to bind ArrayList Objects to android GridView?
问题 I've a collection of array list objects like: ArrayList<Person> persons=new ArrayList<Person>(); so how can i bind this list of objects persons to android gridview ? 回答1: GridView settingGrid; ArrayList<Person> persons; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.setting); persons =new ArrayList<Person>(); settingGrid = (GridView)findViewById(R.id.settinggridview); settingGrid.setAdapter(new SettingImageAdapter(this));