当前位置:网站首页>Framework customization series (I) -- systemui NavigationBar slide back to launcher on the navigation bar
Framework customization series (I) -- systemui NavigationBar slide back to launcher on the navigation bar
2022-07-28 15:41:00 【Liu Yiyi】
1. NavigationBar Slide the solution on the navigation bar
Code path :frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
notes :SystemUI Navigationbar Slide up in non hidden state , If there is a need to hide the navigation bar ,height Set to 1dp.
@Override
public void onSwipeFromBottom() {
if (mNavigationBar != null && mNavigationBarPosition == NAV_BAR_BOTTOM) {
// Log.d("ljx", "=========onSwipeFromBottom=========");
// Slide the relevant function requirement code on the navigation bar and write here .
requestTransientBars(mNavigationBar);
}
}
2. give an example NavigationBar Slide up and back on the navigation bar Launcher
Code path :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边栏推荐
猜你喜欢

Communication between client and server based on rsocket protocol

有奖活动分享:使用WordPress搭建一个专属自己的博客后最高可领取iPhone13

MIT pointed out that the public pre training model should not be used indiscriminately

How many tips do you know about using mock technology to help improve test efficiency?

Matlab exports high-definition pictures without distortion in word compression and PDF conversion

关于Simulink如何生成模型覆盖率报告

AS如何不区分大小写去进行智能提示

EasyExcel复杂表头导出(一对多)
![[delete specified number leetcode]](/img/16/b40492d8414a363a3a24f00b4afd47.png)
[delete specified number leetcode]

软件架构与设计(四)-----数据流架构
随机推荐
monkey压力测试
leetcode-括号有效性问题
Summary and arrangement of postgraduate entrance examination information of 211 colleges and universities nationwide
爆肝整理 JVM 十大模块知识点总结,不信你还不懂
How to write a JMeter script common to the test team
Nftscan and nftplay have reached strategic cooperation in the field of NFT data
2. Self narration of open source GPS project hd-gr GNSS
How many tips do you know about using mock technology to help improve test efficiency?
4.8 hd-gr GNSS navigation software source code
一波骚操作解决Laya场景编辑器报错问题
800V高压系统
flowable工作流所有业务概念
融云实时社区解决方案
迟来的2021年终总结
Ffmpeg notes
取组合数问题
Qt创建文件夹的两种方式区别
9. Related data accumulation task definition
最小堆提升每次排序的效率
Framework定制系列(六)-----屏蔽FallbackHome手机启动中弹窗直接进入Launcher