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

ViewCompatApi21

public class ViewCompatApi21 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static floatgetElevation(android.view.View view)

        return view.getElevation();
    
public static java.lang.StringgetTransitionName(android.view.View view)

        return view.getTransitionName();
    
public static floatgetTranslationZ(android.view.View view)

        return view.getTranslationZ();
    
public static booleanisImportantForAccessibility(android.view.View view)

        return view.isImportantForAccessibility();
    
public static voidrequestApplyInsets(android.view.View view)

        view.requestApplyInsets();
    
public static voidsetElevation(android.view.View view, float elevation)

        view.setElevation(elevation);
    
public static voidsetOnApplyWindowInsetsListener(android.view.View view, OnApplyWindowInsetsListener listener)

        view.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener() {
            @Override
            public WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) {
                // Wrap the framework insets in our wrapper
                WindowInsetsCompatApi21 insets = new WindowInsetsCompatApi21(windowInsets);
                // Give the listener a chance to use the wrapped insets
                insets = (WindowInsetsCompatApi21) listener.onApplyWindowInsets(view, insets);
                // Return the unwrapped insets
                return insets.unwrap();
            }
        });
    
public static voidsetTransitionName(android.view.View view, java.lang.String transitionName)

        view.setTransitionName(transitionName);
    
public static voidsetTranslationZ(android.view.View view, float translationZ)

        view.setTranslationZ(translationZ);