WindowManager.LayoutParams.type

 int android.view.WindowManager.LayoutParams.type




@ExportedProperty(mapping={
@IntToString(from=1, to="TYPE_BASE_APPLICATION"), 
@IntToString(from=2, to="TYPE_APPLICATION"), 
@IntToString(from=3, to="TYPE_APPLICATION_STARTING"), 
@IntToString(from=1000, to="TYPE_APPLICATION_PANEL"),
@IntToString(from=1001, to="TYPE_APPLICATION_MEDIA"),
@IntToString(from=1002, to="TYPE_APPLICATION_SUB_PANEL"),
@IntToString(from=1003, to="TYPE_APPLICATION_ATTACHED_DIALOG"),
@IntToString(from=1004, to="TYPE_APPLICATION_MEDIA_OVERLAY"), 
@IntToString(from=2000, to="TYPE_STATUS_BAR"), 
@IntToString(from=2001, to="TYPE_SEARCH_BAR"), 
@IntToString(from=2002, to="TYPE_PHONE"), 
@IntToString(from=2003, to="TYPE_SYSTEM_ALERT"),
@IntToString(from=2004, to="TYPE_KEYGUARD"),
@IntToString(from=2005, to="TYPE_TOAST"),
@IntToString(from=2006, to="TYPE_SYSTEM_OVERLAY"),
@IntToString(from=2007, to="TYPE_PRIORITY_PHONE"), 
@IntToString(from=2008, to="TYPE_SYSTEM_DIALOG"),
@IntToString(from=2009, to="TYPE_KEYGUARD_DIALOG"),
@IntToString(from=2010, to="TYPE_SYSTEM_ERROR"),
@IntToString(from=2011, to="TYPE_INPUT_METHOD"),
@IntToString(from=2012, to="TYPE_INPUT_METHOD_DIALOG"), 
@IntToString(from=2013, to="TYPE_WALLPAPER"),
@IntToString(from=2014, to="TYPE_STATUS_BAR_PANEL"), 
@IntToString(from=2015, to="TYPE_SECURE_SYSTEM_OVERLAY"),
@IntToString(from=2016, to="TYPE_DRAG"),
@IntToString(from=2017, to="TYPE_STATUS_BAR_SUB_PANEL"), 
@IntToString(from=2018, to="TYPE_POINTER"),
@IntToString(from=2019, to="TYPE_NAVIGATION_BAR"), 
@IntToString(from=2020, to="TYPE_VOLUME_OVERLAY"),
@IntToString(from=2021, to="TYPE_BOOT_PROGRESS"),
@IntToString(from=2022, to="TYPE_HIDDEN_NAV_CONSUMER"), 
@IntToString(from=2023, to="TYPE_DREAM"), 
@IntToString(from=2024, to="TYPE_NAVIGATION_BAR_PANEL"),
@IntToString(from=2026, to="TYPE_DISPLAY_OVERLAY"),
@IntToString(from=2027, to="TYPE_MAGNIFICATION_OVERLAY"), 
@IntToString(from=2030, to="TYPE_PRIVATE_PRESENTATION")})




public int type 
Added in API level 1 
The general type of window. There are three main classes of window types: 


Application windows (ranging from FIRST_APPLICATION_WINDOW to LAST_APPLICATION_WINDOW) are normal top-level application windows. For these types of windows, the token must be set to the token of the activity they are a part of (this will normally be done for you if token is null). 
Sub-windows (ranging from FIRST_SUB_WINDOW to LAST_SUB_WINDOW) are associated with another top-level window. For these types of windows, the token must be the token of the window it is attached to. 
System windows (ranging from FIRST_SYSTEM_WINDOW to LAST_SYSTEM_WINDOW) are special types of windows for use by the system for specific purposes. They should not normally be used by applications, and a special permission is required to use them. 


See Also
TYPE_BASE_APPLICATION
TYPE_APPLICATION
TYPE_APPLICATION_STARTING
TYPE_APPLICATION_PANEL
TYPE_APPLICATION_MEDIA
TYPE_APPLICATION_SUB_PANEL
TYPE_APPLICATION_ATTACHED_DIALOG
TYPE_STATUS_BAR
TYPE_SEARCH_BAR
TYPE_PHONE
TYPE_SYSTEM_ALERT
TYPE_KEYGUARD
TYPE_TOAST
TYPE_SYSTEM_OVERLAY
TYPE_PRIORITY_PHONE
TYPE_STATUS_BAR_PANEL
TYPE_SYSTEM_DIALOG
TYPE_KEYGUARD_DIALOG
TYPE_SYSTEM_ERROR
TYPE_INPUT_METHOD
TYPE_INPUT_METHOD_DIALOG 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值