Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Alterar Fragment em tempo de execução

Sim.

Em 16 de julho de 2015 00:00, Luciano Pimenta <lucianoalmeidapimenta@gmail.com> escreveu:
Obrigado Rudson,
O código seria o mesmo usando FrameLayout?

Att

Em quarta-feira, 15 de julho de 2015 23:57:49 UTC-3, Rudson Lima escreveu:
No lugar de colocar um fragment no xml, eu normalmente uso um FrameLayout e dou replace.

Se no seu caso está ficando sobrepondo use o replace no lugar do add. 

Em 15 de julho de 2015 23:53, Luciano Pimenta <lucianoalm...@gmail.com> escreveu:
Boa noite,
Tenho uma tela, que será semelhante há um wizard.

Usando Fragments adicionei um controle para modificar os fragments, de acordo com minha necessidade.

<fragment
        android:id="@+id/fragment"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="left|top" />

Todos os exemplos que achei com o getFragmentManager, não consigo remover o Fragment atual e adicionar um novo.
Usando add ou replace, um Fragment, sobrepoe o outro.

Alguém pode dar uma ajuda?

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.



--
Rudson Lima ( live-O ) Desenvolvedor Android
Contato +55 85 87050560 - Fortaleza-ce
Social facebook | google+ | linkedin

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



--
Rudson Lima ( live-O ) Desenvolvedor Android
Contato +55 85 87050560 - Fortaleza-ce
Social facebook | google+ | linkedin

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

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

0 comentários:

Postar um comentário