当前位置: 首页 > news >正文

福州企业网站建设建设考试网站

福州企业网站建设,建设考试网站,oa系统哪个公司做的好,自己做个网站怎么赚钱序 尚未添加窗口的层级结构树#xff0c;如图 DisplayArea层级结构中的每一个DisplayArea#xff0c;都包含着一个层级值范围#xff0c;这个层级值范围表明了这个DisplayArea可以容纳哪些类型的窗口。 每种窗口类型#xff0c;都可以通过WindowManagerPolicy.getWindowLa…序 尚未添加窗口的层级结构树如图 DisplayArea层级结构中的每一个DisplayArea都包含着一个层级值范围这个层级值范围表明了这个DisplayArea可以容纳哪些类型的窗口。 每种窗口类型都可以通过WindowManagerPolicy.getWindowLayerFromTypeLw方法返回一个相应的层级值。 /*** Returns the layer assignment for the window type. Allows you to control how different* kinds of windows are ordered on-screen.** param type The type of window being assigned.* param canAddInternalSystemWindow If the owner window associated with the type we are* evaluating can add internal system windows. I.e they have* {link Manifest.permission#INTERNAL_SYSTEM_WINDOW}. If true, alert window* types {link android.view.WindowManager.LayoutParams#isSystemAlertWindowType(int)}* can be assigned layers greater than the layer for* {link android.view.WindowManager.LayoutParams#TYPE_APPLICATION_OVERLAY} Else, their* layers would be lesser.* return int An arbitrary integer used to order windows, with lower numbers below higher ones.*/default int getWindowLayerFromTypeLw(int type, boolean canAddInternalSystemWindow) {return getWindowLayerFromTypeLw(type, canAddInternalSystemWindow,false /* roundedCornerOverlay */);}/*** Returns the layer assignment for the window type. Allows you to control how different* kinds of windows are ordered on-screen.** param type The type of window being assigned.* param canAddInternalSystemWindow If the owner window associated with the type we are* evaluating can add internal system windows. I.e they have* {link Manifest.permission#INTERNAL_SYSTEM_WINDOW}. If true, alert window* types {link android.view.WindowManager.LayoutParams#isSystemAlertWindowType(int)}* can be assigned layers greater than the layer for* {link android.view.WindowManager.LayoutParams#TYPE_APPLICATION_OVERLAY} Else, their* layers would be lesser.* param roundedCornerOverlay {#code true} to indicate that the owner window is rounded corner* overlay.* return int An arbitrary integer used to order windows, with lower numbers below higher ones.*/default int getWindowLayerFromTypeLw(int type, boolean canAddInternalSystemWindow,boolean roundedCornerOverlay) {// Always put the rounded corner layer to the top most.if (roundedCornerOverlay canAddInternalSystemWindow) {return getMaxWindowLayer();}if (type FIRST_APPLICATION_WINDOW type LAST_APPLICATION_WINDOW) {return APPLICATION_LAYER;}switch (type) {case TYPE_WALLPAPER:// wallpaper is at the bottom, though the window manager may move it.return 1;case TYPE_PRESENTATION:case TYPE_PRIVATE_PRESENTATION:case TYPE_DOCK_DIVIDER:case TYPE_QS_DIALOG:case TYPE_PHONE:return 3;case TYPE_SEARCH_BAR:return 4;case TYPE_INPUT_CONSUMER:return 5;case TYPE_SYSTEM_DIALOG:return 6;case TYPE_TOAST:// toasts and the plugged-in battery thingreturn 7;case TYPE_PRIORITY_PHONE:// SIM errors and unlock. Not sure if this really should be in a high layer.return 8;case TYPE_SYSTEM_ALERT:// like the ANR / app crashed dialogs// Type is deprecated for non-system apps. For system apps, this type should be// in a higher layer than TYPE_APPLICATION_OVERLAY.return canAddInternalSystemWindow ? 12 : 9;case TYPE_APPLICATION_OVERLAY:return 11;case TYPE_INPUT_METHOD:// on-screen keyboards and other such input method user interfaces go here.return 13;case TYPE_INPUT_METHOD_DIALOG:// on-screen keyboards and other such input method user interfaces go here.return 14;case TYPE_STATUS_BAR:return 15;case TYPE_STATUS_BAR_ADDITIONAL:return 16;case TYPE_NOTIFICATION_SHADE:return 17;case TYPE_STATUS_BAR_SUB_PANEL:return 18;case TYPE_KEYGUARD_DIALOG:return 19;case TYPE_VOICE_INTERACTION_STARTING:return 20;case TYPE_VOICE_INTERACTION:// voice interaction layer should show above the lock screen.return 21;case TYPE_VOLUME_OVERLAY:// the on-screen volume indicator and controller shown when the user// changes the device volumereturn 22;case TYPE_SYSTEM_OVERLAY:// the on-screen volume indicator and controller shown when the user// changes the device volumereturn canAddInternalSystemWindow ? 23 : 10;case TYPE_NAVIGATION_BAR:// the navigation bar, if available, shows atop most thingsreturn 24;case TYPE_NAVIGATION_BAR_PANEL:// some panels (e.g. search) need to show on top of the navigation barreturn 25;case TYPE_SCREENSHOT:// screenshot selection layer shouldnt go above system error, but it should cover// navigation bars at the very least.return 26;case TYPE_SYSTEM_ERROR:// system-level error dialogsreturn canAddInternalSystemWindow ? 27 : 9;case TYPE_MAGNIFICATION_OVERLAY:// used to highlight the magnified portion of a displayreturn 28;case TYPE_DISPLAY_OVERLAY:// used to simulate secondary display devicesreturn 29;case TYPE_DRAG:// the drag layer: input for drag-and-drop is associated with this window,// which sits above all other focusable windowsreturn 30;case TYPE_ACCESSIBILITY_OVERLAY:// overlay put by accessibility services to intercept user interactionreturn 31;case TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY:return 32;case TYPE_SECURE_SYSTEM_OVERLAY:return 33;case TYPE_BOOT_PROGRESS:return 34;case TYPE_POINTER:// the (mouse) pointer layerreturn 35;default:Slog.e(WindowManager, Unknown window type: type);return 3;}}在DisplayArea层级结构中可以直接容纳窗口的父节点有三种类型 TaskDisplayArea用于容纳App类型窗口Task的容器是TaskDisplayArea也就是对应我们层级结构树中的DefaultTaskDisplayAreaActivityRecord的容器是TaskDisplayArea.Tokens用于容纳非App类型窗口WindowToken的容器是DisplayArea.Tokens对应层级结构树中的Leaf节点。其中WallpaperWindowToken继承WindowToken是用来存放和Wallpaper相关的窗口ImeContainer用于容纳输入法窗口输入法的容器是ImeContainer 这里我们根据上面的代码以及adb shell dumpsys activity containers的信息简单画出如下树形图
http://www.hkea.cn/news/14339632/

