Android Screen Orientation Check isLandScape(Context context)

Here you can find the source of isLandScape(Context context)

Description

is Land Scape

Declaration

public static boolean isLandScape(Context context) 

Method Source Code

//package com.java2s;

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 ww . j a  v  a  2s  .  c om
}

Related

  1. getDirectionNow(final float direction)
  2. getRotationOffset()
  3. isDefaultToPortrait(Activity activity)
  4. isLandscape(final Context context)
  5. reverseDirectionNow(final float direction)
  6. roundOrientation(int orientation, int orientationHistory)
  7. getDisplayOrientation(Context context)