is Land Scape - Android android.app

Android examples for android.app:Screen

Description

is Land Scape

Demo Code

import android.content.Context;
import android.content.res.Configuration;

public class Main {

  public static boolean isLandScape(Context context) {
    return context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;
  }/*from w  w  w .j ava  2  s  .co m*/

}

Related Tutorials