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();
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.






0 comentários:
Postar um comentário