I need to remove the clock from my status bar, I know that it's /res/layout/tw_status_bar.xml but I can't decompile anything to save my life, it's getting in the way of my theme! Can someone help me out, thanks!
I believe this line needs to be removed:
<com.android.systemui.statusbar.policy.Clock android:textSize="19.0dip" android:textColor="#ffa6a6a6" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
please post your log, so we can see the problem on why you cant decompile, i also had something in my theme, stoping it from recompiling, then i took a look at the log, with some help from my fellow xda users, so maybe i can help you, because i got this log thing down now, once its out of your theme, you can compile and recompile freely
I don't know how, that's why I can't decompile it!
Sent from my GT-I9100 using xda app-developers app
Installing framework-res.apk is needed for decompiling systemui
Try "apktool if framework-res.apk"
PS. Don't use apk manager. Use the real apktool
Sent from my GT-I9100 using xda premium
Related
Hi , I had search every where how to change clock color on status bar in latest Samsung ROM ( JB ) but non-work
Coz its code is a bit different from other ROM. So here's how
Requirement :
SystemUI.apk
A bit knowledge about decompiling
Patience
First --->
Decompile your systemUI.apk, go res/layout/tw_status_bar.xml
Then --->
Search for this code
Code:
<com.android.systemui.statusbar.policy.Clock
Then --->
You will see
Code:
android:textColor="#fffefefe
behind it.
Now you may change whatever color you want by changing the code.
Here http://html-color-codes.info/ it maybe useful for you to find the color code
Note : The last 6-digit IS the color code, whereby
the two in front it is transparency.
It count by
#FF****** ( Opaque )
#00****** (Transparent )
It is recommended not to change the first two digits except you know what you are doin :laugh:
Now --->
Recompile your apk , drag resources.arsc and tw_status_bar.xml from your newly build APK to your old SystemUI.apk
Finally --->
Push your SystemUI,apk to system/app of your phone and reboot.
DONE.
DO PRESS THE THANKS BUTTON IF I HELP YOU !!!! CHEERS
You can change the colour of the battery text on the line above this too.
BTW, as nothing is changed in resources.arsc when you decompile, edit \layout\tw_status_bar.xml and then recompile so there's no need to replace it in your old SystemUI.apk
Just replace the modified & recompiled tw_status_bar.xml
Spannaa said:
You can change the colour of the battery text on the line above this too.
BTW, as nothing is changed in resources.arsc when you decompile, edit \layout\tw_status_bar.xml and then recompile so there's no need to replace it in your old SystemUI.apk
Just replace the modified & recompiled tw_status_bar.xml
Click to expand...
Click to collapse
what's the line that I should edit to change the txt color of the battery percentage pls ?
thanks for ur help
hii1 said:
what's the line that I should edit to change the txt color of the battery percentage pls ?
thanks for ur help
Click to expand...
Click to collapse
Code:
<TextView android:textSize="12.0dip" android:textColor="#ff33b5e5" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
android:textColor="#ff33b5e5" changes the battery % text to ICS Blue - if you want a different colour, change the last six characters to the hex code of the clour you want.
Been looking for ages
Been looking for ages and tried lots of methods and finally one that works. And such a simple change too............
Thanks a million:good:
Hi there......
As posted earlier I have managed to get this to work but flashed using Villain Theme .zip........worked fine.
I have a small problem and would appreciate any input.......As said I changed the clock colour and at the same time altered a couple of other values in the values/dimens file as below to 100% for brighter notifications.
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
<item type="dimen" name="tw_status_bar_icon_drawing_alpha">100.0%</item>
However, when I recompile the values folder is not present in the recompiled build/res folder but the other I changed was. Can anyone tell me why? It would be very helpful to know if I am doing something wrong when recompiling.....
Many thanks in advance:fingers-crossed:
CarlM34 said:
Hi there......
As posted earlier I have managed to get this to work but flashed using Villain Theme .zip........worked fine.
I have a small problem and would appreciate any input.......As said I changed the clock colour and at the same time altered a couple of other values in the values/dimens file as below to 100% for brighter notifications.
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
<item type="dimen" name="tw_status_bar_icon_drawing_alpha">100.0%</item>
However, when I recompile the values folder is not present in the recompiled build/res folder but the other I changed was. Can anyone tell me why? It would be very helpful to know if I am doing something wrong when recompiling.....
Many thanks in advance:fingers-crossed:
Click to expand...
Click to collapse
Values becomes part of resources.arsc
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Values becomes part of resources.arsc
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for the reply.......worked:good:
If anyone can help it would be really appreciated!
I have posted in various theming threads but to no avail and am posting here as a last ditch cry for aid
Not sure what I have done here but my volume slider seems to be scrunched up slightly and am unsure how to rectify?
I have not altered the volume_slider_bg.9 and have changed the size of the icons but no change.
As said, any help is appreciated, thanks
How to Center the Clock in Status Bar
Hi,
Can any one provide the code to center the clock in the status bar.....I assume it is also in the tw_status_bar.xml..............JB......I cannot find anything that works at the moment.
Many Thanks in advance:good:
CarlM34 said:
Hi,
Can any one provide the code to center the clock in the status bar.....I assume it is also in the tw_status_bar.xml..............JB......I cannot find anything that works at the moment.
Many Thanks in advance:good:
Click to expand...
Click to collapse
It's the second mod in this post by @bombaybadboy
Hello guys, specially for Themers.
Anyone of you knows how to remove the toggles on the statusbar expanded? If anyone could help me that could be highly appreciated.
Dunno if this working or not but u can try this...
Quickpanel_quick_setting.xml change every framelayout height to "0.0dip"
Sent from my GT-S5360 using Tapatalk 2
Try this:
in the Quickpanel_quick_setting.xml
Look for
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
replace
Code:
android:layout_height="@dimen/quick_setting_button_height"
with this
Code:
android:layout_height="0.0dip"
hope it works
remember to make a backup though
d3cka said:
Dunno if this working or not but u can try this...
Quickpanel_quick_setting.xml change every framelayout height to "0.0dip"
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
DarkZied said:
Try this:
in the Quickpanel_quick_setting.xml
Look for
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
replace
Code:
android:layout_height="@dimen/quick_setting_button_height"
with this
Code:
android:layout_height="0.0dip"
hope it works
remember to make a backup though
Click to expand...
Click to collapse
nope, neither worked. @DarkZied There's no LinearLayout in statusbar_expanded.xml. There's framelayout. Changed that wo 0.0dip, didn't work as well
Just add lidroid 15 toggles, then go into settings and uncheck every toggle.
Sent from my GT-S5830i - Hit thanks if I helped
Hi there, looking to see if anyone knows how to set a email link from XML Coding?
Cheers
t3hShmo said:
Hi there, looking to see if anyone knows how to set a email link from XML Coding?
Cheers
Click to expand...
Click to collapse
Hi,
For TextView you can use android:autoLink = "email" property.
Something like this:
Code:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="email"
android:text="[email protected]" />
strings.xml
Code:
<string name="my_email_link"> send an <a href=mailto:[email protected]>Email</a> to developer</string>
. Then create textview, and setText() to example string.
Noted to self thrice via tapatalk
Hi!
I want make new theme for LG Launcher and I want change icons in settings app (Display, Sound etc). How do this without edit LGSettings.apk and without edit LGEasySettings?
I tried add strings in \res\xml\theme_resource.xml
Example:
Code:
<AppIcon name="com.android.settings/com.android.settings.DisplaySettings" image="settings_display" />
<AppIcon name="com.android.settings/com.android.settings.Settings$DisplaySettingsActivity" image="settings_display" />
<AppIcon name="com.android.settings/com.android.settings.lge.PouchSettings" image="settings_display" />
<AppIcon name="com.android.settings/com.android.settings.lge.ScreenMode" image="settings_display" />
But icons not change (2nd screenshot), icons change only in top tittle (1st screenshot)
x-zes said:
Hi!
I want make new theme for LG Launcher and I want change icons in settings app (Display, Sound etc). How do this without edit LGSettings.apk and without edit LGEasySettings?
I tried add strings in \res\xml\theme_resource.xml
Example:
Code:
<AppIcon name="com.android.settings/com.android.settings.DisplaySettings" image="settings_display" />
<AppIcon name="com.android.settings/com.android.settings.Settings$DisplaySettingsActivity" image="settings_display" />
<AppIcon name="com.android.settings/com.android.settings.lge.PouchSettings" image="settings_display" />
<AppIcon name="com.android.settings/com.android.settings.lge.ScreenMode" image="settings_display" />
But icons not change (2nd screenshot), icons change only in top tittle (1st screenshot)
Click to expand...
Click to collapse
That isn't possible with a home theme. It would be cool if you could though.
App icons change wherever they are shown including the title/action bar so that's why it changes at the top.
Questions belong in Q&A section, for future reference. Welcome to the forum.
If try extract code and layouts from LGEasySettings.apk and put this code and layouts with change icons name in theme apk?
Is it possible to when apply theme with code from LGEasySettings.apk and work this from theme? In other words, insert LGEasySettings.apk in theme.
x-zes said:
If try extract code and layouts from LGEasySettings.apk and put this code and layouts with change icons name in theme apk?
Is it possible to when apply theme with code from LGEasySettings.apk and work this from theme? In other words, insert LGEasySettings.apk in theme.
Click to expand...
Click to collapse
I finally did changing the png's:
http://www.htcmania.com/showthread.php?t=811479
I can somebody replace icons in LGEasySettings.apk and LGSettings.apk. But I want replace icons when apply my theme without edit LGEasySettings.apk and LGSettings.apk
x-zes said:
I can somebody replace icons in LGEasySettings.apk and LGSettings.apk. But I want replace icons when apply my theme without edit LGEasySettings.apk and LGSettings.apk
Click to expand...
Click to collapse
When it comes to mod something you got to make some ultimate changes in order to get it your way.
If you don't wanna mess around, then there is one solution: go to Hogwarts become a magician
x-zes said:
I can somebody replace icons in LGEasySettings.apk and LGSettings.apk. But I want replace icons when apply my theme without edit LGEasySettings.apk and LGSettings.apk
Click to expand...
Click to collapse
Not possible. The only way I can think to edit the pngs without editing LGEasySettings.apk and LGSettings.apk is with an xposed module.
Hi could you please tellme which file you edited to make the settings menu, black? Thanks in advance
Sent from my LG-E980 using XDA Free mobile app
hi everyone... here is another mod from me
install from recovery
for odex/deodex stock rom 5.0.1
fix on lock screen if charge phone and reupload mod
if you have odex system, then after installation of this mod,wipe cache
Hi, thanks for this mod! Can you please show us how you did that by making a tutorial. Also is it possible to add the percentage number next to the battery icon? (see attached screenshot).
iliass01 said:
Hi, thanks for this mod! Can you please show us how you did that by making a tutorial. Also is it possible to add the percentage number next to the battery icon? (see attached screenshot).
Click to expand...
Click to collapse
add smali
decompile my mod and use diff
in C:\ApkTools200RC3m\SystemUI\res\layout\system_icons.xml (this im hide stock batt icon)
android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip"
in C:\ApkTools200RC3m\SystemUI\res\layout\status_bar.xml (this clock in center)
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
in C:\ApkTools200RC3m\SystemUI\res\layout\signal_cluster_view.xml (this text batt in %)
Code:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
in values\dimens.xml
<dimen name="keyguard_carrier_text_margin">156.0dip</dimen> (its for center operator logo on lockscreen)
Is it possible for you to increase the size of the number and the percentage to fit to the icons next to it? And a "revert to stock" flashable zip would be great! :fingers-crossed::good:
Could someone post a flashable zip with the battery percentage next to the stock battery icon please?
Is it possible to get am/pm?
---------- Post added at 06:11 PM ---------- Previous post was at 06:00 PM ----------
Thanks for the wonderful mods btw
First of all, thanks for your mod! Good work
For me I've made a little change in the "SystemUI\res\layout\signal_cluster_view.xml "
Code:
<com.erryy.BatteryText [B][color=red]android:textSize="@dimen/battery_level_text_size"[/B][/color] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so the percent matches better to the rest in size.
Dirk64 said:
First of all, thanks for your mod! Good work
For me I've made a little change in the "SystemUI\res\layout\signal_cluster_view.xml "
Code:
<com.erryy.BatteryText [B][color=red]android:textSize="@dimen/battery_level_text_size"[/B][/color] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so the percent matches better to the rest in size.
Click to expand...
Click to collapse
Dirk, can you show us a screenshot and post your flashable zip? Would be great! Thank you very much in advance ::good:
This is a screenshot of the mod but I've made other changes to the framework-res.apk and the SystemUI to change dpi of the NavBar.
I can upload but it's at home on my computer so it will be tomorrow if you want and if it's okay for this is not my thread and I don't want to open a new one.
Dirk64 said:
This is a screenshot of the mod but I've made other changes to the framework-res.apk and the SystemUI to change dpi of the NavBar.
I can upload but it's at home on my computer so it will be tomorrow if you want and if it's okay for this is not my thread and I don't want to open a new one.
Click to expand...
Click to collapse
That looks real nice, great job. Can you please also make a zip to flash back to stock. thanks, man :good:
I think, it's garynynch's thread and I'm pretty sure, he can do this also. It's only a small change in one xml and I don't want to post things based on his work as mine here.
hi Can you please do a flashable zip for Center clock, battery icon and %
Try this and let me know how it turns out. Unsure about the lock screen.
Change SystemUI\res\layout\system_icons.xml on line 6 from
PHP:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
to
PHP:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
Change SystemUI\res\layout\signal_cluster_view.xm on line 15 from
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
to
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Here is another one without the center clock & carrier name
I flashed your mod and it does work. How can I have battery percent to right the battery icon? Thank you.
@ garynynch, I've got the second percent charging notification in the lockscreen disabled by changing this line in the keyguard_status_bar.xml:
Code:
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" [B][color=red]android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip"[/color][/B] android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
hope, it helps
What line would I need to edit in order to add am/pm to the time? The numbers just look to plain on their own (I use 12hr time)
Also, how difficult is it to add a circle-percent battery mod? We can take the images from CM's circle battery mod with percent. I'm guessing the framework and/or systemUI will need much tweaking (or is it completely different on Lollipop?)
tonysansone said:
I flashed your mod and it does work. How can I have battery percent to right the battery icon? Thank you.
Click to expand...
Click to collapse
These are the tools I used
tool to compare xml & smali files
to view and edit xml & smali files
to decompile and recompile apks
to sign zip files
Good luck
Thanks mate. But I needed to know the code and the xml file that I must modify to move to right of the battery icon the percent text.
Sent from my Nexus 4 using XDA Free mobile app