<返回更多

Android 系统时间显示上下午

2022-08-09    积硅步以致1000里
加入收藏
  • frameworks/base/packages/Keyguard/src/com/Android/keyguard/KeyguardStatusView.JAVA
 public class KeyguardStatusView extends GridLayout {             clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel);             // CLDR insists on adding an AM/PM indicator even though it wasn't in the skeleton             // format.  The following code removes the AM/PM indicator if we didn't want it.-            if (!clockView12Skel.contains("a")) {+           /* if (!clockView12Skel.contains("a")) {                 clockView12 = clockView12.replaceAll("a", "").trim();-            }+            }*/              clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel);
  • frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
 public class Clock extends TextView implements DemoMode, Tunable {                 R.styleable.Clock,                 0, 0);         try {-            mAmPmStyle = a.getInt(R.styleable.Clock_amPmStyle, AM_PM_STYLE_GONE);+            mAmPmStyle = a.getInt(R.styleable.Clock_amPmStyle, AM_PM_STYLE_NORMAL);         } finally {             a.recycle();         }
声明:本站部分内容来自互联网,如有版权侵犯或其他问题请与我们联系,我们将立即删除或处理。
▍相关推荐
更多资讯 >>>