FORUMS

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

6,112 posts
Thanks Meter: 4,838
 
By nitinvaid, Senior Member on 17th September 2012, 06:35 PM
Post Reply Email Thread
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




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




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

what i want to do is to hide the statusbar clock
The Following 34 Users Say Thank You to nitinvaid For This Useful Post: [ View ] Gift nitinvaid Ad-Free
17th September 2012, 06:47 PM |#2  
nitinvaid's Avatar
OP Senior Member
Flag New Delhi
Thanks Meter: 4,838
 
Donate to Me
More
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>
The Following 9 Users Say Thank You to nitinvaid For This Useful Post: [ View ] Gift nitinvaid Ad-Free
18th September 2012, 12:40 PM |#3  
hypnos17's Avatar
Senior Member
Flag Pan Daemonium
Thanks Meter: 4,551
 
Donate to Me
More
Can U post screens of clock fixed?
Thanks, looks great

Inviato dal mio GT-I9001 con Tapatalk 2
18th September 2012, 12:51 PM |#4  
kormatoes's Avatar
Senior Member
Flag newcastle upon tyne
Thanks Meter: 3,845
 
Donate to Me
More
Look in neo themes section already done for stock maybe look at layouts .

Sent from my Xperia Neo V using xda premium
18th September 2012, 01:14 PM |#5  
nitinvaid's Avatar
OP Senior Member
Flag New Delhi
Thanks Meter: 4,838
 
Donate to Me
More
Quote:
Originally Posted by hypnos17

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
The Following 3 Users Say Thank You to nitinvaid For This Useful Post: [ View ] Gift nitinvaid Ad-Free
18th September 2012, 01:53 PM |#6  
nitinvaid's Avatar
OP Senior Member
Flag New Delhi
Thanks Meter: 4,838
 
Donate to Me
More
almost complete


Uploaded with ImageShack.us
The Following User Says Thank You to nitinvaid For This Useful Post: [ View ] Gift nitinvaid Ad-Free
18th September 2012, 02:17 PM |#7  
androidindian's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 824
 
More
wow bro, this is amazing!!!
18th September 2012, 04:57 PM |#8  
nitinvaid's Avatar
OP Senior Member
Flag New Delhi
Thanks Meter: 4,838
 
Donate to Me
More
COMPLETED
Now what i want is to hide the clock while statusbar expended is open
The Following 2 Users Say Thank You to nitinvaid For This Useful Post: [ View ] Gift nitinvaid Ad-Free
18th September 2012, 05:11 PM |#9  
Senior Member
Flag Z├╝rich
Thanks Meter: 48
 
More
Mind sharing your work? Or any guide on how to do it?
18th September 2012, 05:37 PM |#10  
nitinvaid's Avatar
OP Senior Member
Flag New Delhi
Thanks Meter: 4,838
 
Donate to Me
More
Quote:
Originally Posted by NeoCream

Mind sharing your work? Or any guide on how to do it?

for tutorial i can not give you now neither i remember it it took me 10hrs and still working
To get it allinged and make it look like CM10
even i dont remenber now how many files i have changed but
you can test it here
i am not sure it works for u or not
so make a backup before flashing it
http://www.mediafire.com/?56zki17ab2o69e3
The Following 2 Users Say Thank You to nitinvaid For This Useful Post: [ View ] Gift nitinvaid Ad-Free
18th September 2012, 06:05 PM |#11  
hypnos17's Avatar
Senior Member
Flag Pan Daemonium
Thanks Meter: 4,551
 
Donate to Me
More
Not works here
Please try again, or share ur apk

Inviato dal mio GT-I9001 con Tapatalk 2
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes