IT. Expert System.

Android Reference

ViewCompat


android.support.v4.view

Class ViewCompat



  • public class ViewCompat
    extends Object
    Helper for accessing features in View introduced after API level 4 in a backwards compatible fashion.
    • Field Detail

      • OVER_SCROLL_ALWAYS

        public static final int OVER_SCROLL_ALWAYS
        Always allow a user to over-scroll this view, provided it is a view that can scroll.
        See Also:
        Constant Field Values
      • OVER_SCROLL_IF_CONTENT_SCROLLS

        public static final int OVER_SCROLL_IF_CONTENT_SCROLLS
        Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll.
        See Also:
        Constant Field Values
      • OVER_SCROLL_NEVER

        public static final int OVER_SCROLL_NEVER
        Never allow a user to over-scroll this view.
        See Also:
        Constant Field Values
      • IMPORTANT_FOR_ACCESSIBILITY_AUTO

        public static final int IMPORTANT_FOR_ACCESSIBILITY_AUTO
        Automatically determine whether a view is important for accessibility.
        See Also:
        Constant Field Values
      • IMPORTANT_FOR_ACCESSIBILITY_YES

        public static final int IMPORTANT_FOR_ACCESSIBILITY_YES
        The view is important for accessibility.
        See Also:
        Constant Field Values
      • IMPORTANT_FOR_ACCESSIBILITY_NO

        public static final int IMPORTANT_FOR_ACCESSIBILITY_NO
        The view is not important for accessibility.
        See Also:
        Constant Field Values
      • LAYER_TYPE_NONE

        public static final int LAYER_TYPE_NONE
        Indicates that the view does not have a layer.
        See Also:
        Constant Field Values
      • LAYER_TYPE_SOFTWARE

        public static final int LAYER_TYPE_SOFTWARE

        Indicates that the view has a software layer. A software layer is backed by a bitmap and causes the view to be rendered using Android's software rendering pipeline, even if hardware acceleration is enabled.

        Software layers have various usages:

        When the application is not using hardware acceleration, a software layer is useful to apply a specific color filter and/or blending mode and/or translucency to a view and all its children.

        When the application is using hardware acceleration, a software layer is useful to render drawing primitives not supported by the hardware accelerated pipeline. It can also be used to cache a complex view tree into a texture and reduce the complexity of drawing operations. For instance, when animating a complex view tree with a translation, a software layer can be used to render the view tree only once.

        Software layers should be avoided when the affected view tree updates often. Every update will require to re-render the software layer, which can potentially be slow (particularly when hardware acceleration is turned on since the layer will have to be uploaded into a hardware texture after every update.)

        See Also:
        Constant Field Values
      • LAYER_TYPE_HARDWARE

        public static final int LAYER_TYPE_HARDWARE

        Indicates that the view has a hardware layer. A hardware layer is backed by a hardware specific texture (generally Frame Buffer Objects or FBO on OpenGL hardware) and causes the view to be rendered using Android's hardware rendering pipeline, but only if hardware acceleration is turned on for the view hierarchy. When hardware acceleration is turned off, hardware layers behave exactly as software layers.

        A hardware layer is useful to apply a specific color filter and/or blending mode and/or translucency to a view and all its children.

        A hardware layer can be used to cache a complex view tree into a texture and reduce the complexity of drawing operations. For instance, when animating a complex view tree with a translation, a hardware layer can be used to render the view tree only once.

        A hardware layer can also be used to increase the rendering quality when rotation transformations are applied on a view. It can also be used to prevent potential clipping issues when applying 3D transforms on a view.

        See Also:
        Constant Field Values
    • Constructor Detail

      • ViewCompat

        public ViewCompat()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 393 / . Delta: 0.05077 с