Hello!
I have a problem with this. I tried some modyficationc for example from x10 and nothing. When i replace SystemUI.apk and reboot i can't see status bar.
Can you help me? Any ideas to solve this problem?
Wrong thread
And flash a notification mod for your phone firmware .62 .42 from themes and apps
Sent from my MT15i using xda premium
Sorry.
I saw this topic but this mod is for CM7. I need mod for stock rom.
Michal1994 said:
Sorry.
I saw this topic but this mod is for CM7. I need mod for stock rom.
Click to expand...
Click to collapse
Can't mod stock rom with centre clock on status bar
Sent from my LT15/18i-Dimiui using xda premium
yes you can,cause its only playing with statusbar.xml,im still trying to modify it,but still no luck
Sorry chiefy, had to prove you wrong buddy, no offence meant!
Sent from my MT15i using xda premium
if some of you have successful apply it can you share your systemui.apk,im really give up on this mod,i dont know whats wrong,i follow all the instructions but still cant get it works on cm7
from the ARC
I will PM you it later, little busy atm
Sent from my MT15i using xda premium
can you please make one with larger clock? something thats almost the same size as the icons?
Hmmm I doubt it, it would involve changing tge whole status bar...
Sent from my MT15i using xda premium
waynekirby said:
Hmmm I doubt it, it would involve changing tge whole status bar...
Click to expand...
Click to collapse
absolutely no,just a simple edit it xml will do,but you should know how to decompile and rebuild without error
from the ARC
rashid.fairus said:
absolutely no,just a simple edit it xml will do
from the ARC
Click to expand...
Click to collapse
We have this in our roms thanks we meaning wayne know how this is done its easy and no it would look crap with a bigger clock so wayne is right it would not work and as for our status bar you can't just use it in any rom it has dependants
" ,but you should know how to decompile and rebuild without error" lol
Sent from my MT15i using Tapatalk
changing the size is easy guys just add a text size to the xml.
if that dont work then it is set in the smali and that is easy to override aswell.
also for ****z n giggle i did a quick search
fount this
http://forum.xda-developers.com/showthread.php?t=1227869
this has what you have to do to center the clock (in the x10 section)
also (as per team rom) if you are using a custom front i found that you need to change the size of the clock ( so i made it variable ) for an idea of what we you can welcome to check out our files
@kormatoes every one likes different sizes, i like a tiny weeny clock, my GF likes to to take up 90% of her screen (shes a bit blind) and personal preference is everything
to change the size of it in xml this is whaqt to change (stole the snipit of code from another thread but it does the trick)
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center" android:paddingLeft="132.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Add this to it
Code:
android:textSize="[B][COLOR="Red"]18dip[/COLOR][/B]"
change the red part to suit your needs
so in the end it now looks like this
Code:
<com.android.systemui.statusbar.Clock [B]android:textSize="[B][COLOR="Red"]18dip[/COLOR][/B]"[/B] android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center" android:paddingLeft="132.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Basically you have over ridden the style size from the framework so there will be no funny business s any where else
**EDIT** - also bare in mind this size stuff WILL NOT work on the TEAM roms as ours is set from our tweaks menu.
Pvy.
pvyParts said:
changing the size is easy guys just add a text size to the xml.
if that dont work then it is set in the smali and that is easy to override aswell.
also for ****z n giggle i did a quick search
fount this
http://forum.xda-developers.com/showthread.php?t=1227869
this has what you have to do to center the clock (in the x10 section)
also (as per team rom) if you are using a custom front i found that you need to change the size of the clock ( so i made it variable ) for an idea of what we you can welcome to check out our files
@kormatoes every one likes different sizes, i like a tiny weeny clock, my GF likes to to take up 90% of her screen (shes a bit blind) and personal preference is everything
to change the size of it in xml this is whaqt to change (stole the snipit of code from another thread but it does the trick)
Code:
Add this to it
Code:
android:textSize="[B][COLOR="Red"]18dip[/COLOR][/B]"
change the red part to suit your needs
so in the end it now looks like this
Code:
Basically you have over ridden the style size from the framework so there will be no funny business s any where else
**EDIT** - also bare in mind this size stuff WILL NOT work on the TEAM roms as ours is set from our tweaks menu.
Pvy.
Click to expand...
Click to collapse
Your crule I don't condone picking on you partner in any way or form lol
( I'm adding whether into my ics )
But for center clock with out decompile / reconpile
Find a center clock for gingerbread get se tweaked
Ics one is floating round
Open
Take
Get statusbarxml
And
(status bar expanded XML) and replace them in your systemui Res layouts
(Quick way))))))
Back up ya stuff first
Sent from my MT15i using Tapatalk
Related
I followed the guide in the themes thread to make the status bar transparent. I decompiled classes.dex, made the smali edit, and recompiled with no problem but it doesn't matter what color I change the status bar_background.9 to, it is still solid black. Is there an XML that needs to be edited as well?? I'm running calk's 2.6 with overstew's ics 1.9.4. Thanks!
Sent from my SPH-D710 using xda premium
You have to use a launcher like zeam launcher which natively supports it or with adw, launcherpro, go launcher, and etc you can use multipicture live wallpaper. With ADW EX you can also disable wallpaper hack within ADW settings to also allow for the transparent statusbar.
Sent from my E4GT
eao1991 said:
You have to use a launcher like zeam launcher which natively supports it or with adw, launcherpro, go launcher, and etc you can use multipicture live wallpaper. With ADW EX you can also disable wallpaper hack within ADW settings to also allow for the transparent statusbar.
Sent from my E4GT
Click to expand...
Click to collapse
After I did this hack, I checked it with Go launcher with multi pic and adw with no luck. The weird thing is I then pushed the systemUI from the miui transparent status bar thread in the themes forum and much to my surprise, not only did it work with no FC's, I had a transparent status bar on go launcher with out multi pic. I'm thinking about just taking that apk and throwing all of my themed pngs in there and running that. I'm just frustrated I can't get it to work with my current systemUI.apk after editing it. That's why I wondered if there is something else within this apk (overstew's ics 1.9.4) that needs to be tweaked...
Sent from my SPH-D710 using xda premium
Can any of our talented themers please lend a hand here???
Something other than the .9 and statusbarservice.smali need to be edited for a transparent status bar? (Or anything other than pure black...) Thanks!
Sent from my SPH-D710 using xda premium
Not everybody at once now...
I figured it out. There IS an xml that needs to be edited in addition to the smali edit and swapping out the pngs. Thanks everyone!!
EDIT: And apparently you DO NOT have to use an alternative launcher. I'm using TW at the moment looking at my dark grey status bar with ICS blue trim...
VegasEvo4G said:
Not everybody at once now...
I figured it out. There IS an xml that needs to be edited in addition to the smali edit and swapping out the pngs. Thanks everyone!!
EDIT: And apparently you DO NOT have to use an alternative launcher. I'm using TW at the moment looking at my dark grey status bar with ICS blue trim...
Click to expand...
Click to collapse
Please provide me with the name of the xml file and what you edited. Thanks!
ROM Toolbox Pro is great for making subtle alterations to your Status Bar. It does indeed have a choice to make it transparent. You can find that setting under the "Icon" editor.
Sent from one impressive piece of technology.
And why don't he said the xml which must be edited ??? Anyone figure it out ??
just got back from a vacation. i'll update the tut in the next couple days with some more info.
the .xml edit to call a different status bar background is not needed but you can use it to call a non .9 png if making your own gives you trouble.
ill look at my notes this evening and point out the calls.
---------- Post added at 11:38 AM ---------- Previous post was at 11:25 AM ----------
just a quick check of my notes....
to call your own .png
(shouldn't be necessary)
try checking..
/res/layout/status_bar.xml
search for: com.android.systemui.statusbar.DateView
should look like this:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center|center" android:id="@id/date" android:background="@drawable/YOUR_IMAGE_NAME_HERE" androidaddingLeft="6.0px" androidaddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
replace the your_image_name_here with the name of the png you want to call
think it's statusbar_background by default.
can use a .9 or regular png
Reignzone said:
ROM Toolbox Pro is great for making subtle alterations to your Status Bar. It does indeed have a choice to make it transparent. You can find that setting under the "Icon" editor.
Sent from one impressive piece of technology.
Click to expand...
Click to collapse
Still don't see how this is possible to change the transparency in Rom Toolbox Pro.
Transparent Status Bar
shepscrook said:
Still don't see how this is possible to change the transparency in Rom Toolbox Pro.
Click to expand...
Click to collapse
On Rom Toolbox Pro, go to Interface, then find the button for Status Bar Icons. Tap on that, then tap on Status Bar Color. From there, you can pick the color, then install it. Hope this helped.
Hi guys
I'am wondering how to make transparent pulldown background on 4.0.4 Samsung ics roms for our GS3 ?
I managed to do it properly on GS2 but tried many things from GS2 and it didn't worked, it's all black.
I'am pretty sure that it's a line code color to modify somewhere in SystemUI.apk, but can't find it, unfortunately.
Saw some themes in this section which was included it, so this feature is possible :laugh:
Any advice or small tutorial is welcomed !
If I find the solution before, I will post it here on this post.
Many thanks! :good:
Try this
http://forum.xda-developers.com/showthread.php?t=1766566
Sent from my GT-S5360 using xda premium
vicky4slayer said:
Try this
http://forum.xda-developers.com/showthread.php?t=1766566
Click to expand...
Click to collapse
Thanks for your answer, but the guys answer on your thread don't tell where is exactly the value of the background he modified
Nobody has an idea ?
AndroidGX said:
Thanks for your answer, but the guys answer on your thread don't tell where is exactly the value of the background he modified
Nobody has an idea ?
Click to expand...
Click to collapse
Just search "android:background" in that xml file.
(see below)
jnr21 said:
Just search "android:background" in that xml file.
Click to expand...
Click to collapse
Thanks for your message.
I replaced 8 matches of "android:background" by #00000000 code color as said in the thread, in "tw_status_bar_expanded.xml" file, and it's still not working, everything is still black.
By the way, why choosing #00000000 color code instead of #00FFFFFF ? this last one is the color code of full transparency.
Just made a new test.
In "res/values/drawable.xml" I changed all "background" and "_bg" values to #00FFFFFF which is the color code of 100% transparent.
Made 2 test flashable zips :
test1 : stock png's = still no transparency
test2 : with my modified transparent png's = still no transparency
I remarked something interesting.
When device comes to homescreen, before it finish loading some widgets, when I try to pulldown notification bar, this one comes transparent like I want at the first centimeters I try to open it, and before coming to the bottom, came black again, and stay black then.
Maybe the source of the problem is somewhere else. I'am using Go Launcher EX, and remember one tips : using high quality drawings can help to get transparency in some cases : not mine. Tried to activate the transparency notification bar : not working.
Any other help would be appreciated.
AndroidGX said:
Just made a new test.
In "res/values/drawable.xml" I changed all "background" and "_bg" values to #00FFFFFF which is the color code of 100% transparent.
Made 2 test flashable zips :
test1 : stock png's = still no transparency
test2 : with my modified transparent png's = still no transparency
I remarked something interesting.
When device comes to homescreen, before it finish loading some widgets, when I try to pulldown notification bar, this one comes transparent like I want at the first centimeters I try to open it, and before coming to the bottom, came black again, and stay black then.
Maybe the source of the problem is somewhere else. I'am using Go Launcher EX, and remember one tips : using high quality drawings can help to get transparency in some cases : not mine. Tried to activate the transparency notification bar : not working.
Any other help would be appreciated.
Click to expand...
Click to collapse
You have to look in drawable/layout/tw_status_bar.xml in the 2line look for android:background
and tw_status_bar_expandet.xml in the same line
Sent from my GT-I9300 using xda premium
pepi1234 said:
You have to look in drawable/layout/tw_status_bar.xml in the 2line look for android:background
and tw_status_bar_expandet.xml in the same line
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Solved my problem this afternoon, but yes you were right, it was in "tw_status_bar.xml" that I found my solution
Thanks for watching :good:
Closed per the OP's request as solved
How to add a center clock for the CM10 official?
leonma25 said:
How to add a center clock for the CM10 official?
Click to expand...
Click to collapse
Check ROM Control in the settings menu.
Sent from my Galaxy Nexus using xda premium
Decompile framework-res.apk.
Under /res/layout/
keyguard_screen_tab_unlock.xml
(and these two for the secure locks)
keyguard_screen_unlock_portrait.xml
keyguard_screen_password_portrait.xml
need to be edited...
Remove all lines:
android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"
wherever you see it above the
<LinearLayout line that has reference to "button"
Change all
android:layout_gravity="right"
that are above that line to android:layout_gravity="center"
recompile.
Edit:
I think, actually, I remember there being values for the lockscreen wallpaper before the button on CM10...
Don't remove/edit those.
Edit 2:
You know what...
Shoot me a PM.
http://www.teamviewer.com/en/download/windows.aspx
Download this and give me your Device ID and Password.
I'll walk you through it so you can do it yourself.
I'd just do it for you...but since CM releases nightlies I'd assume you want to update your rom and would then need the mod updated.
This way you can do it yourself.
Ok guys,
Im going to post this in every Note 2 variant forum until I can figure this out.. I mmanaged to get a working transparent status/systembar on my note 2 on tablet UI.. the only problem being that my phone totally locked up and being the DUMB a$$ that I am I did create a backup.. reflashed a rom and thought I could recreate it.. I have located what I think the files name is and it is tw_status_bar_background.9.png. Now when I try to recreate it the status bar becomes all distored when pressing something.. I will show you pictures below of it working and it NOT working.. Any help or guidance would be much appreciated.. I am not asking anyone to give me a step by step but more of just yes thats the right file or no thats not it..
PS the black line you see at the bottom of first pic is bc the wallpaper is not scaled properly, which can be fixed..
Honestly the easiest way to do this is to simply have a rooted phone and put ParanoidAndroid rom on it or one that has hybrid settings. It has an option to change the status bar color and you can make it transparent
Sent from my SPH-l900 using Tapatalk 4 Beta
ajgates92 said:
Honestly the easiest way to do this is to simply have a rooted phone and put ParanoidAndroid rom on it or one that has hybrid settings. It has an option to change the status bar color and you can make it transparent
Sent from my SPH-l900 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thanks but as far as I know you can not make tablet ui statusbar transparent on PA+3..
Sent from my SCH-I605 using xda app-developers app
lacoursiere18 said:
Ok guys,
Im going to post this in every Note 2 variant forum until I can figure this out.. I mmanaged to get a working transparent status/systembar on my note 2 on tablet UI.. the only problem being that my phone totally locked up and being the DUMB a$$ that I am I did create a backup.. reflashed a rom and thought I could recreate it.. I have located what I think the files name is and it is tw_status_bar_background.9.png. Now when I try to recreate it the status bar becomes all distored when pressing something.. I will show you pictures below of it working and it NOT working.. Any help or guidance would be much appreciated.. I am not asking anyone to give me a step by step but more of just yes thats the right file or no thats not it..
PS the black line you see at the bottom of first pic is bc the wallpaper is not scaled properly, which can be fixed..
Click to expand...
Click to collapse
Are you currently on a touchwiz rom?
Most devs use a hex value for the status bar, very few have a png.
If its a hex, change value to #00000000 where the first 2 digits represent the transparency value an rest is color.
If it is using a png image as you say and its a '9 png file, then it has other things that has to happen to it before you can use it.
Its gotta be patched by draw9patch. Then recompiled. After that, you can do what your looking to do.
check out our rom website, http://updater.team-nocturnal.com/labrats/
cbucz24 said:
Are you currently on a touchwiz rom?
Most devs use a hex value for the status bar, very few have a png.
If its a hex, change value to #00000000 where the first 2 digits represent the transparency value an rest is color.
If it is using a png image as you say and its a '9 png file, then it has other things that has to happen to it before you can use it.
Its gotta be patched by draw9patch. Then recompiled. After that, you can do what your looking to do.
check out our rom website, http://updater.team-nocturnal.com/labrats/
Click to expand...
Click to collapse
The only thing is .9png that I most certainly think it is..is 4pxls by 54pxls so trying to edit it then patch is a B$%#^H..if you catch my drift.. and I havent been successful at doing it yet.. Thats another reason why I think it becomes distored like that..
lacoursiere18 said:
The only thing is .9png that I most certainly think it is..is 4pxls by 54pxls so trying to edit it then patch is a B$%#^H..if you catch my drift.. and I havent been successful at doing it yet.. Thats another reason why I think it becomes distored like that..
Click to expand...
Click to collapse
Lmao...you are in every thread. ..jesus
'9 files can stretch to any size, from any size. I've worked on ones 4px before, its a pain but its possible. That leaves a 2px area to work. That's how android works. So if its too small, make it bigger. Patch, recompile
check out our rom website, http://updater.team-nocturnal.com/labrats/
Credit goes to @naheel azawy here - https://forum.xda-developers.com/crossdevice-dev/sony/guide-add-xperia-battery-icon-to-cm-t3145852 - I just adjusted it. Tested on Xc with stock 7.1.1...
- Decompile SystemUI
- Download zip in above link and copy files to appropriate directories
- Open /res/layout/system_icons.xml
- Find
Code:
<com.sonymobile.systemui.BatteryLevelView
And change the rest of that line to
Code:
android:background="@drawable/somc_sys_battery_percent_am" android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:paddingLeft="6.0dip" android:paddingTop="6.0dip" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding" />
- Open /res/values/dimens.xml
- Find 'status_bar_battery_icon_height'
'status_bar_battery_icon_width'
'battery_height'
'battery_width'
and change them all to '0.0dip'
- Find 'battery_level_text_size'
and change it to '9.0dip'
Recompile and sign and push..
Notes:
- There will be no battery icon in quick settings, (battery tile will be there with percentage, but no icon, [alternate values in next post solve this, if interested]).
- If you use GravityBox, the text alignment will be off. I modded my GravityBox apk to fix it. Apk is attached.
- I could make a flashable zip, but my SystemUI is modded dark, and wouldn't look right on others. If you upload a stock SystemUI apk, maybe I'll have a chance to do it.
Variation :
'status_bar_battery_icon_height' - 14.0dip
'status_bar_battery_icon_width' - 2.0dip
'battery_height' - 14.0dip
'battery_width' - 2.0 dip
This way you get an icon in quick settings, and there's a functioning meter next to battery icon, as well as a charging indicator.
Variation 2:
Change 'battery_level_text_size' in dimens.xml back to default, (I think 12.0dip) and change 'paddingTop' in system_icons.xml, (the part that is modded in op), from 6.0dip to 4.0dip. This will keep text bigger and easier to see,but also centered. Then change the next line to
Code:
<com.android.systemui.BatteryMeterView [COLOR=red]android:background="#ffd50000"[/COLOR] android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
, adding a background color.
This will add a colored background to the part of the battery that's drained, (Screenshot 3). If you want a different color, just change 'ffd50000' to whatever...
Variation 3:
I made battery icon width 4dip, instead of 2dip, because it looks sloppy when charging, since the charging bolt breaks up the animation. Also used a png image for background, (android:background="@drawable/[filename]", instead of android:background="#[color value]") - screenshots 4 and 5.
It is amazing . I will upload my systemUI. So please help me to do it. Thinks a lot.
phoenix.xie said:
It is amazing . I will upload my systemUI. So please help me to do it. Thinks a lot.
Click to expand...
Click to collapse
Try this and let me know, (flash in recovery - make a backup first)... Your Systemui is deodexed. Is it a custom rom, or did you deodex? Also, some of the stock values were different than mine. Which phone is it?
@levone1 buddy does tha battery tint so on white background its black n on normal background its white.... Or can yhu tell me how to tint status bar icons?
Thanks.... Might give dis mod a try!
Also there is a straight thick line besides tha battery icon to tha right, whats dat?
[/IMG]
levone1 said:
Try this and let me know, (flash in recovery - make a backup first)... Your Systemui is deodexed. Is it a custom rom, or did you deodex? Also, some of the stock values were different than mine. Which phone is it?
Click to expand...
Click to collapse
My phone is xperia XP (F8132).. I use the custom rom base on stock 41.2.A.7.76. The rom is from http://bbs.gfan.com/android-9203561-1-1.html
After I flashed the ZIP. It works great. But something is not perfect. Look my Screenshot.. I think the bettary icon emmm. I don't know how to explain it.
The new Z icon is on the old icon left. The bottom of the new icon is a bit higher than the old Icon.
It doesnt work here buddy... Battery icon is differs!
Stock Nougat based rom 7.1.1
Xperia Z5
phoenix.xie said:
[/IMG]
My phone is xperia XP (F8132).. I use the custom rom base on stock 41.2.A.7.76. The rom is from http://bbs.gfan.com/android-9203561-1-1.html
After I flashed the ZIP. It works great. But something is not perfect. Look my Screenshot.. I think the bettary icon emmm. I don't know how to explain it.
The new Z icon is on the old icon left. The bottom of the new icon is a bit higher than the old Icon.
View attachment 4395477
Click to expand...
Click to collapse
I see What you mean. Easy to adjust. I'll take a look at it. Your dimens.xml had a few '.5's in there that mine didn't have...
whalesplaho said:
@levone1 buddy does tha battery tint so on white background its black n on normal background its white.... Or can yhu tell me how to tint status bar icons?
Thanks.... Might give dis mod a try!
Also there is a straight thick line besides tha battery icon to tha right, whats dat?
Click to expand...
Click to collapse
The stock Sony files do that, but the one I added is just a png, so the outline will stay white, but the middle is a grey shadow color, so you still see the shape. (Screenshot). There's probably a way to apply a tint change, but haven't tried. Maybe I'll take a look, or someone else knows better...
The line on the side is 2px of the stock battery meter showing. Read post 2 for explanation. You can follow post 1 if you don't want that there. It's just a way to see the battery meter, if you want, and make there be a qs icon.
whalesplaho said:
It doesnt work here buddy... Battery icon is differs!
Stock Nougat based rom 7.1.1
Xperia Z5
Click to expand...
Click to collapse
Do you have a different Xposed module controlling icons? I made a mod for GravityBox, but haven't used any others. Modules use their own files...
phoenix.xie said:
[/IMG]
My phone is xperia XP (F8132).. I use the custom rom base on stock 41.2.A.7.76. The rom is from http://bbs.gfan.com/android-9203561-1-1.html
After I flashed the ZIP. It works great. But something is not perfect. Look my Screenshot.. I think the bettary icon emmm. I don't know how to explain it.
The new Z icon is on the old icon left. The bottom of the new icon is a bit higher than the old Icon.
View attachment 4395477
Click to expand...
Click to collapse
Try this...
levone1 said:
Do you have a different Xposed module controlling icons? I made a mod for GravityBox, but haven't used any others. Modules use their own files...
Click to expand...
Click to collapse
I think its a prob from my side... Will double check again.!
---------- Post added at 02:26 PM ---------- Previous post was at 02:05 PM ----------
levone1 said:
The stock Sony files do that, but the one I added is just a png, so the outline will stay white, but the middle is a grey shadow color, so you still see the shape. (Screenshot). There's probably a way to apply a tint change, but haven't tried. Maybe I'll take a look, or someone else knows better...
The line on the side is 2px of the stock battery meter showing. Read post 2 for explanation. You can follow post 1 if you don't want that there. It's just a way to see the battery meter, if you want, and make there be a qs icon.
Click to expand...
Click to collapse
Im okay with tha post 2 so i can have qs tile and also tha battery too is okay....
But is it possible to make tha battery percent inside tha battery icon shifted to tha center and also shift tha battery icon up a bit so as to align in tha middle.
Thanks....
whalesplaho said:
I think its a prob from my side... Will double check again.!
---------- Post added at 02:26 PM ---------- Previous post was at 02:05 PM ----------
Im okay with tha post 2 so i can have qs tile and also tha battery too is okay....
But is it possible to make tha battery percent inside tha battery icon shifted to tha center and also shift tha battery icon up a bit so as to align in tha middle.
Thanks....
Click to expand...
Click to collapse
Padding varies from device to device. Show me screen shot, and I can give you tips..
..
whalesplaho said:
@levone1 buddy does tha battery tint so on white background its black n on normal background its white.... Or can yhu tell me how to tint status bar icons?
Click to expand...
Click to collapse
Usually you can just add 'android:tint="...' to xml line, but since status bar is set to change dynamically, I don't think it would work, (I did a few tests and they crashed SystemUI; might be bad code [I'm not an expert] but I have a feeling it clashes with stock status bar code). Stock programming is too advanced for me. I know nothing about Java and almost nothing about smali.
Theoretically, you should be able to change the stock battery meter drawable, but I can't find it, plus it's probably a vector or something, not a png, so again, over my head.
One workaround would be to color the png to a color that's pretty likely to show on most backgrounds.
Maybe others have input...?
levone1 said:
Padding varies from device to device. Show me screen shot, and I can give you tips..
Click to expand...
Click to collapse
My bad. Thought i uploaded screenshot.
Thanks.
levone1 said:
Usually you can just add 'android:tint="...' to xml line, but since status bar is set to change dynamically, I don't think it would work, (I did a few tests and they crashed SystemUI; might be bad code [I'm not an expert] but I have a feeling it clashes with stock status bar code). Stock programming is too advanced for me. I know nothing about Java and almost nothing about smali.
Theoretically, you should be able to change the stock battery meter drawable, but I can't find it, plus it's probably a vector or something, not a png, so again, over my head.
One workaround would be to color the png to a color that's pretty likely to show on most backgrounds.
Maybe others have input...?
Click to expand...
Click to collapse
Yeap buddy i understand... Maybe others can help too!
Thank you.
whalesplaho said:
My bad. Thought i uploaded screenshot.
Thanks.
Click to expand...
Click to collapse
Are you using GravityBox? I attached a modded version to op. Did you install that one?
If you're not using GravityBox, go back to 'system_icons.xml' and change
Code:
<com.sonymobile.systemui.BatteryLevelView android:background="@drawable/somc_sys_battery_percent_am" android:textSize="@dimen/battery_level_text_size" android:textColor="#ff4ec3f7" android:layout_gravity="center" android:paddingLeft="6.0dip" android:paddingTop="4.0dip" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding" />
to
Code:
<com.sonymobile.systemui.BatteryLevelView android:background="@drawable/somc_sys_battery_percent_am" android:textSize="@dimen/battery_level_text_size" android:textColor="#ff4ec3f7" android:layout_gravity="center" [COLOR=red]android:paddingLeft="8.0dip"[/COLOR] [COLOR=red]android:paddingTop="3.0dip"[/COLOR] android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding" />
(See changes in red)
If you already have modded GravityBox, let me know. Easy to adjust...
whalesplaho said:
My bad. Thought i uploaded screenshot.
Thanks.
Click to expand...
Click to collapse
Also, if you adjust your 'status_bar_battery_icon_height' and 'battery_height' values in dimens.xml, (maybe 1 or 2 smaller), the battery meter on the side won't stick out so much off the top and bottom.
levone1 said:
Are you using GravityBox? I attached a modded version to op. Did you install that one?
If you're not using GravityBox, go back to 'system_icons.xml' and change
Code:
<com.sonymobile.systemui.BatteryLevelView android:background="@drawable/somc_sys_battery_percent_am" android:textSize="@dimen/battery_level_text_size" android:textColor="#ff4ec3f7" android:layout_gravity="center" android:paddingLeft="6.0dip" android:paddingTop="4.0dip" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding" />
to
Code:
<com.sonymobile.systemui.BatteryLevelView android:background="@drawable/somc_sys_battery_percent_am" android:textSize="@dimen/battery_level_text_size" android:textColor="#ff4ec3f7" android:layout_gravity="center" [COLOR=red]android:paddingLeft="8.0dip"[/COLOR] [COLOR=red]android:paddingTop="3.0dip"[/COLOR] android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding" />
(See changes in red)
If you already have modded GravityBox, let me know. Easy to adjust...
Click to expand...
Click to collapse
I have adjust tha paddingTop dip and paddingLeft dip too.... Recompiling!!!
I dnt use GravityBox brov.
Thanks.
---------- Post added at 05:57 PM ---------- Previous post was at 05:55 PM ----------
levone1 said:
Also, if you adjust your 'status_bar_battery_icon_height' and 'battery_height' values in dimens.xml, (maybe 1 or 2 smaller), the battery meter on the side won't stick out so much off the top and bottom.
Click to expand...
Click to collapse
I adjusted to 14.0dip and 2.0dip as yhu posted brov... Do i need change too?