[HOW] remove status bar clock for Xperia S? - Sony Xperia P, U, Sola, Go

Hello,
I think we don't need clock in status bar cause everyone use some kind of widget that provide us with time information so I try to remove it by deleting 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" />
from res/layout/status_bar.xml in SystemUI.apk file. I recompile it without errors and clock remains in status bar
Someone was maybe successful in removing clock from status bar? Maybe someone knows how can we hide it if it is to difficult to remove it?
Thanx in advance!

So each time you want to know the time you go to your homescreen?
Verstuurd van mijn Xperia S met Tapatalk

I think it would be better if this post is in the dev sub forum.
Sent from my LT26i using xda app-developers app

No time widget on any of my screens. I use that status bar time as the main.

OK, OK, OK let we just have possibility to remove it by MOD and if someone wants to use this mod, then OK, and if not it's also OK
So, someone know how to remove it?

Related

Deleting app shortcut from laucher drawer default

Hi . I want ask devs for help. Does any dev know where and how I can delete app shortcut from app drawer because I added shortcut to settings.apk and now I dont need another shortcut in app drawer. See attachment down
Hey,
i cant reply in PM for some reason...
i forgot to mention -
i have added shortcuts for the apps im removing from the app drawer into the settings.apk
if i remove
Code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
like you mentioned in PM, the app doesnt launch at all
if i just remove
Code:
<category android:name="android.intent.category.LAUNCHER" />
the shortcut is deleted from the app drawer and the app still runs (from the settings menu), but not if i wipe before flashing
i have tried this with:
download all
beats audio/awesome beats (dsp manager) - non market app
apex launcher
nova launcher
cwm manager
quickpanel settings - non market app
fast dormancy toggle - non market app
these are all apps i have shortcuts to in my settings menu
i have compared the manifest from these apps to other apps that are hidden from view (cpu sleep for example):
Code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
that still has the intent filter and the main action inside it, but not the launcher - so its exactly the same as how im doing it - and cpu sleep works after wiping and flashing (without me modding it)
if you doing full wipe you delete - app data and cache files then app must be again installed and then it go to FC because you demage signature I think.
Before you edit signature but app was installed it has cached files that is reason why it working. Its fake and app is demage only she does not know .) but maybe is problem elsewhere I dont know ask on http://stackoverflow.com/

Hide App in drawer

I will hide 2 Apps in the Drawer but i don´t know how
Read some thing about this, that you can delte the follow valve in "AndroidManifest.xml"
Code:
<category android:name="android.intent.category.LAUNCHER" />
But it doesn´t work.
Ok the App is hide but the App don´t work anymore.
Can anybody help?
And please Guys, don´t say use a Drawer like "launcher pro" to hide Apps

[Q][ICS] Color statusbar clock

