Criando um custom Adapter vc resolve isso.
Em 2 de julho de 2013 07:52, Leonardo Santos da Mata <leonardodamata@gmail.com> escreveu:
bom dia pessoal,--eu gostaria de saber se tem como eu criar e carregar listview dentro de for de forma dinâmica.Por exemplo é para isso aqui:
// para carregar aqui no lugar listaDeProdutos2 para ter não apenas o item, mas tb valor e quantidade lViewChekBox.setAdapter(new ArrayAdapter<String> (this,android.R.layout.simple_list_item_multiple_choice, listaDeProdutos2));Pq ao invês de devolver um String para o layout eu gostaria de devolver uma lista de com várias informações no item.--Cordialmente,
Leonardo Santos da Mata
E-mail: leonardodamata@gmail.com
About.me: http://about.me/leonardodamata
Twitter: twitter.com/lsmata
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Henrique Nogueira de Melo
Analista e Arquiteto de Software
Analista e Arquiteto de Software
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comentários:
Postar um comentário