当前位置:网站首页>Framework定制系列(一)-----SystemUI NavigationBar导航栏上滑返回Launcher
Framework定制系列(一)-----SystemUI NavigationBar导航栏上滑返回Launcher
2022-07-28 14:39:00 【丨刘一丨】
1. NavigationBar导航栏上滑解决方案
代码路径:frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
注:SystemUI Navigationbar非隐藏状态可上滑,如有隐藏导航栏需求,height设置为1dp。
@Override
public void onSwipeFromBottom() {
if (mNavigationBar != null && mNavigationBarPosition == NAV_BAR_BOTTOM) {
// Log.d("ljx", "=========onSwipeFromBottom=========");
// 导航栏上滑相关功能需求代码写这里。
requestTransientBars(mNavigationBar);
}
}
2. 举例NavigationBar导航栏上滑上滑返回Launcher
代码路径:frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
@Override
public void onSwipeFromBottom() {
if (mNavigationBar != null && mNavigationBarPosition == NAV_BAR_BOTTOM) {
+ /**add by [email protected] for re边栏推荐
- 全国211院校考研信息汇总整理
- 腾讯面试之--请你设计一个实现线程池顺序执行
- 4.8 hd-gr GNSS navigation software source code
- 如何获取及嵌入Go二进制执行包信息
- 使用Mock技术帮助提升测试效率的小tips,你知道几个?
- Gfpgan blurred photo repair artifact
- 7. Definitions of real-time data backup and real-time clock
- 2. Self narration of open source GPS project hd-gr GNSS
- Editor in ArcGIS Pro
- vs动态库调试
猜你喜欢
随机推荐
Easyexcel complex header export (one to many)
EasyExcel复杂表头导出(一对多)
Svg verification code recognition experience
Among the three "difficult and miscellaneous diseases" of machine learning, causal learning is the breakthrough | Liu Li, Chongqing University
机器学习的3大“疑难杂症”,因果学习是突破口 | 重庆大学刘礼
Gfpgan blurred photo repair artifact
Idea debugging burpsuit plug-in
一篇文章了解RSocket协议
Regular expression (4)
堆操作
Qt刷新UI界面问题
7、实时数据备份和实时时钟相关定义
vs动态库调试
About the pictures inserted in the word document, only the following part is displayed
Endnote is associated with word
手把手带你编写一个规范的字符设备驱动
Multithreading
Close independent windows and close other windows at the same time
Baidu proposes a dynamic self distillation method to realize dense paragraph retrieval by combining interactive model and double tower model
22. Realization of message processing task







