[Galaxy Note 3 Android Development] starbucks2010:
5.1.1 center clock + date

Hello,

Since 2 days I struggle to center the status bar clock and to add the date to it. So far, I managed to center the clock but the date doesn't show at all.

Do you have any idea why?

I'm on a SG S6 Edge+ with 5.1.1 OH3 fw deodex. This is my status_bar.xml file.

<?xml version="1.0" encoding="utf-8"?>

<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

<FrameLayout android:id="@id/call_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />

<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />

<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="4.0dip" android:paddingEnd="8.0dip">

<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/status_bar_icon_alpha">

<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">

<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />

<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />

</com.android.keyguard.AlphaOptimizedLinearLayout>

</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginTop="@dimen/status_bar_clock_margin_top" android:singleLine="true" android:alpha="@dimen/status_bar_icon_alpha" android:paddingStart="@dimen/status_bar_clock_padding_start" android:format12Hour="EEE, dd MMM h:mm a" android:format24Hour="EEE, dd MMM HH:mm" />

<LinearLayout android:gravity="center|right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true" android:alpha="0.8">

<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">

<include layout="@layout/system_icons" />

</com.android.keyguard.AlphaOptimizedLinearLayout>

</LinearLayout>

</LinearLayout>

<ViewStub android:id="@id/ticker_stub" android:layout="@layout/status_bar_ticker" android:inflatedId="@id/ticker" android:layout_width="fill_parent" android:layout_height="fill_parent" />

</com.android.systemui.statusbar.phone.PhoneStatusBarView>

Thank you.