[Android Themes] bloof:
[HELP] clock left in statusbar

Hi [MENTION=4315551]Ticklefish[/MENTION], can you please help me get the clock on the left in status bar?

I have been looking for days and find no answers to clock on the left, only center clock and I know these are very different...

You are my savior Obiwan Ticklefish.

I need it for two situations, I am creating MOD files for Cloudy G3 2.1 for stock and for people with 3minit MOD too. (thanks [MENTION=5500870]vPro97[/MENTION]!)

To keep things simple I will make two posts:

This post is for original version.

The only other place I have seen this MOD use two xml files:

LGSystemUI -> res -> layout -> statusbar.xml and signal_cluster_view.xml

THANK YOU SO MUCH!!!

case 1: for original version:

statusbar.xml:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/stat_sys_indi_bg" android:focusable="true" android:fitsSystemWindows="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.lge.systemui.StatusBarBackground android:id="@id/statusbar_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.lge.systemui.NotificationBackground android:id="@id/notification_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" />
<com.lge.systemui.widget.StatusBarLinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layoutDirection="ltr" android:paddingStart="3.0dip" android:paddingEnd="3.0dip">
<com.lge.systemui.widget.OperatorTextView android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layoutDirection="ltr" android:paddingStart="2.0dip" android:paddingEnd="2.0dip"
xmlns:lge="http://schemas.android.com/apk/res/com.android.systemui" />
<LinearLayout 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:layoutDirection="ltr">
<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:layoutDirection="ltr" android:layout_alignParentStart="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr" />
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr">
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr">
<com.lge.systemui.widget.VoLteImageView android:id="@id/volte_icon" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingStart="1.0dip" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_level_font_size" android:textColor="@color/status_bar_text_color" android:gravity="center_vertical" android:id="@id/level_percent" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr" android:paddingStart="@dimen/battery_level_text_left_margin" android:paddingEnd="@dimen/battery_level_text_right_margin" />
<ImageView android:id="@id/battery" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginStart="@dimen/battery_level_left_margin" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="17.0dip" android:textColor="@color/status_bar_text_color" android:gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_marginEnd="4.0dip"
xmlns:lge="http://schemas.android.com/apk/res/com.android.systemui" />
</LinearLayout>
</com.lge.systemui.widget.StatusBarLinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:visibility="invisible" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layoutDirection="ltr" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="fitCenter" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="fitCenter" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layoutDirection="ltr" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layoutDirection="ltr" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>

signal_cluster_view.xml

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="-2.0dip">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_centerVertical="true" android:layout_alignParentEnd="true" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<com.android.systemui.statusbar.LGDataView android:orientation="horizontal" android:id="@id/data_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/type_info" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/lg_data" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/data_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/data_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</com.android.systemui.statusbar.LGDataView>
<com.android.systemui.statusbar.NoSimView android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.NoServiceView android:id="@id/no_service" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/dsda_mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/dsda_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>

---------- Post added at 03:29 PM ---------- Previous post was at 03:19 PM ----------

and the codes for the 3minit MOD version:

I can't decompile it (I saw your replies to vpro97, but I don't follow, tried several things but didn't work.

I decompiled the files by replacing the two xml in LGSystemUI.apk without 3minit MOD, rezipping then decompiling that and taking away the two xml files.

I certainly will not be able to recompile it :) But I will ask for help.

THANK YOOUUU!!!!

You're the one who made it possible for me to start MODDING! I have done navbar height, flashable zip patches to change statusbar icons, changing clock color (as in these files actually, clock is light blue).

statubar.xml

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/stat_sys_indi_bg" android:focusable="true" android:fitsSystemWindows="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.lge.systemui.StatusBarBackground android:id="@id/statusbar_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.lge.systemui.NotificationBackground android:id="@id/notification_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" />
<com.lge.systemui.widget.StatusBarLinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layoutDirection="ltr" android:paddingStart="3.0dip" android:paddingEnd="3.0dip">
<com.lge.systemui.widget.OperatorTextView android:textStyle="bold" android:gravity="center_vertical" android:id="@id/operator_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layoutDirection="ltr" android:paddingStart="2.0dip" android:paddingEnd="2.0dip"
xmlns:lge="http://schemas.android.com/apk/res/com.android.systemui" />
<LinearLayout 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:layoutDirection="ltr">
<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:layoutDirection="ltr" android:layout_alignParentStart="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr" />
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr">
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr">
<com.lge.systemui.widget.VoLteImageView android:id="@id/volte_icon" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingStart="1.0dip" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/battery_level_font_size" android:textColor="@color/status_bar_text_color" android:gravity="center_vertical" android:id="@id/level_percent" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr" android:paddingStart="@dimen/battery_level_text_left_margin" android:paddingEnd="@dimen/battery_level_text_right_margin" />
<ImageView android:id="@id/battery" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginStart="@dimen/battery_level_left_margin" />
<com.android.systemui.statusbar.policy.MinitBattery android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="17.0dip" android:textColor="#ff00fcff" android:gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_marginEnd="4.0dip"
xmlns:lge="http://schemas.android.com/apk/res/com.android.systemui" />
</LinearLayout>
</com.lge.systemui.widget.StatusBarLinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:visibility="invisible" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layoutDirection="ltr" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="fitCenter" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="fitCenter" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layoutDirection="ltr" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layoutDirection="ltr" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>

signal_cluster_view.xml:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layoutDirection="ltr"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="-2.0dip">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_centerVertical="true" android:layout_alignParentEnd="true" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<com.android.systemui.statusbar.LGDataView android:orientation="horizontal" android:id="@id/data_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/type_info" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/lg_data" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/data_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/data_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</com.android.systemui.statusbar.LGDataView>
<com.android.systemui.statusbar.NoSimView android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.NoServiceView android:id="@id/no_service" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/dsda_mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/dsda_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>