Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Como identificar o tamanho da tela?

Diogo! PERFECT! :D Funcionou direitinho.


Em 27 de maio de 2013 15:14, Diogo Henrique <diogjp10@gmail.com> escreveu:
E isso ai Felipe =D

Diogo Henrique
(83)87344178
Rede Sociais: 






Em 27 de maio de 2013 15:10, Felipe Aron <felipearon@gmail.com> escreveu:



Em 27 de maio de 2013 15:05, Felipe Aron <felipearon@gmail.com> escreveu:

Diogo como assim melhor? Pode explicar? :)


Em 27 de maio de 2013 14:53, Diogo Henrique <diogjp10@gmail.com> escreveu:

Eu fiz por ai também Felipe. Mais essa classe Display tem como te retorna a densidade do device. Ai fica melhor.

Diogo Henrique
(83)87344178
Rede Sociais: 






2013/5/27 Felipe Aron <felipearon@gmail.com>
Galera, to na seguinte situação:

Tenho uma Activity que mostra uma lista de itens. 

Esse Activity no tablet de 7" será mostrada em "portrait" (em pé) porém no tablet de 5" quero mostrar em "landscape" (deitado).

Como identificar quantas polegadas o aparelho tem?

Vi na internet o seguinte:

Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
int width = display.getWidth();  
int height = display.getHeight();

Seria por esse caminho mesmo?

--
Analista-Programador

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



--
Analista-Programador



--
Analista-Programador

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



--
Analista-Programador

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