Related
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.
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"
}
If you've been following these tutorials, you'll know by now how to center the clock in the statusbar and how to change its colour to whatever you like. So far, so good.
Now, let's do something you won't see anywhere else. Let's make it display seconds!
You haven't been following my threads?
Well, click here to find out how to change the clock's colour and here to find out how to center it.
So..let's get started.
We will need to edit status_bar.xml in SystemUI.apk. To do this, we'll need to pull and decompile the apk file from the phone.
What's the best way to do this? Why, with Tickle My Android, of course!
This is the stock code in Timescape ICS:
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>
We'll need to edit the line containing the clock:
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" />
Now, how do we add seconds to this? XML tags? Smali edits?
Nah..
We'll cheat!
There's a little bit of widget code that's been in Android for ages called 'DigitalClock'. This provides..can you guess..a digital clock! And we're going to use it like this:
Code:
<DigitalClock 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" />
This will change the xml to:
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>
<DigitalClock 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>
Save, recompile, blah-blah-blah.
And here it is:
It's worth noting that DigitalClock doesn't have any leading zeros. Which means, at one o'clock in the morning, the clock shows 1:00:00, not 01:00:00.
There's also another widget code you might be interested in, which is AnalogClock. This gives you...well, I'm sure you can guess.
This doesn't work well on the statusbar as the clock won't be big enough. But it can be used in other places.
Here's my personal setup on my Mini Pro:
Have fun!
Amazing brotha... trying it out now!
Bro, i can't recompile the file. it said "error, "systemUI.apk" has not been fully decompiled". In fact i already modified the code inside the status_bar.xml
Tickle My Android version 4.3,
Mini Pro ICS .587 stock ROM, rooted.
Thanks.
what about tha analog clock brotha?
coolkwc said:
Bro, i can't recompile the file. it said "error, "systemUI.apk" has not been fully decompiled". In fact i already modified the code inside the status_bar.xml
Tickle My Android version 4.3,
Mini Pro ICS .587 stock ROM, rooted.
Thanks.
Click to expand...
Click to collapse
Yes, but the apk is still missing information. If you're using the stock rom, chances are you didn't install framework-res.apk before you started decompiling.
Oh, and Tickle My Android is on Version 5.0 now..
Sent from my SK17i using xda premium
what about tha analog clock brotha?
Click to expand...
Click to collapse
Give it a try and see what happens!
Sent from my SK17i using xda premium
Ticklefish said:
Give it a try and see what happens!
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
no code for tha Analog brov....
Ticklefish said:
Yes, but the apk is still missing information. If you're using the stock rom, chances are you didn't install framework-res.apk before you started decompiling.
Oh, and Tickle My Android is on Version 5.0 now..
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Bro, i'm using v5 now. Can recompile...after that what shall i do? option 14 to prepare system apps for pushing? or option 15 to sign? after that how to push back the device? create flashable zip? i try create zip, but error... Sorry bro, i read the TMA tutorial, but it is confusing, especially after the step of recompile.
Thanks in advance.
---------- Post added at 06:58 PM ---------- Previous post was at 06:49 PM ----------
coolkwc said:
Bro, i'm using v5 now. Can recompile...after that what shall i do? option 14 to prepare system apps for pushing? or option 15 to sign? after that how to push back the device? create flashable zip? i try create zip, but error... Sorry bro, i read the TMA tutorial, but it is confusing, especially after the step of recompile.
Thanks in advance.
Click to expand...
Click to collapse
Bro, i adi figure out how to create zip, previously i din set destination folder for zip.
coolkwc said:
Bro, i'm using v5 now. Can recompile...after that what shall i do? option 14 to prepare system apps for pushing? or option 15 to sign? after that how to push back the device? create flashable zip? i try create zip, but error... Sorry bro, i read the TMA tutorial, but it is confusing, especially after the step of recompile.
Thanks in advance.
---------- Post added at 06:58 PM ---------- Previous post was at 06:49 PM ----------
Bro, i adi figure out how to create zip, previously i din set destination folder for zip.
Click to expand...
Click to collapse
Once you've successfully recompiled, you need to prepare the files then make a flashable zip. Preparing signs the new apk in the same way as the old, which you need to do to make the phone accept it.
Sent from my SK17i using xda premium
Whalesplaho, the xda app is misbehaving again and I can't view your post to quote it.
But basically, the code is AnalogClock and you just need to set the width and height. If you examine the full tag for DigitalClock as I wrote in the op, that should give you enough to start with.
The analogue clock is really meant for app developers to use, because it doesn't work well when it's small, but it works well on the tracking part of the drop-down notification screen.
Have a play and experiment with it. It's the best way of learning!
Sent from my SK17i using xda premium
really like it tackelfish...definitly going to try this..
Just one question..don't I need the png's for clock in notification area.?
Sent from my SK17i using XDA Premium HD app
sandy7 said:
really like it tackelfish...definitly going to try this..
Just one question..don't I need the png's for clock in notification area.?
Sent from my SK17i using XDA Premium HD app
Click to expand...
Click to collapse
Nope. You can actually use PNG's for the different parts of the clock if you want but what you see in the screenshots is how it looks by default. All you need is code.
Sent from my SK17i using xda premium
Ticklefish said:
Once you've successfully recompiled, you need to prepare the files then make a flashable zip. Preparing signs the new apk in the same way as the old, which you need to do to make the phone accept it.
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Bro, i really dun know what's wrong with my step, please kindly review.
1. Pull framework-res.apk, decompiled and install in PC.
2. Pull systemUI.apk, decompiled.
3. Edit status_bar.xml as stated, then save.
4. recompile systemUI.apk
5. prepare system apps for pushing.
6. sign app.
7. create flashable zip
Here's the problem, i dun understand the purpose of step 5 and 6, am i doing wrongly??
I flash using CMW, boot into recovery and install zip from sdcard.
the result is as follow:
<<FLASHING MOD>>
ADDING XTRA FILES>>
[!] Nothing to do in XTRAS
WORPHING >>
[!] Nothing to morph
{ Nothing has changed }
CLEANING CACHE, TEMPORAL FILES & EXIT >>
Install from sdcard complete.
i reboot and nothing has changed. I tried pull the modified systemUI.apk from phone, and noticed that the status_bar.xml still remained same as original, which doesn't changed as i edit.
Really no idea what's wrong with that.
Thanks in advance.
coolkwc said:
Bro, i really dun know what's wrong with my step, please kindly review.
1. Pull framework-res.apk, decompiled and install in PC.
2. Pull systemUI.apk, decompiled.
3. Edit status_bar.xml as stated, then save.
4. recompile systemUI.apk
5. prepare system apps for pushing.
6. sign app.
7. create flashable zip
Here's the problem, i dun understand the purpose of step 5 and 6, am i doing wrongly??
I flash using CMW, boot into recovery and install zip from sdcard.
the result is as follow:
<<FLASHING MOD>>
ADDING XTRA FILES>>
[!] Nothing to do in XTRAS
WORPHING >>
[!] Nothing to morph
{ Nothing has changed }
CLEANING CACHE, TEMPORAL FILES & EXIT >>
Install from sdcard complete.
i reboot and nothing has changed. I tried pull the modified systemUI.apk from phone, and noticed that the status_bar.xml still remained same as original, which doesn't changed as i edit.
Really no idea what's wrong with that.
Thanks in advance.
Click to expand...
Click to collapse
Don't sign the apk. That's what preparing it is all about.
And it looks like you're creating the zip file without putting any files in it. Once you've recompiled and prepared SystemUI.apk, you need to add it to system/app in the zip menu. Then you can make the zip.
Sent from my SK17i using xda premium
Realy cool... thanks for showing us!! :good:
whalesplaho said:
Amazing brotha... trying it out now!
Click to expand...
Click to collapse
brov...can you mod it to your v6 tabbed systemui mod..?
it would be great
Dark ramadhan said:
brov...can you mod it to your v6 tabbed systemui mod..?
it would be great
Click to expand...
Click to collapse
Anybody can..fancy giving it a try?
Sent from my SK17i using xda premium
Ticklefish said:
Anybody can..fancy giving it a try?
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
edited some xml but cant recompile... apktool aint working on windows 8, i get error apktool is not recognised while trying to recompile!
ticklefish should i upload my edited file & help me recompile please?
whalesplaho said:
edited some xml but cant recompile... apktool aint working on windows 8, i get error apktool is not recognised while trying to recompile!
ticklefish should i upload my edited file & help me recompile please?
Click to expand...
Click to collapse
I'm happy to, if I have the time. I might even be able to in a hour or two. In the meantime, what are you using for your de/recompiling?
Sent from my SK17i using xda premium
Ticklefish said:
I'm happy to, if I have the time. I might even be able to in a hour or two. In the meantime, what are you using for your de/recompiling?
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
I do use Apktool on my Windows 7 but not working on Windows 8..... i edited an already decompiled apk!
should i upload & drop tha link?
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
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
Hi, can someone make a center clock mod on statusbar for evolution x4 rom? I really need to center my clock on statusbar because i dont know how to edit systemui.apk :crying:
Really need it
For starters this should be in questions & answers as only themes & apps should be posted here (not request for them)
I don't have time to do it for you & you should learn how so here is the way to do it
decompile systemui.apk (found in system/app) with apktool - guides to which are found in general section
Once decompiled open res/layout/status_bar.xml with notpad++
Find the line about the clock & replace with something similar
Code:
<LinearLayout android:textColor="#ff09a9ec" 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="26.5dip" android:textStyle="bold" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="false" android:layout_weight="1.0" />
</LinearLayout>
You may have to change it around a bit depending on the layout but that in general will center the clock
marcussmith2626 said:
For starters this should be in questions & answers as only themes & apps should be posted here (not request for them)
I don't have time to do it for you & you should learn how so here is the way to do it
decompile systemui.apk (found in system/app) with apktool - guides to which are found in general section
Once decompiled open res/layout/status_bar.xml with notpad++
Find the line about the clock & replace with something similar
Code:
<LinearLayout android:textColor="#ff09a9ec" 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="26.5dip" android:textStyle="bold" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="false" android:layout_weight="1.0" />
</LinearLayout>
You may have to change it around a bit depending on the layout but that in general will center the clock
Click to expand...
Click to collapse
Thank You Sir !!+1
marcussmith2626 said:
For starters this should be in questions & answers as only themes & apps should be posted here (not request for them)
I don't have time to do it for you & you should learn how so here is the way to do it
decompile systemui.apk (found in system/app) with apktool - guides to which are found in general section
Once decompiled open res/layout/status_bar.xml with notpad++
Find the line about the clock & replace with something similar
Code:
<LinearLayout android:textColor="#ff09a9ec" 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="26.5dip" android:textStyle="bold" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="false" android:layout_weight="1.0" />
</LinearLayout>
You may have to change it around a bit depending on the layout but that in general will center the clock
Click to expand...
Click to collapse
Okay i will try. Thank you