Im trying to change the color of my status bar clock(by battery) to black. I decompiled my rom, In my SystemUI>layout>status bar.xml I edited the color in Line 7 to #00000000 and compiled. No errors. I reflashed my systemUI but the clock never changes. I re checked my xml file and the changes held.
Is there another line/file I need to be editing as well.
Driving me nuts.
Thanks
Razr Maxx x912
JellyBean
Post the line you edited here.
Sent from my MOTOROLA RAZR using xda app-developers app
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#00000000" android:gravity="left|center" android:id="@id/onsText" androidaddingLeft="6.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="18" />
Trying for Black or Transparent clock
You are not editing the right code, try find the below and change the color code you like
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff1d849f" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
ok i tried to change the clock color on my rom but i was unable to locate files i tried sme Tuto but files name are diffrent i'm using the belkota BETA1 Standard Edition - S4 and the clock color is blue wanna change it to white can you help me please thank you
Related
Yesterday i saw a couple of interesting mods like putting a data icon to the expanded statusbar (here) and a brightness control bar (here)
so I decided to bring those improvements to my S2.
sadly i dont know that much about modding.
first i made some icons an copied it into drawable-hdpi.
Then I added in quickpanel_quick_settings.xml this
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="84.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_data_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.669983dip" android:src="@drawable/quickpanel_icon_data_off" />
<com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="10.659973dip" android:textStyle="normal" android:textColor="@color/quickpanel_text" android:gravity="center_horizontal" android:id="@id/quickpanel_data_btn_text" android:paddingTop="54.669983dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_data_text" android:shadowDx="1.0" android:shadowDy="1.0" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/quickpanel_data_btn_status_icon" android:paddingLeft="2.3299866dip" android:paddingRight="2.3299866dip" android:layout_width="fill_parent" android:layout_height="5.3299866dip" android:layout_marginBottom="4.5dip" android:src="@drawable/quickpanel_icon_off" android:scaleType="fitXY" />
</FrameLayout>
and added the needed values to ids.xml, public.xml and strings.xml.
What else to I need to change to make the data icon work?
(the brighness control bar comes later... just doing it step by step ^^)
I'm using stock rom 2.3.4 KG2 with speedmod kernel
Thanks a lot!
at the moment you can find the Data Toggle in some roms, like Criskelo V10 and Leomar75 Revolution. So the Developers of these roms have the answer of your question. Or look in the zip packages of them
As i said in the title. please edit this systemui.apk. because i want my clock on the center of my Status bar.
and can you edit an xml file there so i can install a battery percentage seperate the battery percentage xml.
Sorry for my Very Bad English.
Thank You in Advance!
http://www.mediafire.com/?uffzgop42t4a8co
still no reply?
It's easy uncompile your .apk
Go in folder res/layout and edit the status_bar.xml
change the line:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
for
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Remove the smiley for : p (no space)
i can't understand the codes when i open the status_bar.xml using notepad++ what should i do?
EDIT: can you just edit my status_bar.xml and upload it here so i can just replace it with the one that you do. Thanks!
I tried doing ONLY what c3ma said with the GX SystemUI.apk (decompile, edit line, save, compile and prepared file for flashing using the Tickle My Android tool). The system booted saying that an app was being updated, but it didn't worked.
This is a TICKLEFISH TUTORIAL!
{
"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"
}
I've had a few people recently ask me how to change the colour of various things on their statusbar and/or notifications screen so I thought I'd do a little tutorial.
This will show you how to change the colour of your statusbar clock. It's actually very simple but, once you know about it, you can apply this to all kinds of things.
This is my second tutorial here. If you want to learn how to center your clock, or move about various other items, check out my first one here: http://forum.xda-developers.com/showthread.php?t=1767593
So, to begin, you will need to edit your status_bar.xml. To get this, you'll need to decompile either your SystemUI.apk or framework-res.apk, depending on your rom. If it's not in either apk's, you'll need to decompile something else.
How do you decompile an apk file? Well, it wouldn't hurt to check out Tickle My Android, the link is in my signature.
This is the stock Timescape ICS 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_background" 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: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">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<ImageView android:id="@id/stat_no_sim" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" android:layout_gravity="center_vertical" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animationCache="false">
<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:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
This is long and complicated but we only care about one line:
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
That's the line that controls the appearance of the clock. We're going to edit it to change the clock from white to ICS-style blue...but there are two different ways of doing it..
The Quick Way
I'm not kidding when I say this is quick. We will need the ARGB code for the colour we want. ARGB stands for Alpha Red Green Blue and is a mix of eight hexadecimal characters. For opaque, ICS blue, we will want the code "ff278ab1". And we will want the parameter "textColor".
The new code we need will look like this:
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" [COLOR="Red"]android:textColor="#ff278ab1"[/COLOR] />
Save, recompile and all the usual stuff and...that's it. Simple, no?
The Slightly Slower Way
Have a look at res\values\styles.xml
This file defines a few styles that can be used by pretty much anything. You may spot a style called TextAppearance.StatusBar.Clock being defined here. This is used by the clock in status_bar.xml but it could also be used by anything else. The date, carrier label (if you have it in your statusbar), anything at all.
So let's make a new style:
Code:
<style name="ICSBlue">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff278ab1</item>
</style>
and add it to the file.
Now edit the clock line in status_bar.xml to:
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" [COLOR="red"]android:textAppearance="@style/ICSBlue"[/COLOR] android:singleLine="true" />
Save, recompile, blah-blah-blah..
The advantage of doing it this way is you only need to enter the ARGB code once and that new style can be used in any layout file to make anything that colour. Just remember that the style also defines the text size as well.
And here's the result:
And that's the tutorial done. Simple, but very handy to know how to do!
Now, remember "android:textColor" can be used for any text, not just the clock.
Enjoy!
---reserved---
thanx bro...
Awesome! Thanks man.
it's about time someone wrote a decent guide on how to do this.
I've learned this on my own over time, but it would have been nice to start off with a resource like this one.
THANK YOU!!
Time for me to start going hard on decompiling apk
Thanks for this great tutorial.
Does this work on any device?
Thanks for this, a very good TUT!
bigups brov..... well done!!!
currently on mobile, will check it out well on PC!
How advanced is this? Can I do something like the long dead "Reloaded ICS" with it? http://forum.xda-developers.com/showthread.php?t=1531222
Because this was awesome and seriously needs to be recreated.
ickkii said:
it's about time someone wrote a decent guide on how to do this.
I've learned this on my own over time, but it would have been nice to start off with a resource like this one.
Click to expand...
Click to collapse
The first method I ever saw for changing the clock colour involved decompiling the apk twice and editing a lot of smali. This is a little simpler!
ross231 said:
Does this work on any device?
Click to expand...
Click to collapse
Yes, and on any rom. android:textColor is a standard Android parameter.
Scary Guy said:
How advanced is this? Can I do something like the long dead "Reloaded ICS" with it? http://forum.xda-developers.com/showthread.php?t=1531222
Because this was awesome and seriously needs to be recreated.
Click to expand...
Click to collapse
Tickle My Android may have a silly name (although it's easy to remember!) but it is a full, serious de- and recompiler for Android apk's as well as doing other things.
As long as you know what changes to make to what files, it can be used to make something like that.
Sent from my SK17i using xda premium
Tickle if one wanna use another color, how can one go about it? how can i get yur battery icon please with stat_battery.xml file??? i need percentage battery style, anymore screenies please?
> Purple
> Red
whalesplaho said:
Tickle if one wanna use another color, how can one go about it? how can i get yur battery icon please with stat_battery.xml file??? i need percentage battery style, anymore screenies please?
> Purple
> Red
Click to expand...
Click to collapse
To use another colour, just use a different ARGB code. Most decent image editors will give you at least a RGB code and you can work out what transparency you need. If you don't have a decent image editor, I recommend Pixelformer. It's not massively powerful but it's free and it's what I use.
As for my battery icon in the screenshot, that's available from Tickle My Android. The link is in my signature.
Sent from my SK17i using xda premium
Ticklefish said:
To use another colour, just use a different ARGB code. Most decent image editors will give you at least a RGB code and you can work out what transparency you need. If you don't have a decent image editor, I recommend Pixelformer. It's not massively powerful but it's free and it's what I use.
As for my battery icon in the screenshot, that's available from Tickle My Android. The link is in my signature.
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
i dont know how to use pixelformer, i would appreciate if yhu can help me with tha code please!
i have TickleforAndroid but dnt know how i will go about getting tha battery icon & tha stat_battery.xml
whalesplaho said:
i dont know how to use pixelformer, i would appreciate if yhu can help me with tha code please!
Click to expand...
Click to collapse
you can use, photo editor, free from play store, put it in drawing mode and it will show the colour and transparency value you can use .
ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
plegdroid said:
you can use, photo editor, free from play store, put it in drawing mode and it will show the colour and transparency value you can use .
ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
Click to expand...
Click to collapse
thanks brov....
whalesplaho said:
i dont know how to use pixelformer, i would appreciate if yhu can help me with tha code please!
i have TickleforAndroid but dnt know how i will go about getting tha battery icon & tha stat_battery.xml
Click to expand...
Click to collapse
There are instructions for changing battery icons in the second post on the Tickle My Android thread. Or it could be the third post, I don't remember.
Sent from my SK17i using xda premium
Ticklefish said:
There are instructions for changing battery icons in the second post on the Tickle My Android thread. Or it could be the third post, I don't remember.
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Thanks brov... will check it brov!!!
TickleFish check dis out.... thanks!!!
will try to get more codes.
you have a status bar,
And it got a clock,,,
BUT ALAS, when you try to change its colour
Da hell dude its in smali,, now i have to handle like a thousand lines of code and use google
^^DID YOU EVER FACE SUCH A SITUATION,,, well then,, here comes mvsdroid to enable you to edit the clock text features
with xmls only so dont rot in the SMALI FILES (the horror)
----all u need is ur brain and a tool to work on apks----
1) Decompile SystemUI.apk
2) Open res/layout/Status_bar.xml
3) You will see this
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#ff33b5e5" android:gravity="left|center" androidaddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
kick this line with the delete button and in place of that paste this
<com.android.systemui.statusbar.policy.DigitalClock android:id="@id/clock" android:background="#ee000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:layout_alignParentRight="true">
<TextView android:textSize="16.0dip" android:textColor="#ff33b5e5" android:ellipsize="none" android:gravity="Right" android:id="@id/timeDisplayBackground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="16.0dip" android:textColor="#ff33b5e5" android:ellipsize="none" android:gravity="Right" android:id="@id/timeDisplayForeground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.systemui.statusbar.policy.DigitalClock>
Now since u have added that android:id attribute,, that cool piece of text shall help us change whatever we want,,,
Now there are two android:textColor attributes...
Find em and change it to whatever hex code you want,, means like if you want ICS BLUE,, make them android:textColor="#ddff00"
and similarly change the size attributes,, so now next time you want that clock to obey ur command,, you dont need no smali!!!!!!
4) Now download the digital clock smali i am giving and place it in systemUI/smali\com\android\systemui\statusbar\policy
5) Then save it and close it
Now download the digital clock smali i am giving and place it in systemUI/smali\com\android\systemui\statusbar\policy
6) Recompile properly
7) Have fun
8) If you had fun in step 6,, press thanks button
<---- dont just see this and laugh,, Press thanks if you like it
STILL ,,, post a reply,, I am still alive to help
I think have to add digitalclock smali?
Sent from my GT-S5360 using Tapatalk 2
Well bro............. NO NEED
Its already there,,,, thats the good thing,,,, maybe samsung wanted an expanded clock and then threw the option but did not delete the smali!!!!
What firmware?
Sent from my GT-S5360 using Tapatalk 2
Well bro.............
the smali part is needed only if you are using stock rom,, but most roms have that already,, but thankyou,,, i will add that too!!!!!!!!!!!!!!!!!!
Nice guide
Sent from my GT-S5360 using Tapatalk 2
Nice...
Regards,
Ganesh
mvsdroid said:
you have a status bar,
And it got a clock,,,
BUT ALAS, when you try to change its colour
Da hell dude its in smali,, now i have to handle like a thousand lines of code and use google
^^DID YOU EVER FACE SUCH A SITUATION,,, well then,, here comes mvsdroid to enable you to edit the clock text features
with xmls only so dont rot in the SMALI FILES (the horror)
----all u need is ur brain and a tool to work on apks----
1) Decompile SystemUI.apk
2) Open res/layout/Status_bar.xml
3) You will see this
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#ff33b5e5" android:gravity="left|center" androidaddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
kick this line with the delete button and in place of that paste this
<com.android.systemui.statusbar.policy.DigitalClock android:id="@id/clock" android:background="#ee000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:layout_alignParentRight="true">
<TextView android:textSize="16.0dip" android:textColor="#ff33b5e5" android:ellipsize="none" android:gravity="Right" android:id="@id/timeDisplayBackground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="16.0dip" android:textColor="#ff33b5e5" android:ellipsize="none" android:gravity="Right" android:id="@id/timeDisplayForeground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.systemui.statusbar.policy.DigitalClock>
Now since u have added that android:id attribute,, that cool piece of text shall help us change whatever we want,,,
Now there are two android:textColor attributes...
Find em and change it to whatever hex code you want,, means like if you want ICS BLUE,, make them android:textColor="#ddff00"
and similarly change the size attributes,, so now next time you want that clock to obey ur command,, you dont need no smali!!!!!!
4) Now download the digital clock smali i am giving and place it in systemUI/smali\com\android\systemui\statusbar\policy
5) Then save it and close it
Now download the digital clock smali i am giving and place it in systemUI/smali\com\android\systemui\statusbar\policy
6) Recompile properly
7) Have fun
8) If you had fun in step 6,, press thanks button
<---- dont just see this and laugh,, Press thanks if you like it
STILL ,,, post a reply,, I am still alive to help
Click to expand...
Click to collapse
Nice...
that is not how you thank someone in xda bro,,,
salizzan said:
Nice...
Click to expand...
Click to collapse
DOnt say IT,,, PRess it
Dear @wanam,
I'm Vietnamese and I have used your extremely good themed editors mod.
Some Vietnamese developers have included some handmade mode for Home and Lock (power) button in status bar, and their instruction is to decompile, edit xml and compile again. But when I use you mod, I cannot edit them in the right way.
My point here is, if there is anyway that you can include these mode in your next update, since it's very helpful to reduce hardkey using (home and power button).
Below are the module they instruct me to do, hope you can understand what I am trying to describe. (they are using apktool, notepad++, systemui.apk, framework-res.apk, twframework-res.apk)
decompile
edit file status_bar.xml with notepad++
after these code [<com.android.systemui.statusbar.StatusBarIconView]
add below
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" androidaddingRight="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
after these code [<com.android.systemui.statusbar.policy.Clock]
add below
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:src="@drawable/ic_sysbar_lock" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
copy 2 png files which name for Home key and Lock key: ic_sysbar_lock.png and ic_sysbar_recent.png into folder drawable-xhdpi.
I have do all but they don't work, i'm using Custom Rom Note X with your Mod Wanam Exposed.
Many thanks for your help if you can include this into your great modules.
Regard,
Bao