IT. Expert System.

Android Reference

CompatibilityInfo.Translator


android.content.res

Class CompatibilityInfo.Translator

  • Enclosing class:
    CompatibilityInfo


    public class CompatibilityInfo.Translator
    extends Object
    A helper object to translate the screen and window coordinates back and forth.
    • Field Detail

      • applicationScale

        public final float applicationScale
      • applicationInvertedScale

        public final float applicationInvertedScale
    • Method Detail

      • translateRectInScreenToAppWinFrame

        public void translateRectInScreenToAppWinFrame(Rect rect)
        Translate the screen rect to the application frame.
      • translateRegionInWindowToScreen

        public void translateRegionInWindowToScreen(Region transparentRegion)
        Translate the region in window to screen.
      • translateCanvas

        public void translateCanvas(Canvas canvas)
        Apply translation to the canvas that is necessary to draw the content.
      • translateEventInScreenToAppWindow

        public void translateEventInScreenToAppWindow(MotionEvent event)
        Translate the motion event captured on screen to the application's window.
      • translateWindowLayout

        public void translateWindowLayout(WindowManager.LayoutParams params)
        Translate the window's layout parameter, from application's view to Screen's view.
      • translateRectInAppWindowToScreen

        public void translateRectInAppWindowToScreen(Rect rect)
        Translate a Rect in application's window to screen.
      • translateRectInScreenToAppWindow

        public void translateRectInScreenToAppWindow(Rect rect)
        Translate a Rect in screen coordinates into the app window's coordinates.
      • translatePointInScreenToAppWindow

        public void translatePointInScreenToAppWindow(PointF point)
        Translate a Point in screen coordinates into the app window's coordinates.
      • translateLayoutParamsInAppWindowToScreen

        public void translateLayoutParamsInAppWindowToScreen(WindowManager.LayoutParams params)
        Translate the location of the sub window.
        Parameters:
        params -
      • getTranslatedContentInsets

        public Rect getTranslatedContentInsets(Rect contentInsets)
        Translate the content insets in application window to Screen. This uses the internal buffer for content insets to avoid extra object allocation.
      • getTranslatedVisibleInsets

        public Rect getTranslatedVisibleInsets(Rect visibleInsets)
        Translate the visible insets in application window to Screen. This uses the internal buffer for visible insets to avoid extra object allocation.
      • getTranslatedTouchableArea

        public Region getTranslatedTouchableArea(Region touchableArea)
        Translate the touchable area in application window to Screen. This uses the internal buffer for touchable area to avoid extra object allocation.


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: 974 / . Delta: 0.01696 с