最終更新:2016-02-23 (火) 19:22:50 (1633d)  

WindowManager.LayoutParams
Top / WindowManager.LayoutParams

http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html

メモ

定義

タイプ

アプリケーションウィンドウ

  • 定数名
    WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW?1
    WindowManager.LayoutParams.TYPE_BASE_APPLICATION?1
    WindowManager.LayoutParams.TYPE_APPLICATION?2
    WindowManager.LayoutParams.TYPE_APPLICATION_STARTING?3
    WindowManager.LayoutParams.LAST_APPLICATION_WINDOW?99

サブウィンドウ

  • 定数名
    WindowManager.LayoutParams.FIRST_SUB_WINDOW?1000
    WindowManager.LayoutParams.TYPE_APPLICATION_PANEL?FIRST_SUB_WINDOW
    WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA?FIRST_SUB_WINDOW+1
    WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL?FIRST_SUB_WINDOW+2
    WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG?FIRST_SUB_WINDOW+3
    WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY?FIRST_SUB_WINDOW+4
    WindowManager.LayoutParams.LAST_SUB_WINDOW?1999

システムウィンドウ

  • 定数名ドキュメント
    WindowManager.LayoutParams.FIRST_SYSTEM_WINDOW?2000Start of system-specific window types.
    WindowManager.LayoutParams.TYPE_STATUS_BAR?FIRST_SYSTEM_WINDOWthe status bar.
    WindowManager.LayoutParams.TYPE_SEARCH_BAR?FIRST_SYSTEM_WINDOW+1the search bar.
    WindowManager.LayoutParams.TYPE_PHONE?FIRST_SYSTEM_WINDOW+2phone. These are non-application windows providing user interaction with the phone (in particular incoming calls). These windows are normally placedabove all applications, but behind the status bar.○,SYSTEM_ALERT_WINDOWの権限が必要
    WindowManager.LayoutParams.TYPE_SYSTEM_ALERTFIRST_SYSTEM_WINDOW+3system window, such as low power alert. These windows are always on top of application windows.○,SYSTEM_ALERT_WINDOWの権限が必要
    WindowManager.LayoutParams.TYPE_KEYGUARD?FIRST_SYSTEM_WINDOW+4keyguard window.
    WindowManager.LayoutParams.TYPE_TOAST?FIRST_SYSTEM_WINDOW+5transient notifications.
    WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAYFIRST_SYSTEM_WINDOW+6system overlay windows, which need to be displayed on top of everything else. These windows must not take input focus, or they will interfere with the keyguard.○,SYSTEM_ALERT_WINDOWの権限が必要
    WindowManager.LayoutParams.TYPE_PRIORITY_PHONE?FIRST_SYSTEM_WINDOW+7priority phone UI, which needs to be displayed even if the keyguard is active. These windows must not take input focus, or they will interfere with the keyguard.○,SYSTEM_ALERT_WINDOWの権限が必要
    WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG?FIRST_SYSTEM_WINDOW+8panel that slides out from the status bar
    WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG?FIRST_SYSTEM_WINDOW+9dialogs that the keyguard shows
    WindowManager.LayoutParams.TYPE_SYSTEM_ERRORFIRST_SYSTEM_WINDOW+10internal system error windows, appear on top of everything they can.○,SYSTEM_ALERT_WINDOWの権限が必要
    WindowManager.LayoutParams.TYPE_INPUT_METHOD?FIRST_SYSTEM_WINDOW+11
    WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG?FIRST_SYSTEM_WINDOW+12
    WindowManager.LayoutParams.TYPE_WALLPAPER?FIRST_SYSTEM_WINDOW+13wallpaper window, placed behind any window that wants to sit on top of the wallpaper.
    WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL?FIRST_SYSTEM_WINDOW+14
    WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY?FIRST_SYSTEM_WINDOW+15secure system overlay windows, which need to be displayed on top of everything else. These windows must not take input focus, or they will interfere with the keyguard.-
    WindowManager.LayoutParams.TYPE_DRAG?FIRST_SYSTEM_WINDOW+16the drag-and-drop pseudowindow.-
    WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL?FIRST_SYSTEM_WINDOW+17-
    WindowManager.LayoutParams.TYPE_POINTERFIRST_SYSTEM_WINDOW+18(mouse) pointer-
    WindowManager.LayoutParams.TYPE_NAVIGATION_BARFIRST_SYSTEM_WINDOW+19-
    WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY?FIRST_SYSTEM_WINDOW+20-
    WindowManager.LayoutParams.TYPE_BOOT_PROGRESS?FIRST_SYSTEM_WINDOW+21The boot progress dialog, goes on top of everything in the world.-
    WindowManager.LayoutParams.TYPE_HIDDEN_NAV_CONSUMER?FIRST_SYSTEM_WINDOW+22Fake window to consume touch events when the navigation bar is hidden.-
    WindowManager.LayoutParams.TYPE_DREAM?FIRST_SYSTEM_WINDOW+23Dreams (screen saver) window, just above keyguard.-
    WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL?FIRST_SYSTEM_WINDOW+24Navigation bar panel (when navigation bar is distinct from status bar)-
    WindowManager.LayoutParams.TYPE_UNIVERSE_BACKGROUND?FIRST_SYSTEM_WINDOW+25Behind the universe of the real windows.-
    WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY?FIRST_SYSTEM_WINDOW+26Display overlay window. Used to simulate secondary display devices.-
    WindowManager.LayoutParams.TYPE_MAGNIFICATION_OVERLAY?FIRST_SYSTEM_WINDOW+27Magnification overlay window.-
    WindowManager.LayoutParams.TYPE_RECENTS_OVERLAY?FIRST_SYSTEM_WINDOW+28Recents. Same layer as TYPE_SYSTEM_DIALOG? but only appears on one user's screen.-
    WindowManager.LayoutParams.TYPE_KEYGUARD_SCRIM?FIRST_SYSTEM_WINDOW+29keyguard scrim window. Shows if keyguard needs to be restarted.- Android 4.4
    WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION?FIRST_SYSTEM_WINDOW+30Window for Presentation on top of private virtual display.Android 4.4
    WindowManager.LayoutParams.TYPE_VOICE_INTERACTION?FIRST_SYSTEM_WINDOW+31- Android 5.0
    WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAYFIRST_SYSTEM_WINDOW+32Windows that are overlaid only by an AccessibilityService? for interception of user interactions without changing the windows an accessibility service can introspect.Android 5.1
    WindowManager.LayoutParams.LAST_SYSTEM_WINDOW?2999

