当前位置: 代码迷 >> Android >> SimpleCursorAdapter 是设计形式?名字叫什么
  详细解决方案

SimpleCursorAdapter 是设计形式?名字叫什么

热度:96   发布时间:2016-05-01 18:00:19.0
SimpleCursorAdapter 是设计模式?名字叫什么?
String uriString = “content://contacts/people/”;
Cursor myCursor = managedQuery(Uri.parse(uriString), null, null, null, null);
String[] fromColumns = new String[] {People.NUMBER, People.NAME};
int[] toLayoutIDs = new int[] { R.id.nameTextView, R.id.numberTextView};
SimpleCursorAdapter myAdapter;
myAdapter = new SimpleCursorAdapter(this,R.layout.simplecursorlayout,myCursor,fromColumns,toLayoutIDs);
myListView.setAdapter(myAdapter);

------解决方案--------------------
就叫Adapter
------解决方案--------------------
叫适配器模式
------解决方案--------------------
对,适配器模式