当前位置:网站首页>cocoscreator 显示刘海内容
cocoscreator 显示刘海内容
2022-07-31 05:15:00 【xuyid】
修改libcocos2dx的Utils文件
注释掉SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN和SYSTEM_UI_FLAG_FULLSCREEN
public static void hideVirtualButton() { if (Build.VERSION.SDK_INT >= 19 && null != Utils.sActivity) { // use reflection to remove dependence of API level Class viewClass = View.class; final int SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = Cocos2dxReflectionHelper.<Integer>getConstantValue(viewClass, "SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION"); final int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = Cocos2dxReflectionHelper.<Integer>getConstantValue(viewClass, "SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN"); final int SYSTEM_UI_FLAG_HIDE_NAVIGATION = Cocos2dxReflectionHelper.<Integer>getConstantValue(viewClass, "SYSTEM_UI_FLAG_HIDE_NAVIGATION"); final int SYSTEM_UI_FLAG_FULLSCREEN = Cocos2dxReflectionHelper.<Integer>getConstantValue(viewClass, "SYSTEM_UI_FLAG_FULLSCREEN"); final int SYSTEM_UI_FLAG_IMMERSIVE_STICKY = Cocos2dxReflectionHelper.<Integer>getConstantValue(viewClass, "SYSTEM_UI_FLAG_IMMERSIVE_STICKY"); final int SYSTEM_UI_FLAG_LAYOUT_STABLE = Cocos2dxReflectionHelper.<Integer>getConstantValue(viewClass, "SYSTEM_UI_FLAG_LAYOUT_STABLE"); // getWindow().getDecorView().setSystemUiVisibility(); final Object[] parameters = new Object[]{SYSTEM_UI_FLAG_LAYOUT_STABLE | SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION // | SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar // | SYSTEM_UI_FLAG_FULLSCREEN // hide status bar | SYSTEM_UI_FLAG_IMMERSIVE_STICKY}; Cocos2dxReflectionHelper.<Void>invokeInstanceMethod(Utils.sActivity.getWindow().getDecorView(), "setSystemUiVisibility", new Class[]{Integer.TYPE}, parameters); } }
边栏推荐
- Oracle数据库中的“limit”查询
- Digital twins will be an important way to enter the "metaverse"
- js中的break与continue退出
- 【JVM加载】---类加载机制
- vulhub靶场学习日记hackme1
- On the side of Ali, tell me what are the application scenarios of message middleware you know?
- 【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
- First acquaintance with Flask
- 一个简单的bash转powershell案例
- [Cloud native] Simple introduction and use of microservice Nacos
猜你喜欢
gin框架学习-JWT认证
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
阿里云中mysql数据库被攻击了,最终数据找回来了
【uiautomation】微信好友列表获取(存储到txt中)
vulhub靶场学习日记xxe-lab
NFT:数字所有权的核心
UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装
leetcode-1833. 雪糕的最大数量(排序+贪心)
随机推荐
【windows】--- SQL Server 2008 超详细安装教程
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
flutter 混合开发 module 依赖
[Cloud native] Simple introduction and use of microservice Nacos
带你搞懂MySQL隔离级别,两个事务同时操作同一行数据会怎样?
通信原理——纠错编码 | 汉明码(海明码)手算详解
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
代码块、Package,Import,封装(第六天)
What is an EVM Compatible Chain?
MySQL分页查询的5种方法
The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
Hyper-V新建虚拟机注意事项
What is the difference between NFT and digital collection?
Detailed explanation of pointers in C language
初识正则表达式
Yuan prospect and four track of the universe
Linux修改MySQL数据库密码
leetcode-每日一题1217. 玩筹码(贪心+位运算)
继承、Super,重写、抽象类、抽象方法 1(第七天)
mac10.14中安装mysqldb