Android 表布局和游标
是否可以从游标向tablelayout中输入行?如果是,如何进行 我的光标Android 表布局和游标,android,android-cursor,android-tablelayout,Android,Android Cursor,Android Tablelayout,是否可以从游标向tablelayout中输入行?如果是,如何进行 我的光标 cursor = db.rawQuery("SELECT _id, countryName , capitalName FROM country WHERE countryName LIKE ?",new String[] { "%" }); adapter = new SimpleCursorAdapter(this, R.layout.capital_list_item,cursor, new String[] {
cursor = db.rawQuery("SELECT _id, countryName , capitalName FROM country WHERE countryName LIKE ?",new String[] { "%" });
adapter = new SimpleCursorAdapter(this, R.layout.capital_list_item,cursor, new String[] { "countryName" , "capitalName"},new int[] { R.id.countryName, R.id.capitalName });
简短而甜蜜地说,不。。不能在TableLayout中使用光标适配器
您只能在ListView、微调器和GridView中使用游标适配器…基本上是AdapterView的所有子类