Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] DialogFragment fecha ao clicar fora do campo

Eu uso o .setCancelable(falseque tb evita ser fechando no botão de back


2014-04-30 11:03 GMT-03:00 Ubiratan Soares <ubiratan.f.soares@gmail.com>:
https://developer.android.com/reference/android/app/Dialog.html#setCanceledOnTouchOutside(boolean)

public void setCanceledOnTouchOutside (boolean cancel)

Added in API level 1

Sets whether this dialog is canceled when touched outside the window's bounds. If setting to true, the dialog is set to be cancelable if not already set.

Se estiver usando um DialogFragment, sobreescreva o método onCreateDialog( ) para settar.

[]s

----------------------------------------------------------
Ubiratan Soares


2014-04-30 10:55 GMT-03:00 Marcos Vinithius Melo Filho <marcos.vinithius@gmail.com>:

Bom dia pessoal!

Gostaria de saber o método certo que evita que um dialog seja fechado ao tocar fora do seu campo, eu sei que existe pois já vi em um projeto, mas por causa de alguma lei de Murph eu não consigo encontrar...

No aguardo 

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



--
André Luiz de Oliveira Souza
Engenheiro da Computação
Pós-graduado em Desenvolvimento de Software com ênfase em Java Corporativo

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