Tecnologia do Blogger.
RSS

[androidbrasil-dev] Problema no Adapter do ExpandableListView

Na minha classe que extende o BaseExpandableListAdapter, há o getChild padrão:
public Object getChild(int arg0, int arg1) {
 
return itens.get(arg0).get(arg1);
 
}

Mas eu não consigo usar esse metodo de dentro do metodo onChildClick do listener:
@Override
public boolean onChildClick(ExpandableListView parent, View v,
int groupPosition, int childPosition, long id) {
//não há parent.getChild()...
                //não há parent.getAdapter.getChild()...

return false;
}

Estou setando o adapter correto. Onde esta o problema?

--
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.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário