状态栏时间在哪里更新?
有问题,我必须显示 AM &无论 Android 手机中选择的区域设置如何,均以英语私信。试图找出状态栏中时间更新的位置。但找不到它。
请问有人请告诉我android框架中负责更新状态栏时间的源代码文件是哪个吗?
谢谢&问候,
S苏曼185
Got an issue, i have to display the AM & PM in english irrespective of the selected locale in android phone. Tried to findout the place where time gets updated in the status bar. But not able to find it.
Will any one please let me know which is the source code file in the android framework which is responsible for updating the time in status bar.
Thanks & Regards,
SSuman185
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过大量的研发D、StatusBarManager.Java、StatusNarManagerService.java 是状态栏的文件,位于framewroks/base/core/java/android/app 路径下。
对于通知区域,请参阅NotificationManager.java(当我们下拉状态栏时)。
SimpleDateFormat.java
After a lot of R & D. StatusBarManager.Java, StatusNarManagerService.java are the files for the status bar and will be in the framewroks/base/core/java/android/app path.
For the notification area see the NotificationManager.java (When we pull down the status bar).
SimpleDateFormat.java
如果您只想要 AM/PM 显示,只需查看位于 Frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar 的 Clock.java 即可。
学习它,你就会知道如何制作AM/PM节目。它们已经在那里,但尚未打开。
If you just want the AM/PM show, just have a look at Clock.java located at frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar.
Study it and you would know how to make AM/PM shows. They are already there but not turned on.