最終更新:2016-06-20 (月) 15:00:33 (1475d)  

Android/レイヤー
Top / Android / レイヤー

Androidの画面(View)は複数のレイヤーで構成されており、これらのレイヤーは情報の重要度・優先度によって使い分けられている

type

WindowManager.LayoutParamsのtypeでレイヤーを指定

処理

定義

バージョン別

2.xの場合

4.0の場合

Android 4.1

メモ

パーミッション

WindowManager.LayoutParams

システムウィンドウ

  • 定数名ドキュメント
    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.-
    WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION?FIRST_SYSTEM_WINDOW+30Android 4.4
    WindowManager.LayoutParams.LAST_SYSTEM_WINDOW?2999

参考

関連