[MOD/GUIDE]Jelly Bean style SystemUI For CM9/ICS ROM[UPDATE 15-10-2012]

Search This thread

nitinvaid

Senior Member
I have managed to get CM10 style status bar in CM9 rom
A big thanks To ThilinaC for helping me

Now
what i want to do is to hide the statusbar

UPDATE 15-10-2012
statusbar close on/off pressed and unpressed(thanks To mr.faridcom)
Download link
http://www.mediafire.com/?66eni4a4ib59wyv

snap20121015190455.png
snap20121015190448.png



UPDATE 21-09-2012
-removed center clock
-statusbar hide problem
-some other allingments
DOWNLOAD LINK v2
http://www.mediafire.com/?bivyy24x690ahls

Download this and flash
http://www.mediafire.com/?3c1scc10q4nkp4y
Let me know it works or not

Don't use this one its for sample for developer or for s2 only
MY MODDED suystemui
http://www.mediafire.com/?y92cz70tgqchter

Now Its Perfect



snap20120918191715.png

By tarunagg at 2012-09-18
Uploaded with ImageShack.us

what i want to do is to hide the statusbar clock
 
Last edited:

nitinvaid

Senior Member
DOCUMENTATION:-

What I Did Is
Assuming you know how to decompile and compile
in SystemUI.apk\res\layout\status_bar_expanded.xml
i modified so many things even i dont remeber exactly
if anyone need help in porting PM me
here's my status_bar_expanded.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
        <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
        <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="5.0dip" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" android:layout_toRightOf="@id/clock" />
        <ImageView android:id="@id/settings_button" android:paddingLeft="250.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_settings_button" />
        <ImageView android:id="@id/clear_all_button" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_toRightOf="@id/settings_button" android:contentDescription="@string/accessibility_clear_all" />
        <Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
    </RelativeLayout>
    <LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="@dimen/notification_panel_widget_height" />
    </LinearLayout>
    <View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
    <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
        <TextView android:textAppearance="@android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
        <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
            <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
            </LinearLayout>
        </ScrollView>
        <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
    </FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>


after that dont forget to add all png's from my systemui to yours
and in styles.xml
add
Code:
<style name="TextAppearance.StatusBar.Clock2" parent="@android:style/TextAppearance.StatusBar.Icon">
        <item name="android:textSize">32.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffffffff</item>
        <item name="android:textAllCaps">true</item>
    </style>
    <style name="TextAppearance.StatusBar.Expanded" parent="@android:style/TextAppearance.Small.CalendarViewWeekDayView" />
    <style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
        <item name="android:textSize">32.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffffffff</item>
    </style>
    <style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
        <item name="android:textSize">12.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffcccccc</item>
        <item name="android:textAllCaps">true</item>
    </style>

and in Strings.xml
find "status_bar_date_formatter"
change it to exact

Code:
<string name="status_bar_date_formatter">"%1$s
%2$s"</string>
 
Last edited:

nitinvaid

Senior Member

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    I have managed to get CM10 style status bar in CM9 rom
    A big thanks To ThilinaC for helping me

    Now
    what i want to do is to hide the statusbar

    UPDATE 15-10-2012
    statusbar close on/off pressed and unpressed(thanks To mr.faridcom)
    Download link
    http://www.mediafire.com/?66eni4a4ib59wyv

    snap20121015190455.png
    snap20121015190448.png



    UPDATE 21-09-2012
    -removed center clock
    -statusbar hide problem
    -some other allingments
    DOWNLOAD LINK v2
    http://www.mediafire.com/?bivyy24x690ahls

    Download this and flash
    http://www.mediafire.com/?3c1scc10q4nkp4y
    Let me know it works or not

    Don't use this one its for sample for developer or for s2 only
    MY MODDED suystemui
    http://www.mediafire.com/?y92cz70tgqchter

    Now Its Perfect



    snap20120918191715.png

    By tarunagg at 2012-09-18
    Uploaded with ImageShack.us

    what i want to do is to hide the statusbar clock
    9
    DOCUMENTATION:-

    What I Did Is
    Assuming you know how to decompile and compile
    in SystemUI.apk\res\layout\status_bar_expanded.xml
    i modified so many things even i dont remeber exactly
    if anyone need help in porting PM me
    here's my status_bar_expanded.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
        <RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
            <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
            <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="5.0dip" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" android:layout_toRightOf="@id/clock" />
            <ImageView android:id="@id/settings_button" android:paddingLeft="250.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_settings_button" />
            <ImageView android:id="@id/clear_all_button" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_toRightOf="@id/settings_button" android:contentDescription="@string/accessibility_clear_all" />
            <Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
        </RelativeLayout>
        <LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="@dimen/notification_panel_widget_height" />
        </LinearLayout>
        <View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
        <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textAppearance="@android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
            <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
                </LinearLayout>
            </ScrollView>
            <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
        </FrameLayout>
    </com.android.systemui.statusbar.phone.ExpandedView>


    after that dont forget to add all png's from my systemui to yours
    and in styles.xml
    add
    Code:
    <style name="TextAppearance.StatusBar.Clock2" parent="@android:style/TextAppearance.StatusBar.Icon">
            <item name="android:textSize">32.0dip</item>
            <item name="android:textStyle">normal</item>
            <item name="android:textColor">#ffffffff</item>
            <item name="android:textAllCaps">true</item>
        </style>
        <style name="TextAppearance.StatusBar.Expanded" parent="@android:style/TextAppearance.Small.CalendarViewWeekDayView" />
        <style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
            <item name="android:textSize">32.0dip</item>
            <item name="android:textStyle">normal</item>
            <item name="android:textColor">#ffffffff</item>
        </style>
        <style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
            <item name="android:textSize">12.0dip</item>
            <item name="android:textStyle">normal</item>
            <item name="android:textColor">#ffcccccc</item>
            <item name="android:textAllCaps">true</item>
        </style>

    and in Strings.xml
    find "status_bar_date_formatter"
    change it to exact

    Code:
    <string name="status_bar_date_formatter">"%1$s
    %2$s"</string>
    5
    UPDATE 21-09-2012
    -removed center clock
    -statusbar hide problem
    -some other allingments
    DOWNLOAD LINK v2
    http://www.mediafire.com/?bivyy24x690ahls
    3
    Can U post screens of clock fixed?
    Thanks, looks great

    Inviato dal mio GT-I9001 con Tapatalk 2

    here is my new work just more allingment left


    Uploaded with ImageShack.us
    3
    Could you upload a new fix without centerd clock so that it doesnt dissaper all the time???:) Its tottaly awesome:D

    ok no problem i am working on it