相关文章:

  • 网站建设公司的市场开发方案网站制作要多少钱
  • 美橙互联建站中国电子商务平台有哪些
  • 广州建设工程中心网站做期货网站
  • 河北省建设厅官方网站顺德网站建设价格
  • 建设网站的视频专科函授网页设计实训报告
  • 网站开发属于无形资产吗域名注册多少钱
  • 丰南建设局网站山东城市建设职业学院图书馆网站
  • 网络购物网站备案seo81
  • 美食介绍网站模板做地方网站论坛
  • 网站后台 ftp网络培训的优点包括
  • 公司网站建设好室内装修公司需要什么资质
  • 基于phpt漫画网站开发百度地图导航手机版免费下载
  • 食品网站的网页设计怎么不花钱建网站
  • 微网站缺点商城平台系统下载
  • 做画册封面的网站建设银行开县支行 网站
  • 南城网站建设公司如何网站建设的技能有哪些
  • 在哪可以找到网站建设股票交易网站
  • 英文网站建设模板上海外贸博览会
  • 网站虚拟主机有什么用专业手机网站建设企业
  • 网站建设 补充协议标准型网站建设开发
  • 网站空间支持下载但不能下载文件做淘宝导购网站
  • 企业品牌网站营销做英文兼职的网站
  • 微信小程序可以做网站用wordpress 免费
  • 怎么给网站做动图凯里网站建设公司哪家好
  • 做兼职一般去哪个网站制作表情包的软件
  • 群晖 做网站服务器百度搜索引擎关键词优化
  • 重庆航运建设发展有限公司 网站天元建设集团有限公司 天眼查
  • 广州网站建设粤icp网站建设需要精通什么知识
  • 有edi证书可以做网站运营么石家庄做外贸的网站建设
  • 上海城市建设大学网站html个人网页制作模板