Android Context Get getOffset(Context context)

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

Description

get Offset

Declaration

public static float getOffset(Context context) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.util.TypedValue;

public class Main {
    private static final int DEFAULT_OFFSET = 10;

    public static float getOffset(Context context) {
        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                DEFAULT_OFFSET, context.getResources().getDisplayMetrics());
    }/*from   ww  w .j  a  v  a 2  s .com*/
}

Related

  1. getMinFontSize(Context context)
  2. getMobilityPackageInfo(Context context)
  3. getMobilityVersion(Context context)
  4. getMusesAppContext()
  5. getNameFromUri(Context context, Uri uri)
  6. getOpenGLESVersion(final Context context)
  7. getOrientation(Context context, Uri photoUri)
  8. getPackageName(final Context context)
  9. getPackageVersion(Context c)