0
這是我的第一個Android應用程序。我有問題選擇適合我的應用程序的最佳適配器 我有像表中繪製的一樣,我想綁定VALUE列的指定行到TextView 我的問題是:1-如何綁定[第1行,第3列] to textView將[row,col]值綁定到textView
_ID | NODE |值
1 |友情鏈接| google.com
2 |描述|搜索
MyDataBase mDB = new MyDataBase(this);
Cursor cursor = mDB.all(this);
String[] from = new String[] {mDB.VALUE};
int[] to = new int[] {R.id.text1View1};
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.main, cursor, from,to);