1.概述
在10.0的系统产品开发中,对于SystemUI的状态栏上显示的时间由于只显示到分,由于产品的特殊需求要求时间精确到秒,所以就要修改下显示时间的格式,完成时间格式的要求
2.SystemUI 状态栏时间显示秒的核心类
/frameworks/base/packages/SystemUI/res/layout/status_bar.xml
3.SystemUI 状态栏时间显示秒的核心功能分析和实现
在SystemUI状态栏中,时间控件就是status_bar.xml中的
3.1 status_bar.xml中的相关源码分析
<!-- android:background="@drawable/status_bar_closed_default_background" -->
<com.android.systemui.statusbar.phone.PhoneStatusBarView
xmlns:android=