フラグ

  • WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON?
    WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM?
    WindowManager.LayoutParams.FLAG_BLUR_BEHIND?
    WindowManager.LayoutParams.FLAG_DIM_BEHIND?
    WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD?
    WindowManager.LayoutParams.FLAG_DITHER?
    WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS?Android 5.0
    WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN?
    WindowManager.LayoutParams.FLAG_FULLSCREEN
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED?
    WindowManager.LayoutParams.FLAG_IGNORE_CHEEK_PRESSES?
    WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON?
    WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR?
    WindowManager.LayoutParams.FLAG_LAYOUT_IN_OVERSCAN?
    WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREENplace the window within the entire screen, ignoring decorations around the border (such as the status bar).
    WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS?allow window to extend outside of the screen.
    WindowManager.LayoutParams.FLAG_LOCAL_FOCUS_MODE?
    WindowManager.LayoutParams.FLAG_NOT_FOCUSABLEthis window won't ever get key input focus, so the user can not send key or other button events to it.
    WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE?this window can never receive touch events.
    WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODALeven when this window is focusable (its FLAG_NOT_FOCUSABLE is not set), allow any pointer events outside of the window to be sent to the windows behind it.
    WindowManager.LayoutParams.FLAG_SCALED?
    WindowManager.LayoutParams.FLAG_SECURE?
    WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER?
    WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED?
    WindowManager.LayoutParams.FLAG_SPLIT_TOUCH?
    WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING?
    WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATIONAndroid 4.4
    WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS?Android 4.4
    WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON?
    WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCHif you have set FLAG_NOT_TOUCH_MODAL, you can set this flag to receive a single special MotionEvent with the action MotionEvent.ACTION_OUTSIDE for touches that occur outside of your window.

