Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/06/2015, 15:35
efenix
 
Fecha de Ingreso: septiembre-2008
Mensajes: 74
Antigüedad: 15 años, 8 meses
Puntos: 1
Respuesta: EditText en ListView

Ok!

de esta manera es como lleno mi listview

Código ASP:
Ver original
  1. Cursor cursor = Articulos.Inventario(db);  // aqui regresa la consulta de la bd
  2.  
  3.             String[] from = new String[] { "Descripcion", "Existencias", "Cantidad" };
  4.             int[] to = new int[] { R.id.LblDescripcion, R.id.LblExistencias, R.id.TxtCantidad};
  5.            
  6.             cursorAdapter = new PedidoAdapter(this, cursor, from, to);
  7.             listView.setAdapter(cursorAdapter);

este es mi adapter que esta en otro archivo.java

Código ASP:
Ver original
  1. public PedidoAdapter(Context contexto, Cursor cursor, String[] from,int[] to) {
  2.         super(contexto, R.layout.item_pedido, cursor, from, to);
  3.         this.cursor = cursor;
  4.     }

como se ve en la lista es EditText - Textview - TextView