Pregunta

¿Es posible alimentar las filas en una tabla de los cursores? Si es así, ¿cómo?

Mi cursor.

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 });
¿Fue útil?

Solución

Breve y dulcemente, No.. no puedes usar el adaptador de cursor en Tablelayout

Puede usar el adaptador de cursor solo en ListView, Spinner y GridView ...

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top