Diogo! PERFECT! :D Funcionou direitinho.
Em 27 de maio de 2013 15:14, Diogo Henrique <diogjp10@gmail.com> escreveu:
E isso ai Felipe =DEm 27 de maio de 2013 15:10, Felipe Aron <felipearon@gmail.com> escreveu:Diogo entendi o porque da densidade.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.--
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();
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.
--
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.






0 comentários:
Postar um comentário