Can i change color my clock in statusbar on my LWW ? I have CyanogenTimeScape
streetu said:
Can i change color my clock in statusbar on my LWW ? I have CyanogenTimeScape
Click to expand...
Click to collapse
Yes and quite easily too. I'll explain how later when I get a chance but I will say now that you'll need to decompile your SystemUI.apk
Ticklefish said:
Yes and quite easily too. I'll explain how later when I get a chance but I will say now that you'll need to decompile your SystemUI.apk
Click to expand...
Click to collapse
why not add tha tutorial to yur thread?
I now it's systemui.apk but i don't know which files in this apk is responsible for this. Who's know it ?
Decompile systemui.apk with apktool 1.4.3.. I use xDA AutoTool
Open res/values/styles.xml
u will find this and change last line to @android:color/holo_blue_light as below
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">[B]@android:color/holo_blue_light[/B] </item>
</style>
do same for Date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
have fun...:fingers-crossed:
I thanks for help but i didn't have values
I have only:
-anim
-some drawable
-some layout
-menu
-raw
jjdoctor said:
Decompile systemui.apk with apktool 1.4.3.. I use xDA AutoTool
Open res/values/styles.xml
u will find this and change last line to @android:color/holo_blue_light as below
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">[B]@android:color/holo_blue_light[/B] </item>
</style>
do same for Date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
have fun...:fingers-crossed:
Click to expand...
Click to collapse
If you just want to change the clock colour, you could make a new style specifically for it.
streetu said:
I thanks for help but i didn't have values
I have only:
-anim
-some drawable
-some layout
-menu
-raw
Click to expand...
Click to collapse
Yes, you do. Your app won't work without it. Did it fully decompile?
Ticklefish said:
If you just want to change the clock colour, you could make a new style specifically for it.
Click to expand...
Click to collapse
tha above code wont work??
Will change color as the status bar? I would like to help me,
I'm using CM9, thanks.
Now color is black
Okay, I'm finally in a position to answer this properly.
First, you need to decompile SystemUI.apk. The best tool I can recommend for this is Tickle My Android. Partially because I made it, but also because I know it works for our devices. I'm always messing around with my SystemUI.apk and I never have any issues.
Next, edit res\layout\status_bar.xml
This is the code that describes how your status bar is put together and in there will a line of code similar 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" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
Exactly what you'll have, I don't know, but there'll be mention of the clock somewhere.
Now you just need to add one extra parameter, 'android:textColor':
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" android:textColor="#ff33b5e5"/>
Here, the 'ff33b5e5' is an ARGB code for a particular colour and transparency. Work out what the code for the colour you want is and change the line to fit.
Now, recompile the apk, get the compression and signing right and put it back on your phone.
Simple.
I have mentioned making a new style to do this. This is possible and will help if you're changing the colour of a lot of strings of text, but it's not needed just to this one thing.
---------- Post added at 09:52 AM ---------- Previous post was at 09:49 AM ----------
whalesplaho said:
tha above code wont work??
Click to expand...
Click to collapse
Oh, it will. But it will change the colour of everything that uses that style. Nothing wrong with that at all..if that's what you want to do.
---------- Post added at 09:52 AM ---------- Previous post was at 09:52 AM ----------
cholopo said:
Will change color as the status bar? I would like to help me,
I'm using CM9, thanks.
Now color is black
Click to expand...
Click to collapse
Do you want the clock the same colour as the status bar?
In which program you do it ? Because i have it:
streetu said:
In which program you do it ? Because i have it:
Click to expand...
Click to collapse
I just use Notepad. Sometimes Notepad++ if I'm working on xml that's very busy.
Did you decompile the apk?
I do all but color is same like before :/
streetu said:
I do all but color is same like before :/
Click to expand...
Click to collapse
Hmm..what colour did you try to change it to?
Are you using a theme at all?
From cyan to violet
streetu said:
From cyan to violet
Click to expand...
Click to collapse
Simple enough, I did the same sort of thing to my tablet (although I got my colour code wrong and made it pink instead..lol)
Can you share your status_bar.xml and I'll see what's gone wrong?
This is my status_bar.xml
streetu said:
This is my status_bar.xml
Click to expand...
Click to collapse
I think I know what the problem is. You've got your clock colour as a RGB code but it needs to be ARPG. If you're not too worried about having transparency, try putting 'ff' in front of the colour code.
ARGB color picker?
Ticklefish said:
Here, the 'ff33b5e5' is an ARGB code for a particular colour and transparency. Work out what the code for the colour you want is and change the line to fit.
[QUOTE/]
is this a hex color code..? i could really use some help finding a way to get color values. In the process of re-themeing my entire z902 systemUI..
Click to expand...
Click to collapse

[Q] Edit StatusBar different for HomeScreen & InApp

I started playing with the SystemUI.apk, first because with the last official ROM of my JiayuG4A the status bar became trasparent (and i hated that thing) then because now i want to try a couple of things to edit further my smartphone (JB 4.2.2)
Here's the question:
I would like to create two different BackGround for my StatusBar, on HomeScreen view, and on InApp view:
Like, when I'm working on the desktop, on the drawer (maybe) etc, there should be a particular background
while, when I'm with an App opened (the browser, the messages, whatever) there should be another background.
Looking on the internet and inside SystemUI/res/Layout i thought this:
Gemini_Super_Status_Bar.xml & Super_Status_Bar.xml are used to define the StatusBar for the HomeScreen view
Gemini_Status_Bar.xml & Status_Bar.xml are used to define the StatusBar for the InApp view
So i made this changes:
SystemUI/res/drawable/ gradient_sb.xml​
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="there's a link here, i can't post it XD">
<gradient
android:startColor="#ff000000"
android:endColor="#44000000"
android:angle="270.0"
android:centerColor="#bb000000" />
</shape>
SystemUI/res/layout/ gemini_super_status_bar.xml & super_status_bar.xml​
Code:
android:background="@drawable/gradient_sb"
SystemUI/res/layout/ gemini_status_bar.xml & status_bar.xml​
Code:
android:background="#ff000000"
I checked the apk a couple of times before putting it inside the system/app folder of my device. So i'm sure that these changes have been made.
But now the StatusBar appears to be always black and without gradient.
Is there something i missed, something i need to do to make this changes work?
Help please!!

Multiple icons for 1 app in an Icon Pack

I'm not sure how to put this to words in any understandable way so I'll give my latest attempt on a line of my appfilter.xml:
Code:
<item drawable="{'banking1', 'banking2', 'banking3', 'banking4'}" component="ComponentInfo{com.bank.name.and.stuff/banky.bank}" />
Is it possible to get 1 component using multiple drawables? for the banking app I want to include a coloured, grey, black, and white version of the icon in the Icon Pack but I'm super duper new to any of this and can't find it in any tutorial or wiki so I hope somebody here has an idea.

Categories

Resources