Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see, I've managed to center the clock and switch the notification and system icons around.
So I've only tested this mod on CM7 and HDPI.
I can't see why it wouldn't work on other gingerbread roms, pretty certain all gingerbread have the same type of statusbar.xml to play around with.
Things you need -
APKmanager
Notepad++
rootexplorer
How to do it: Use rootexplorer to grab your systemui located system>app.
Decompile it with APKmanager, go into the layout folder and edit the statusbar.xml.
For those who want to just edit the clock here is the code to do it.
find the
<com.android.systemui.statusbar.Clock' delete that whole line and paste this above the linear layout
(edit:I updated the clock code to help centering, it'll now be centered for any screensize.)
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
If you want the whole mod, heres a copy of my XML
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.StatusBarView android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingLeft="145.0dip" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
<LinearLayout android:gravity="left" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingLeft="5.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="right" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="40.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
</LinearLayout>
<com.android.systemui.statusbar.CmBatteryText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:gravity="center" android:orientation="horizontal" android:paddingLeft="297.0dip" android:paddingTop="2.5px" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryMiniIcon android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/CmBatteryMiniIcon" android:layout_width="0.0px" android:layout_height="0.0px" />
<ImageButton android:id="@id/status_home" android:background="@drawable/ic_statusbar_home" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" />
<ImageButton android:id="@id/status_menu" android:background="@drawable/ic_statusbar_menu" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" />
<ImageButton android:id="@id/status_back" android:background="@drawable/ic_statusbar_back" android:paddingRight="6.0dip" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/statusbar_background" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="5.0px" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:textSize="12.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:paddingTop="4.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:textSize="12.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:paddingTop="4.0px" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#ffffffff" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
You will need to change things to fit your own statusbar.xml. I'm on a old nightly for CM7 so it won't have as many things. So you'll have to play around and see what fits.
Once you edited, save the xml, compile with APKmanager, press Y to both questions, then deleted the resources file and statusbar.xml in the KEEP folder, sign it and then make a flashable zip and flash it over. Or replace the systemui with rootexplorer.
-----
Bugs to far: I can't seem to get the notification icons go all the way to the right side, It's not so bad because i've got the battery in place and the gap from the edge fits the battery perfectly, but it's annoying if you don't have the battery % on. I'm sure it's possible to alter it, I'm just not so great with XML.
Also the notifications overlap the clock when they get to the middle, I know how to fix that one, but just to lazy to bother as I never have that many notifications going on. The width of the notification display just needs changing.
Play around with it. Let me know how it goes.
-------
Notification mod now
Right, I've now themed the pulldown menu, I'm currently using images from the MEIZU theme as I was testing it out.
This is done by editting the status_bar_expanded.xml, replace lines that match yours.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0px">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.CarrierLabel android:textAppearance="?android:textAppearanceLarge" android:textColor="@color/carrier_label_text_color" android:layout_gravity="center_vertical" android:paddingLeft="4.0dip" android:paddingBottom="1.0dip" android:layout_width="0.5dip" android:layout_height="0.0px" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:gravity="center" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:gravity="center" android:id="@id/ongoingTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:gravity="center" android:id="@id/latestTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
<LinearLayout android:orientation="vertical" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="35.0px">
<TextView android:gravity="center" android:textSize="14.0sp" android:textStyle="bold" android:textColor="#a6a6a6" android:id="@id/clear_all_button" android:paddingTop="3.0dip" android:layout_width="480.0px" android:layout_height="fill_parent" android:scaleType="fitXY" android:text="@string/status_bar_clear_all_button" style="\?android:attr/buttonStyle" />
</LinearLayout>
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.ExpandedView>
nice work - but you got many smilies in your code
may you should use the code-tags
Wouldn't it be possible to add this into a theme chooser apk ?
This is really interesting. Will have a look how to get it on miui rom. Thanks for sharing!
Sent from my GT-I9000 using XDA Premium App
just tried this.. and my statusbar disapeared
Will continue to work on it.
Hmm weird.. Just tried to push the old SystemUI.apk to the phone (The original).. Rebooted, and the status bar is still gone :-?
EDIT: Nope, it's here again
EDIT 2: Just tried decompiling the APK, and compiling it again without making any changes. Then pushing it to the device and rebooting. My statusbar is still disapearing.
Am I doing something wrong? (Using apktool instead of APKmanager, 'cause im on a mac)
Che123 said:
nice work - but you got many smilies in your code
may you should use the code-tags
Wouldn't it be possible to add this into a theme chooser apk ?
Click to expand...
Click to collapse
There, added codetags
and I don't think so. I don't think the theme chooser has the same statusbar.xml. I haven't really looked tbh, though.
whooper90 said:
just tried this.. and my statusbar disapeared
Will continue to work on it.
Hmm weird.. Just tried to push the old SystemUI.apk to the phone (The original).. Rebooted, and the status bar is still gone :-?
EDIT: Nope, it's here again
EDIT 2: Just tried decompiling the APK, and compiling it again without making any changes. Then pushing it to the device and rebooting. My statusbar is still disapearing.
Am I doing something wrong? (Using apktool instead of APKmanager, 'cause im on a mac)
Click to expand...
Click to collapse
Hmm, are you signing the APK? I've only done it on aPKmanager, so not sure! also only done it with flashing the APK via recovery, too. I know in APKmanager you need to choose the systemapp options, does apktool have that? never used it, so not sure.
Taine0 said:
Hmm, are you signing the APK? I've only done it on aPKmanager, so not sure! also only done it with flashing the APK via recovery, too. I know in APKmanager you need to choose the systemapp options, does apktool have that? never used it, so not sure.
Click to expand...
Click to collapse
Nope, not signing the apk. Maybe I should try that.
APKtool doesn't have systemapp options. It's pretty basic, it's only possible to compile/decompile without very many options.
whooper90 said:
Nope, not signing the apk. Maybe I should try that.
APKtool doesn't have systemapp options. It's pretty basic, it's only possible to compile/decompile without very many options.
Click to expand...
Click to collapse
systemui.apk needs to be signed to work, so that could be your problem.
Taine0 said:
systemui.apk needs to be signed to work, so that could be your problem.
Click to expand...
Click to collapse
Hmm.. signed the APK using test-keys.. Same result..
You don't happen to know a way to create a flashable .zip without apkmanager?
Could this be made into a flash zip? I can never get these things to work right and would feel safer using a zip
Sent from my DROID X2 using XDA App
whooper90 said:
Hmm.. signed the APK using test-keys.. Same result..
You don't happen to know a way to create a flashable .zip without apkmanager?
Click to expand...
Click to collapse
I used uotkitchen for my flashable zip. I got it when I used it for the transparent status bar patch, Just upload your systemui.apk
SwiftLegend said:
Could this be made into a flash zip? I can never get these things to work right and would feel safer using a zip
Sent from my DROID X2 using XDA App
Click to expand...
Click to collapse
I can't make it a flashable zip because every rom uses a different setup in the statusbar.xml. So it'll just result in crashing your statusbar.
Taine0 said:
I can't make it a flashable zip because every rom uses a different setup in the statusbar.xml. So it'll just result in crashing your statusbar.
Click to expand...
Click to collapse
but it should be compatible with the same rom?
Would you mind to share your CM7 systemui.apk?
Che123 said:
but it should be compatible with the same rom?
Would you mind to share your CM7 systemui.apk?
Click to expand...
Click to collapse
Nope, it's even worse for CM7, every nightly seems different from what I've seen. My version is from nightly 24, so any version of CM7 after that will have a different systemui.apk.
Taine0 said:
Nope, it's even worse for CM7, every nightly seems different from what I've seen. My version is from nightly 24, so any version of CM7 after that will have a different systemui.apk.
Click to expand...
Click to collapse
I see...damn. thx anyway
Seems like i have to do this on my own..
got it working
decompiling the APK, edit the statusbar.xml file, compiling again, putting it into an empty CWM3 edify zip file, and flashing!
Now my clock is on the right , and everything else on the left.. Next step, to get the clock centered
hmm. I've edited the line you're telling us to, but I'm getting different result
Here's my status_bar.xml file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.CmStatusBarView android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.CmBatteryText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryMiniIcon android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/CmBatteryMiniIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingLeft="145.0dip" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
<LinearLayout android:orientation="horizontal" android:id="@id/buttons" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageButton android:id="@id/status_edge_left" android:background="@drawable/ic_statusbar_edge_right_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_home" android:background="@drawable/ic_statusbar_home_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep1" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_menu" android:background="@drawable/ic_statusbar_menu_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep2" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_back" android:background="@drawable/ic_statusbar_back_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep3" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_search" android:background="@drawable/ic_statusbar_search_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep4" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_quick_na" android:background="@drawable/ic_statusbar_na_up_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep5" android:background="@drawable/ic_statusbar_sep_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_hide" android:background="@drawable/ic_statusbar_hide_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_edge_right" android:background="@drawable/ic_statusbar_edge_left_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.CmStatusBarView>
Didn't work for me i couldnt create the flashable zip correctly so i pushed the apk to the phone with adb. I also tried just copying it in there and my status bar was missing both times
donhu said:
Didn't work for me i couldnt create the flashable zip correctly so i pushed the apk to the phone with adb. I also tried just copying it in there and my status bar was missing both times
Click to expand...
Click to collapse
Same for me
Used this zip: http://www.multiupload.com/ELFHMGUBLE
Open it with winrar (don't extract it), replace the SystemUI.apk file in /system/app/ with the one you've compiled. Then save the zip file again. (DON'T extract at any time, cause that will break the signing of the zip file).
Now you can flash through recovery
whooper90 said:
hmm. I've edited the line you're telling us to, but I'm getting different result
Here's my status_bar.xml file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.CmStatusBarView android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.CmBatteryText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryMiniIcon android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/CmBatteryMiniIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingLeft="145.0dip" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
<LinearLayout android:orientation="horizontal" android:id="@id/buttons" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageButton android:id="@id/status_edge_left" android:background="@drawable/ic_statusbar_edge_right_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_home" android:background="@drawable/ic_statusbar_home_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep1" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_menu" android:background="@drawable/ic_statusbar_menu_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep2" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_back" android:background="@drawable/ic_statusbar_back_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep3" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_search" android:background="@drawable/ic_statusbar_search_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep4" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_quick_na" android:background="@drawable/ic_statusbar_na_up_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep5" android:background="@drawable/ic_statusbar_sep_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_hide" android:background="@drawable/ic_statusbar_hide_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_edge_right" android:background="@drawable/ic_statusbar_edge_left_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.CmStatusBarView>
Click to expand...
Click to collapse
Move the clock line to above the linear layout. that way it'll be in the center. At the moment it's getting shoved aside by the notifications.
whooper90 said:
Same for me
Used this zip: http://www.multiupload.com/ELFHMGUBLE
Open it with winrar (don't extract it), replace the SystemUI.apk file in /system/app/ with the one you've compiled. Then save the zip file again. (DON'T extract at any time, cause that will break the signing of the zip file).
Now you can flash through recovery
Click to expand...
Click to collapse
did everything you said as well and still no bar the zip file worked though so thanks for that
Taine0 said:
Move the clock line to above the linear layout. that way it'll be in the center. At the moment it's getting shoved aside by the notifications.
Click to expand...
Click to collapse
Thanks! That did the trick
Share more nice things like this
I want to add a background to the filemanager.apk of my stock android 2.2..
I have decompiled it using apkmanager, and in the res/drawable folder i have added background. png... then in layout/main. xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout [B]android:background="@drawable/background" android:cacheColorHint="#00000000" [/B]android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="[B]*[/B]">
<LinearLayout android:orientation="horizontal" android:paddingLeft="6.0dip" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="?android:textAppearanceMedium" android:ellipsize="end" android:layout_gravity="left|center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/app_name" android:singleLine="true" android:layout_weight="1.0" />
<ImageButton android:id="@id/btn_home" android:background="@drawable/control_button_selector" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_home" />
</LinearLayout>
<ImageView android:gravity="fill_horizontal" android:id="@id/titleDivider" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@drawable/dialog_divider_horizontal_light" android:scaleType="fitXY" />
<LinearLayout android:orientation="horizontal" android:paddingLeft="6.0dip" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="?android:listPreferredItemHeight">
<ImageView android:layout_gravity="center" android:id="@id/title_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:ellipsize="end" android:layout_gravity="left|center" android:id="@id/title_folder_name" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
<ImageButton android:id="@id/btn_back" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_back" />
<ImageButton android:id="@id/btn_forward" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_forward" />
<ImageButton android:layout_gravity="center" android:id="@id/btn_up" android:background="@drawable/control_button_selector" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_up" />
</LinearLayout>
<ImageView android:gravity="fill_horizontal" android:id="@id/titleDivider" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@drawable/dialog_divider_horizontal_light" android:scaleType="fitXY" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<ListView android:id="@id/list" android:persistentDrawingCache="all" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:id="@id/empty" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/empty_folder" />
</FrameLayout>
</LinearLayout>
I have added the text in bold.. my problem is that the background does come when i open the filemanager. apk but when i scroll through the listview , the background dissapears and when the scroll comes to rest, the background comes back again..
This problem has been described in listview-backgrounds in android developers
but even after setting the cache color hint to transparent, the problem is still there
I have attached the filemanager. apk i have..
Any ideas ?
*EDIT: I Deleted a part in the code because xda blocked external links
bump...no replies yet ?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Compatible with:
And STOCK!
BE SURE TO HAVE A NANDROID BACKUP BEFORE ANYTHING, I'M NOT RESPONSIBLE!
Setting Up The Environment...
1· Download and install latest version of Java JDK
2· Download latest version of APK Multi-Tool as we'll be using it for un/packing APKs and push/pull them from/to our device.
3· Extract it anywhere you may like. If posible, in C:/ to avoid any kind of problems. Be sure to read README file before asking something about it.
4· Run Setup.bat, type 3 and press Enter. Close it.
5· Run Script.bat, type 0 and press Enter. Now let's type our framework's path.
6· /system/framework/framework-res.apk for basic framework file. This will be pulling it out from our phones.
7· Repeating Number 5, type /system/framework/lge-res.apk for LG's framework file.
8· Now move to X:\...\APK-Multi-Tool\place-apk-here-for-modding\ and copy both apks (framework-res + lge-res) and paste it at X:\...\APK-Multi-Tool\other\
9· Run Setup.bat again, type 2 and press Enter & close it. Then, press Shift & right click at X:\...\APK-Multi-Tool\other\ folder's background, now select open a CMD Terminal window. Type apktool if lge-res.apk & press Enter. Now both frameworks should be installed and we are ready to un/pack APKs from the version we're actually using (v30A/B/C/D...)
10· Back in Script.bat, type 0 again followed by Enter, then type the path of your desired APK. (/system/framework/xxxxxx.apk for frameworks & /system/app/xxxxxx.apk for apps). After pushing it, select it as your actual project.
11· Now type 9 followed by Enter. This will unpack our APK.
12· Now is the time for tunning anything you want to. Go to X:\...|APK-Multi-Tool\projects\xxxxxx.apk\ and you'll find there everything.
13· When it's done, let's re-pack it typing the option 11 followed by Enter. When repacking gets done, it will ask if you want to use any files from your original APK. Tell it Yes, otherwise your apk won't get signed.
14· When the extracting is done, move to X:\...|APK-Multi-Tool\keep\ and erase everything there BUT META-INF folder + AndroidManifest.xml. Now press anything at APK Multi-tool window and you'll get your APK ready to go.
15· Now type 8 to push it back to your phone and type the desired path. If it cames from /system/app/xxxxx.apk or /system/framework/xxxxx.apk.
If you get any error recompiling it, you should take a look at the log, typing 23 and fix it at the projects folder.
Click to expand...
Click to collapse
How To
You can always mix those mods to your needs.
Remove Clock
· Go to /SystemUI/res/layout/status_bar.xml
· Search for line 22 "<com.android.systemui.statusbar.policy.Clock" & erase whole line (Removing Clock)
· Recompile
Click to expand...
Click to collapse
Center Clock
· Go to /SystemUI/res/layout/status_bar.xml
· Search for line 22 "<com.android.systemui.statusbar.policy.Clock" & erase it
· Insert a clean line at 5, to be between "xmlns:systemui" & "<com.lge.systemui.StatusBarLinearLayout"
· Paste this:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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:singleLine="true" />
</LinearLayout>
· Recompile
Click to expand...
Click to collapse
Swap Icons
· Go to /SystemUI/res/layout/status_bar.xml
· Erase whole lines from 8 to 20, "<com.android.systemui.statusbar.StatusBarIconView" to "</RelativeLayout>"
· Paste this:
Code:
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" />
<TextView android:textSize="8.5dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/level_percent" android:tag="NO_R2L" android:paddingTop="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="2.0" android:layout_centerInParent="true" />
</RelativeLayout>
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/volte_normal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte" />
<ImageView android:id="@id/volte_unnormal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_unavailable" />
<ImageView android:id="@id/volte_call" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_incall" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/notification_icon_area" android:tag="NO_R2L" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<com.android.systemui.statusbar.StatusBarIconView android:gravity="right" 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" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="right" android:orientation="horizontal" android:id="@id/notificationIcons" android:tag="NO_R2L" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
· Now go to /SystemUI/res/layout/signal_cluster_view.xml
· Cut whole thing from 4 to 7, where can be found "@id/wifi_combo"
· Paste it between the last 2 "</FrameLayout>" (in other words, we are rotating objects)
· Recompile
Click to expand...
Click to collapse
Size of Battery %
· Go to /SystemUI/res/layout/status_bar.xml
· Search for "android:textSize="8.5dip" & change it's value for the desired one
· Recompile
Click to expand...
Click to collapse
Background for Notifications
· Go to /SystemUI/res/layout/status_bar.xml
· Search for "<LinearLayout androidrientation="horizontal"" at line 23
· Add the following code between "<LinearLayout" & "androidrientation="horizontal""
Code:
android:background="@drawable/statusbar_background_dualdisplay
(you can change "statusbar_background_dualdisplay" to any png you may like)
· OR, you can change it to any desired color, by writing it's code, for exemple:
Code:
android:background="#ffffffff"
· Recompile
A little Hex Colors understanding:"#FFFFFFFF"
The 2 first FF are for transparency. The others are for color levels.
2 exemples: #FFFFFFFF = White / #FF000000 = Black
Click to expand...
Click to collapse
Speed Meter (only for deodexed)
· Download attachment from here, thanks to @dzolcp
· Extract it to /SystemUI/smali/ (you will get following path "/SystemUI/smali/fx/dzolcp/")
· Go to /SystemUI/res/layout/status_bar.xml
· Add the following line to wherever you want. (If you know what you're doing with XML)
Code:
<fx.dzolcp.Speed android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
To add it in the front of Signal/Wifi icons:
· Search for <include android:id="@id/signal_cluster" and substitute full line with the following code.
Code:
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<fx.dzolcp.Speed android:layout_centerInParent="true" android:textColor="#ffffffff" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="2.0" android:textSize="10.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="bottom" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</RelativeLayout>
Click to expand...
Click to collapse
Battery % (by Huexxx)
· Go to /SystemUI/res/layout/status_bar.xml
· Search for:
Code:
<TextView android:textSize="13.0dip" android:textColor="#f2f2f2f2" android:gravity="center_vertical" android:id="@id/level_percent" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:id="@id/battery" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
· Replace it with the following:
Code:
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/level_percent" android:tag="NO_R2L" android:paddingTop="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="2.0" android:layout_centerInParent="true" />
</RelativeLayout>
Click to expand...
Click to collapse
Clock + Seconds
· Go to /SystemUI/res/layout/status_bar.xml
· Search for <com.android.systemui.statusbar.policy.Clock & replace whole line with the following
Code:
<DigitalClock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
Click to expand...
Click to collapse
Reorder Whole StatusBar / Advanced Way
· Go to /SystemUI/res/layout/status_bar.xml
· Replace this: (from 5 to 21)
Code:
<com.lge.systemui.StatusBarLinearLayout android:orientation="horizontal" android:id="@id/icons" android:tag="NO_R2L" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.lge.systemui.OperatorTextView android:textStyle="bold" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/operator_text" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<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">
<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_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:tag="NO_R2L" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/volte_normal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte" />
<ImageView android:id="@id/volte_unnormal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_unavailable" />
<ImageView android:id="@id/volte_call" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_incall" />
<TextView android:textSize="13.0dip" android:textColor="#f2f2f2f2" android:gravity="center_vertical" android:id="@id/level_percent" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:id="@id/battery" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.lge.systemui.StatusBarLinearLayout>
· With:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/statusbarleftside" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
PLACE HERE ELEMENTS TO THE LEFT
</LinearLayout>
PLACE HERE ELEMENTS TO THE CENTER
<RelativeLayout android:id="@+id/statusbarrightside" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:id="@+id/statusbarinsiderightside" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
PLACE HERE ELEMENTS TO THE RIGHT
</LinearLayout>
</RelativeLayout>
</LinearLayout>
Elements from Status Bar (to be placed at "PLACE HERE...")
· Signal & Wifi icons
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/volte_normal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte" />
<ImageView android:id="@id/volte_unnormal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_unavailable" />
<ImageView android:id="@id/volte_call" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_incall" />
·Vibrate & Silence icons
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
· Clock
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
· Battery icon & %
Code:
<TextView android:textSize="13.0dip" android:textColor="#f2f2f2f2" android:gravity="center_vertical" android:id="@id/level_percent" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:id="@id/battery" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
· Notifications icons
Code:
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:tag="NO_R2L" android:layout_width="fill_parent" android:layout_height="fill_parent" />
· More icon (shown when you get a lot of notifs)
Code:
<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" />
Click to expand...
Click to collapse
where did you learn to do this ?
virgo2000 said:
where did you learn to do this ?
Click to expand...
Click to collapse
Searching a lot, I found some tutorials for GB that still doing the trick... But i can't get system icons swapped with notifications ones (system status icons to the left, and notifications to the right)
Any help?
status_bar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background2" 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">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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:singleLine="true" />
</LinearLayout>
<com.lge.systemui.StatusBarLinearLayout android:orientation="horizontal" android:id="@id/icons" android:tag="NO_R2L" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.lge.systemui.OperatorTextView android:ellipsize="marquee" android:gravity="right" android:id="@id/operator_text" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<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">
<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_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:tag="NO_R2L" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/volte_normal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte" />
<ImageView android:id="@id/volte_unnormal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_unavailable" />
<ImageView android:id="@id/volte_call" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_incall" />
<TextView android:textSize="13.0dip" android:textColor="#f2f2f2f2" android:gravity="center_vertical" android:id="@id/level_percent" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:id="@id/battery" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</com.lge.systemui.StatusBarLinearLayout>
<LinearLayout android:background="@drawable/status_bar_background2" android:orientation="horizontal" android:id="@id/ticker" android:tag="NO_R2L" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
i ll try to do 1-2 days later, but i dont know xml well too lol
virgo2000 said:
i ll try to do 1-2 days later, but i dont know xml well too lol
Click to expand...
Click to collapse
Ok... Lets see if somebody else light us up a bit! Thanks anyway :thumbup:
Enviado desde mi LG-P970 usando Tapatalk 2
diazao said:
Hi guys/girls
Today i was looking for rearrange its status bar and figured out how to center the clock without overlap (i have no knows about xml xD) and i did it! If you guys are interested, here you go.. I'm still looking for swap notifications icons with sys ones. When i get that done, updated will be this thread
It's the SystemUI.apk from v30C, didn't realize how to make flashable zips yet :silly:
I will really appreciate any help changing icon's positions!
Enviado desde mi LG-P970 usando Tapatalk 2
Click to expand...
Click to collapse
well ,, thats how devs do it ,, you are a good learner +1 for that ,,
Alright, almost got rid of notif. icons and clock but i still getting those sys icons messed up.. Anyone expert on theming xml??
I changed incoming notif. background and looks cool
Enviado desde mi LG-P970 usando Tapatalk 2
Here is my actual status_bar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background2" 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">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textStyle="bold" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<com.lge.systemui.StatusBarLinearLayout android:orientation="horizontal" android:id="@id/icons" android:tag="NO_R2L" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.lge.systemui.OperatorTextView android:textStyle="bold" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/operator_text" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<LinearLayout android:gravity="left" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<LinearLayout android:gravity="left" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:tag="NO_R2L" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="13.0dip" android:textColor="#f2f2f2f2" android:gravity="left" android:id="@id/level_percent" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:id="@id/volte_normal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte" />
<ImageView android:id="@id/volte_unnormal" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_unavailable" />
<ImageView android:id="@id/volte_call" android:paddingRight="1.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/volte_incall" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:gravity="right" 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="right" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
</com.lge.systemui.StatusBarLinearLayout>
<LinearLayout android:background="@drawable/statusbar_background_dualdisplay" android:orientation="horizontal" android:id="@id/ticker" android:tag="NO_R2L" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
What am I doing wrong?
Thanks :thumbup:
Updated OP with screens, XML and SystemUI.
Wishing that somebody help me out on this :angel::good:
Can you make transparent status bar .zip for v30b ?:laugh:
Anybody knows if v30c sustemUI.apk works on v30b ??
the worst case scenario is bootloop or force close until i restore old one back?
EDIT: YES, V30c systemUI.apk works on V30b, the whole statusbar has no icons and it's colored "green" or dark turquoise during statup, but goes fine after a couple of seconds.
i like how it changes color while having a notification too !!
A HUGE THANKS to you diazao for your great work, i hope you find a way to rearrange your icons the way you're looking for !!!
Re: [MOD] Modding StatusBar on ICS v30 [Center Clock/No Clock/Swap Side Icons...]
morx said:
Anybody knows if v30c sustemUI.apk works on v30b ??
the worst case scenario is bootloop or force close until i restore old one back?
EDIT: YES, V30c systemUI.apk works on V30b, the whole statusbar has no icons and it's colored "green" or dark turquoise during statup, but goes fine after a couple of seconds.
i like how it changes color while having a notification too !!
A HUGE THANKS to you diazao for your great work, i hope you find a way to rearrange your icons the way you're looking for !!!
Click to expand...
Click to collapse
Haha thanks for taking the risk
Hell yeah I will! Uploading ASAP
Enviado desde mi LG-P970 usando Tapatalk 2
d1rekt0r said:
Can you make transparent status bar .zip for v30b ?:laugh:
Click to expand...
Click to collapse
By the way, I tried it but didn't get it to work... :/
I'm having problems signing news SystemUI.apks and recompiling framework-res.apk :s
Edit: Uploaded!
Re: [MOD] Modding StatusBar on ICS v30 [Center Clock/No Clock/Swap Side Icons...]
- Clicked On The Title.
- Saw The Steps
- Shut Down PC.
Lol just kidding, very nice thank You
Sent from my LG-P970 using xda premium
Re: [MOD] Modding StatusBar on ICS v30 [Center Clock/No Clock/Swap Side Icons...]
Cedlad said:
- Clicked On The Title.
- Saw The Steps
- Shut Down PC.
Lol just kidding, very nice thank You
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Lol, y u so mad
I'm just starting on it. Not from zero, but from -0,1
Enviado desde mi LG-P970 usando Tapatalk 2
diazao said:
By the way, I tried it but didn't get it to work... :/
I'm having problems signing news SystemUI.apks and recompiling framework-res.apk :s
Edit: Uploaded!
Click to expand...
Click to collapse
I´m having problems with the center clock SystemUI, have FC. Thinks it´s no signed properly. Sorry about my english and thanks for your hard work pal.
Re: [MOD] Modding StatusBar on ICS v30 [Center Clock/No Clock/Swap Side Icons...]
Baron_Rojo said:
I´m having problems with the center clock SystemUI, have FC. Thinks it´s no signed properly. Sorry about my english and thanks for your hard work pal.
Click to expand...
Click to collapse
Hmm.. This isn't even a new apk. It's the one I took from my system folder and I just changed a xml inside it, so I don't think it's sign problem... Try another one and let me know.. all of them were made by the same way.
Im gonna test it as soon as I can
Enviado desde mi LG-P970 usando Tapatalk 2
Baron_Rojo said:
I´m having problems with the center clock SystemUI, have FC. Thinks it´s no signed properly. Sorry about my english and thanks for your hard work pal.
Click to expand...
Click to collapse
Got it working? Tried wiping cache & dalvik?
News! Uploaded SystemUI without clock and swapped icons!
diazao said:
Got it working? Tried wiping cache & dalvik?
News! Uploaded SystemUI without clock and swapped icons!
Click to expand...
Click to collapse
It´s strange pal, I've installed the first version of center clock and worked very well (except for the icons overlaping). I tried to install by the same way the last version and have FC. I keep trying and I'm gonna report what happens.
I'm working to make a flashable zip, but I failing. I'm still working on that.
---------- Post added at 08:03 PM ---------- Previous post was at 07:29 PM ----------
diazao said:
Got it working? Tried wiping cache & dalvik?
News! Uploaded SystemUI without clock and swapped icons!
Click to expand...
Click to collapse
Confirmed pal! "SystemUI-v30-CenterClock.apk" doesn't work, I followed exactly your install instructions and stills appearing FC. Then push "SystemUI-v30-CenterClock+SwapIcons.apk" and works (looks really fascinating). Obviously I renamed to "SystemUI.apk" both files.
Good job and thank you.
GUIDE HOW TO ADD SERVICE PROVIDER ( Carrier Label ) to STATUS BAR
for CM9/CM10/CM10.1
and, Optional GUIDE HOW TO REMOVE/HIDE SERVICE PROVIDER ( Carrier Label ) from Notification Panel in POST #2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello guys, I want to share to you guide how to add service provider name ( Carrier label ) to status bar,
I know this mod is not usefull, but I think it's just for fun ,
especially for you who like theming, I hope you like & enjoy it :good::laugh:
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT: !!!
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
for CyanogenMod 9
Decompile systemUI.apk
go to SystemUI.apk\res\layout\status_bar.xml
and add the red code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Done, save and compile.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10
Decompile systemUI.apk
STEP -1
go to SystemUI.apk\res\layout\status_bar.xml
and add the red code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" 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" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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">
[COLOR="Red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:gravity="bottom" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
STEP -2
SystemUI.apk\res\layout\status_bar_expanded_header.xml
find this line :
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="@drawable/notification_header_bg"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
and change to :
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
STEP -3
Download this : CM10_and_CM10.1_Source_Carrier_Label
Exstract it, and merge to your decompiled sytemUI.apk
Done and recompile
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10.1
Decompile systemUI.apk
STEP -1
go to SystemUI.apk\res\layout\status_bar.xml
and add the red code :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" 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" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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">
[COLOR="Red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
STEP -2
Download this : CM10_and_CM10.1_Source_Carrier_Label
Exstract it, and merge to your decompiled sytemUI.apk
Done and recompile
GUIDE HOW TO REMOVE/HIDE SERVICE PROVIDER ( Carrier Label ) from Notification Panel
for CyanogenMod 9
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_tracking.xml
add the red code :
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" />
Done and recompile
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_expanded.xml
edit the blue code :
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" [COLOR="Blue"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_marginBottom="@dimen/close_handle_height" />
Done and recompile
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10.1
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_expanded.xml
edit the blue code :
Code:
<include android:layout_gravity="bottom" android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
Done and recompile
reserved 2
Another Great Mod and Guide, thanks for this too. I tried it for and with our SGS1 and it works great, although my carrier name is quite long I like it (perhaps I find a good way to limit the space for the letters a bit ). Think we will create a new thread in our section too, and sure again with all thanks a credit to you. Keep on your good work and thanks for sharing!
Works great on SlimBean on the GS3.
Thanks very much for the guide
Thanks for your feed back guys
Sent from my GT-I8150 using xda app-developers app
thanks for this awesome guide and for sharing it with us
cm10.1 RC4 Galaxy Nexus
saluti,mario
flashable zip
Is that possible to make a flashable zip for cm10.1?I really love this mod but I'm not familiar on how to compile apk file:crying:
thank you.
Adi Aisiteru Reborn said:
GUIDE HOW TO REMOVE/HIDE SERVICE PROVIDER ( Carrier Label ) from Notification Panel
for CyanogenMod 9
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_tracking.xml
add the red code :
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" />
Done and recompile
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_expanded.xml
edit the blue code :
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" [COLOR="Blue"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_marginBottom="@dimen/close_handle_height" />
Done and recompile
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10.1
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_expanded.xml
edit the blue code :
Code:
<include android:layout_gravity="bottom" android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
Done and recompile
Click to expand...
Click to collapse
Thanks, I added carrier label into status bar and I'm using Paranoid rom, Can you guide me how change the color of carrier base on changing status bar icon color in Paranoid setting. Thanks so much
:laugh::good::laugh::good::laugh::good:
ifyouwant said:
Thanks, I added carrier label into status bar and I'm using Paranoid rom, Can you guide me how change the color of carrier base on changing status bar icon color in Paranoid setting. Thanks so much
:laugh::good::laugh::good::laugh::good:
Click to expand...
Click to collapse
You already did that,
Text [email protected].
The carrier label color will be same like Clock color
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
You already did that,
Text [email protected].
The carrier label color will be same like Clock color
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, I did it from your guide. But it didn't changing when I changed the status bar icon in Paranoid Setting
Here it is
ifyouwant said:
Yes, I did it from your guide. But it didn't changing when I changed the status bar icon in Paranoid Setting
Here it is
Click to expand...
Click to collapse
am sorry for that, what about using theme choser ?. the color change ?
Adi Aisiteru Reborn said:
am sorry for that, what about using theme choser ?. the color change ?
Click to expand...
Click to collapse
Yes, It changes, but It didn't change such as the status bar icon color which I changed in Panaroid setting. Do you have any advice for me? Thank you so much for your reply. Thanks
ifyouwant said:
Yes, It changes, but It didn't change such as the status bar icon color which I changed in Panaroid setting. Do you have any advice for me? Thank you so much for your reply. Thanks
Click to expand...
Click to collapse
Well , it's now your job to find/solve how to merge/integrated it to Paranoid Settings. .
as this Mod is for CM10.1.
good luck
Sent from my GT-I8150 using xda app-developers app
how to add icon Service Provider ( Carrier Label ) to Status Bar ?
---------- Post added at 04:01 AM ---------- Previous post was at 03:59 AM ----------
How to add icon <logo> Service Provider ( Carrier Label ) to Status Bar
I try it on JB 4.1.2 Optimus G, only edit status_bar.xml and all are OK. thanks so much.:good:
Oh my god! I've searching this for a long time, especially when HTC First released
@Adi Aisiteru Reborn, how could you figured out the guide? Source from HTC First?
Asking for permission to post this to Sony Ericsson Xperia Mini, Mini Pro, Active, Ray, Live with Walkman Forum
Diaz1999 said:
Oh my god! I've searching this for a long time, especially when HTC First released
@Adi Aisiteru Reborn, how could you figured out the guide? Source from HTC First?
Asking for permission to post this to Sony Ericsson Xperia Mini, Mini Pro, Active, Ray, Live with Walkman Forum
Click to expand...
Click to collapse
there is no source,
I founded it my self, I use CM9 smali for CM10 and CM10.1,. ,
try it bro, use your own device CM9 Carier.smali and push it to CM10 or CM10.1
I did exactly like the tutorial, but after i rebooted the statusbar disappeared
Edit: Problem Solved! Thx for the tutorial.
ifyouwant said:
Yes, I did it from your guide. But it didn't changing when I changed the status bar icon in Paranoid Setting
Here it is
Click to expand...
Click to collapse
How to make signal icon in left statusbar like in your attachment? Guide please
Minimal Status BarBy MR.Volkf
Introduction
I was get boring with stock look CM 10.1 so i decided to make mod xoxoxo
and here I want to share it to you guide to make minimal status bar
Screenshoot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Update
Move Wifi Icon
Update some file
Requirement
BRAIN
Patient
Know how to decompile/recompiling Apk file
Notepad++
Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
Recommendation: Tickle My Android -Very easy to use :laugh:
Guide
1.Recompile SystemUI.apk
2.Open res/layout/status_bar.xml
3.Delete whole line and replace with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" 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_large" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<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">
<TextView android:textSize="14.0sp" android:textColor="#ff999999" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
<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_image_error" />
<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_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
And Open res/layout/status_bar_expanded_header.xml
line 2,replace with this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
4.Open res/values/strings.xml
Find this:
Code:
<string name="status_bar_settings_battery_meter_min_format">%d</string>
-Replace with this:
Code:
<string name="status_bar_settings_battery_meter_min_format">%d%%</string>
5.at the bottom strings.xml add this:
Code:
<string name="hello">[COLOR="Red"]Your Name Here[/COLOR]</string
Note: at Your Name Here fill with your name!
6.Open res/values/styles.xml
Find this:
Code:
<style name="TextAppearance.StatusBar.Battery" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
-Replace With this:
Code:
<style name="TextAppearance.StatusBar.Battery" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff999999</item>
</style>
7.And this
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#@*android:color/holo_blue_light</item>
</style>
-Replace with this
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff999999</item>
</style>
8.Download drawable-hdpi.zip in attachment
9.Place in res/drawable-hdpi and replace!
10.Recompile!
Set Up
Go to Setting
Open System->Status Bar->Battery Status Style,Set: Percentage
Open System->Status Bar->Signal Status Style,Set: Hidden
Thank For
ALLAH SWT!
@Ticklefish
@Adi Aisiteru Reborn -for guide :highfive:
@androidphone2012 -for guide
Source
Miui for some icon
Here is the real minimal status bar
Sent from my GT-I9003 using xda app-developers app
UPDATE UPDATE!! Work In Progress!
I was making update for wifi icon and move the signal in status bar to left,next to text if you want to be beta tester try this guide:
Guide
First do this
Decompile SystemUI.apk
Go to res/layout/status_bar.xml
Open status_bar.xml with notepad++
And replace all line with my line:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" 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_large" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<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">
<TextView android:textSize="14.0sp" android:textColor="#ff999999" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
</LinearLayout>
<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_image_error" />
<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_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="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="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Download attachment bellow and replace all image in res/drawable-hdpi
recompile!
DONE!
Bug
Wifi icon always show 3 bars - FIXED CHECK UPDATE!
-I too lazy to edit all .png file
Screenshoot
-ONLY FOR TESTER! still working on it!
Update
From now i will update only .png file where is located in drawable-hdpi
Update 8/12/2013
Wifi Icon
Bluetooth Icon
Charging Anim % Icon
Battery Icon
Solved Bug
Charging Anim
Wifi Icon
Download:
View attachment Update.zip
Screenshoot:
Hi Gan!!
Nice work, I'm currently have my statusbar modded but I miss signal icon, do you have 'minimalized' style of signal icon?? Will you share it with me??
Good work man! I really like the slim or minimalistic look..I will give this a go soon:thumbup:
Sent from my SCH-I605 using xda app-developers app
Sick layout! I only wish I had the necessary tools to mod my SystemUI.apk but these WinXP PCs at work are running like crap, won't even install the needed tools for me
This would make a cool xposed tweak.
Sent from my Nexus 4 using Tapatalk 4
CM11?
Anyone know if this works on CM11? I tried it, and when I attempted to recompile the apk, it gave a ton of errors.
It will be wonderful on CM11
Nothing I do with this is working, for some odd reasons it doesn't want to recompile.
DEV for cm10.1 Stopped! WIP for CM11 MinimalKat Status Bar!
I'm building cm10.2
This mod should be the same for the most part right? Even tho it's meant for 10.1
This is the coolest looking minimal statusbar I've seen, I'd love to be able to use it. I'm using apktool since that's all I can use on my Ubuntu
Sent from my LG Optimus 9 running RaptureROM using Tapatalk
MR.Volkf said:
Here is the real minimal status bar
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
Can You send me this version for CM11? :3
? Wysłane z Ace'a II ?