So tem q coloca o metodo onAttach na classe fragments.
Em 14 de julho de 2015 13:43, Willian do Amor <willsazon@gmail.com> escreveu:
Eu faço assim e funciona perfeitamente pra mim.Exemplo:public class ContainerPedidos extends ActionBarActivity implements MaterialTabListener, callbackCabPedido {Meu codigo.../*Inicio da implementacao dos metodos do callback de Cabecalho do pedido*/
@Override
public VendedorSerial getVendedor() {
return vendedor;
}}public class FragCabPedido extends Fragment {public interface callbackCabPedido {public VendedorSerial getVendedor();}}Em 13 de julho de 2015 16:11, Leonardo S <leonardo.s.comm@gmail.com> escreveu:Neste link, tem os dois exemplos (Activity -> Fragment, Fragment -> Activity).http://developer.android.com/training/basics/fragments/communicating.html--Em 13 de julho de 2015 15:04, Luciano Pimenta <lucianoalmeidapimenta@gmail.com> escreveu:Obrigado Rafael,Vou olhar mas pelo que vi na explicação, o framework precisa da API 19.Preciso de algo mais do SDK mesmo, pois preciso de suporte a versões antigas.Att
Em segunda-feira, 13 de julho de 2015 14:52:46 UTC-3, Rafael Nicoleti escreveu:Tente ver se esse video ajuda:Em seg, 13 de jul de 2015 às 14:45, Luciano Pimenta <lucianoalm...@gmail.com> escreveu:Boa tarde,--Tenho uma tela (Activity) que possui abas, e dentro de cada aba, carrego um Fragment.Como fazer chamadas entre Activity e o Fragment?Callback? Interface?Se alguém tive um artigo/exemplo que eu possa iniciar, agradeço.Att
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-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/d/optout.
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/d/optout.
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/d/optout.






0 comentários:
Postar um comentário