FileDocCategorySizeDatePackage
ViewConfigurationCompat.javaAPI DocAndroid 5.1 API4055Thu Mar 12 22:22:56 GMT 2015android.support.v4.view

ViewConfigurationCompat

public class ViewConfigurationCompat extends Object
Helper for accessing features in {@link ViewConfiguration} introduced after API level 4 in a backwards compatible fashion.

Fields Summary
static final ViewConfigurationVersionImpl
IMPL
Select the correct implementation to use for the current platform.
Constructors Summary
Methods Summary
public static intgetScaledPagingTouchSlop(android.view.ViewConfiguration config)
Call {@link ViewConfiguration#getScaledPagingTouchSlop()}. If running on a pre-{@link android.os.Build.VERSION_CODES#FROYO} device, returns {@link ViewConfiguration#getScaledTouchSlop()}.

        if (android.os.Build.VERSION.SDK_INT >= 14) {
            IMPL = new IcsViewConfigurationVersionImpl();
        } else if (android.os.Build.VERSION.SDK_INT >= 11) {
            IMPL = new HoneycombViewConfigurationVersionImpl();
        } else if (android.os.Build.VERSION.SDK_INT >= 8) {
            IMPL = new FroyoViewConfigurationVersionImpl();
        } else {
            IMPL = new BaseViewConfigurationVersionImpl();
        }
    
        return IMPL.getScaledPagingTouchSlop(config);
    
public static booleanhasPermanentMenuKey(android.view.ViewConfiguration config)
Report if the device has a permanent menu key available to the user, in a backwards compatible way.

        return IMPL.hasPermanentMenuKey(config);