Tecnologia do Blogger.
RSS

[androidbrasil-dev] Re: Problema no Adapter do ExpandableListView

Tenta fazer o cast do adapter:

parent.((BaseExpandableListAdapter) getAdapter()).getChild(groupPosition, childPosition);

Atte.,

Adiel Cristo
Mobile Application Developer / Web Developer
(71) 8675.8281 | (71) 3431.5420
adiel@adielcristo.com



Em 21/10/2013, Matheus Henrique da Silva <matheustargaryen@gmail.com>
escreveu:
> 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.

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