enum

  • AOSP/frameworks/base/services/input/InputWindow.h
  • http://tools.oesf.biz/android-4.4.0_r1.0/xref/frameworks/base/services/input/InputWindow.h
    enum {
             FIRST_APPLICATION_WINDOW = 1,
             TYPE_BASE_APPLICATION   = 1,
             TYPE_APPLICATION        = 2,
             TYPE_APPLICATION_STARTING = 3,
             LAST_APPLICATION_WINDOW = 99,
             FIRST_SUB_WINDOW        = 1000,
             TYPE_APPLICATION_PANEL  = FIRST_SUB_WINDOW,
             TYPE_APPLICATION_MEDIA  = FIRST_SUB_WINDOW+1,
             TYPE_APPLICATION_SUB_PANEL = FIRST_SUB_WINDOW+2,
             TYPE_APPLICATION_ATTACHED_DIALOG = FIRST_SUB_WINDOW+3,
             TYPE_APPLICATION_MEDIA_OVERLAY  = FIRST_SUB_WINDOW+4,
             LAST_SUB_WINDOW         = 1999,
             FIRST_SYSTEM_WINDOW     = 2000,
             TYPE_STATUS_BAR         = FIRST_SYSTEM_WINDOW,
             TYPE_SEARCH_BAR         = FIRST_SYSTEM_WINDOW+1,
             TYPE_PHONE              = FIRST_SYSTEM_WINDOW+2,
             TYPE_SYSTEM_ALERT       = FIRST_SYSTEM_WINDOW+3,
             TYPE_KEYGUARD           = FIRST_SYSTEM_WINDOW+4,
             TYPE_TOAST              = FIRST_SYSTEM_WINDOW+5,
             TYPE_SYSTEM_OVERLAY     = FIRST_SYSTEM_WINDOW+6,
             TYPE_PRIORITY_PHONE     = FIRST_SYSTEM_WINDOW+7,
             TYPE_SYSTEM_DIALOG      = FIRST_SYSTEM_WINDOW+8,
             TYPE_KEYGUARD_DIALOG    = FIRST_SYSTEM_WINDOW+9,
             TYPE_SYSTEM_ERROR       = FIRST_SYSTEM_WINDOW+10,
             TYPE_INPUT_METHOD       = FIRST_SYSTEM_WINDOW+11,
             TYPE_INPUT_METHOD_DIALOG= FIRST_SYSTEM_WINDOW+12,
             TYPE_WALLPAPER          = FIRST_SYSTEM_WINDOW+13,
             TYPE_STATUS_BAR_PANEL   = FIRST_SYSTEM_WINDOW+14,
             TYPE_SECURE_SYSTEM_OVERLAY = FIRST_SYSTEM_WINDOW+15,
             TYPE_DRAG               = FIRST_SYSTEM_WINDOW+16,
             TYPE_STATUS_BAR_SUB_PANEL  = FIRST_SYSTEM_WINDOW+17,
             TYPE_POINTER            = FIRST_SYSTEM_WINDOW+18,
             TYPE_NAVIGATION_BAR     = FIRST_SYSTEM_WINDOW+19,
             TYPE_VOLUME_OVERLAY = FIRST_SYSTEM_WINDOW+20,
             TYPE_BOOT_PROGRESS = FIRST_SYSTEM_WINDOW+21,
             LAST_SYSTEM_WINDOW      = 2999,
         };

関連