Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Verificando orientação em tablet
public class TestActivity extends Activity {
public private boolean estaNaHorizontal() {
return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE
&& getResources().getConfiguration().isLayoutSizeAtLeast(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment