欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 教育 > 培训 > 【AAOS】【源码分析】CarSystemUI -- CarSystemBar

【AAOS】【源码分析】CarSystemUI -- CarSystemBar

2025/2/25 16:18:23 来源:https://blog.csdn.net/BT_LEO/article/details/143340163  浏览:    关键词:【AAOS】【源码分析】CarSystemUI -- CarSystemBar

CarSystemBar不像Android手机那样固定的顶部“状态栏”和底部“导航栏”,而是将StatusBar和NavigationBar都统称为SystemBar,可以通过如下配置为每侧最多配置一个“系统栏”。

  • packages/apps/Car/SystemUI/res/values/config.xml
    <!-- Configure which system bars should be displayed. --><bool name="config_enableTopSystemBar">true</bool><bool name="config_enableLeftSystemBar">false</bool><bool name="config_enableRightSystemBar">false</bool><bool name="config_enableBottomSystemBar">true</bool><!-- Configure the type of each system bar. Each system bar must have a unique type. --><!--    STATUS_BAR = 0--><!--    NAVIGATION_BAR = 1--><!--    STATUS_BAR_EXTRA = 2--><!--    NAVIGATION_BAR_EXTRA = 3--><integer name="config_topSystemBarType">0</integer><integer name="config_leftSystemBarType">2</integer><integer name="config_rightSystemBarType">3</integer><integer name="config_bottomSystemBarType">1</integer>
  •  默认显示Top&Bottom

  • 显示左边栏

  • 显示右边栏

代码解析

AAOS 13以前每个SystemUI服务还会依靠于Dependency类供

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词