Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev]

Esqueci msm.
Quando vi, já tinha enviado.

Em relação ao tema, vi isso aqui http://developer.android.com/design/patterns/navigation.html:

Navigating to screens with multiple entry points

Sometimes a screen doesn't have a strict position within the app's hierarchy, and can be reached from multiple entry points—such as a settings screen that can be reached from any other screen in your app. In this case, the Up button should choose to return to the referring screen, behaving identically to Back.


Parece que implementei certo então.

Em 8 de fevereiro de 2015 00:43, Maicon Strey <mstrey@gmail.com> escreveu:

Favor incluir um assunto nas mensagens.


Em dom, 8 de fev de 2015 00:16, Gink Labrev <gink.labrev@gmail.com> escreveu:
Pessoal,

Deixem me confirmar uma coisa com vcs.
Estava implementando o botão "voltar" (chamado de ... up) na actionBar e segui o tutorial oficial aqui:

Só que a Activity em questão pode ser acessada em vários pontos da app, sem nenhum ancestral específico. Então o código ficou assim:

case android.R.id.home:
                //NavUtils.navigateUpFromSameTask(this);
                finish();
                return true;

Então fiquei me perguntando qual seria a utilidade do NavUtils neste caso?
Serve somente para quando se quer atribuir um comportamento diferente ao botão up ?
Pelo que entendi também, o NavUtils não sabe qual a Activity anterior exceto se previamente registrado no AndroidManifest.xml.

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

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

0 comentários:

Postar um comentário