[REQUEST] Dual clock on status bar - Magisk

Hi there.
I was wondering if it is possible to create a module that adds a second clock to the status bar. I live abroad, and I used to use xposed for that (there's a module called XDualStatusClock which worked great) so I could have my home country and tmy residence country's time on the status bar. I have since upgraded to Lineage OS 14.1 (Nougat) and unfortunately xposed is not supported.
I haven't found any app that does this and I wanted to know if it would be possible to have something like that in Magisk. If anybody knows or knows if there is another way to do it, please, let me know.
Thabk you in advance.

Xposed and Magisk do quite different things (code injection vs file injection).
The short answer to your question is: Yes, it's possible but not as easy as you'd like.
The long answer is: If you wan't this with Magisk, you'll need use a Magisk module to mount and replace system files with modded files to get what you're after. Xposed can do this on the fly, Magisk does it by replacing system files with previously prepared files at boot.

pancomido said:
Hi there.
I was wondering if it is possible to create a module that adds a second clock to the status bar. I live abroad, and I used to use xposed for that (there's a module called XDualStatusClock which worked great) so I could have my home country and tmy residence country's time on the status bar. I have since upgraded to Lineage OS 14.1 (Nougat) and unfortunately xposed is not supported.
I haven't found any app that does this and I wanted to know if it would be possible to have something like that in Magisk. If anybody knows or knows if there is another way to do it, please, let me know.
Thabk you in advance.
Click to expand...
Click to collapse
All you need to do is decompile your system.apk and add a textclock to your status_bar.xml and set the time zone. I'm on Central time but I added a los Angeles time zone on an additional text clock. Flashed it systemlessly using djb77's evilthemer magisk module maker flashing just the status_bar.xml
{
"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"
}

Tulsadiver said:
All you need to do is decompile your system.apk and add a textclock to your status_bar.xml and set the time zone. I'm on Central time but I added a los Angeles time zone on an additional text clock. Flashed it systemlessly using djb77's evilthemer magisk module maker flashing just the status_bar.xml
Click to expand...
Click to collapse
Can you please specify, what the line was that you added in statusbar?

winesh said:
Can you please specify, what the line was that you added in statusbar?
Click to expand...
Click to collapse
To put it in the center of statusbar put this code right under xmlns:systemui="http://schemas.android.com/APK/res/com.android.systemui">
<TextClock android:textAppearance.StatusBar.Clock" android:gravity="center" android:I'd="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:single line="true" android:format12Hour="EEE h:mm a" android:timeZone="America/Los_Angeles" />
You can format it how you like and of course substitute the time zone you want. Also insert 24Hour format to the same code if you like.

Tulsadiver said:
To put it in the center of statusbar put this code right under xmlns:systemui="http://schemas.android.com/APK/res/com.android.systemui">
<TextClock android:textAppearance.StatusBar.Clock" android:gravity="center" android:I'd="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:single line="true" android:format12Hour="EEE h:mm a" android:timeZone="America/Los_Angeles" />
You can format it how you like and of course substitute the time zone you want. Also insert 24Hour format to the same code if you like.
Click to expand...
Click to collapse
Thanks bro, will try it as soon as possible.

Related

[DEV-brainstorm] Finding LG's header icons background

Okay guys, I need your help on this one.
As you know, I've already made some black and gingerbread themes, but they all have one problem: the goddamn quick settings icons on the LG header stays white.
This is what I'm talking about:
{
"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"
}
Now, I've found the things that needed to be changed for the icons themselves.
However, I can't find the background and I'm also short on time; thus asking you all for help.
Basically, the best I could do was:
But the image or xml entry must be there somewhere.
So the objective is, start changing whatever image you find until we get it black.
For this, I'll make available a metamorph script.
Instructions:
You'll need metamorph application and this zip.
Now,
1. Extract zip to some folder on your PC
2. Change images you want to test (use paint or something)
3. When you're done editing, add everything to a .zip (with no compression - store only) called LGT.zip
(must have the same structure as the one you downloaded before)
4. Plug your phone to PC and toggle usb connect
5. Drag the edited LGT.zip to the root of your sdcard and unplug
6. Run Metamorph (you need root+busybox)
7. Pick extract zip, go to the root of your sdcard and choose LGT.zip
(in case it asks, choose replace)
8. Pick apply theme and wait until it's done
9. Reboot
10. Check if background is different
If not, repeat the whole process and try to edit another image.
That's it.
If anyone finds the responsible file, please post here.
Thanks!
Not sure I understand you correctly. Are you asking to find the icons used as quick settings knobs?
Here they are (after examining the zip-file you provide):
"LGT\lge-res\res\drawable\bt_off_normal.png"
"LGT\lge-res\res\drawable\bt_on_normal.png"
"LGT\lge-res\res\drawable\gps_off_normal.png"
"LGT\lge-res\res\drawable\gps_on_normal.png"
"LGT\lge-res\res\drawable\network_alwaysask_normal.png"
"LGT\lge-res\res\drawable\network_disable_normal.png"
"LGT\lge-res\res\drawable\network_enable_normal.png"
"LGT\lge-res\res\drawable\sound_mute_normal.png"
"LGT\lge-res\res\drawable\sound_on_normal.png"
"LGT\lge-res\res\drawable\sound_vibration_normal.png"
"LGT\lge-res\res\drawable\wifi_off_normal.png"
"LGT\lge-res\res\drawable\wifi_on_normal.png"
I'm not including the orange _pressed_ icons, as they should not be colored in black.
I was not performing your tests, but these icons are the _only_ icons in your zip-file which can be used as quick settings knobs. Please, excuse me if I don't understand your initial request.
He needs background of those icons.
Icons were easy to spot but background picture can be a few.
Im trying now and see if i succed.
Yep, only the background
Here are two similar threads which may help (I hope!):
http://forum.xda-developers.com/showthread.php?t=899476
http://forum.xda-developers.com/showpost.php?p=10423791&postcount=12
Yup, that's it: lge_status_bar_expended.xml.
Thread can be closed, thanks everyone
I managed to replicate what you did with buttons.
I also numbered everything what could be grey/silver background or tab and then applied so i would know which is.
There is no such picture in that file.
So its either in xml (from what i saw none contains color information) or its in some other file.
Im using void so maybe voids theme overwrites it? But it worked for buttons so i dont know.
If there is any more picture files or if you can release void pictures so i could compare.
Something is weird... I put numbers on pictures and none showed up on any of voids theme... i didnt tried with little buttons tho.
I hope it helps anything even i didnt provide any info.
done
@Noejn. How can i have your same and white clock in the notification bar?
Android.Nis said:
@Noejn. How can i have your same and white clock in the notification bar?
Click to expand...
Click to collapse
You have to edit services.jar
There's a post about it around here somewhere in xda.
Can't you upload lge-res.apk so we can push it ? Or maybe a flashable one ?
P.S: Please check your PM. I've sent you one regarding white text on notification bar.
badeaioan said:
Can't you upload lge-res.apk so we can push it ? Or maybe a flashable one ?
P.S: Please check your PM. I've sent you one regarding white text on notification bar.
Click to expand...
Click to collapse
http://dl.dropbox.com/u/13427114/lge-res.apk

Help theming FlymeOS StatusBar

Hello,
I have a meizu MX HK M30 dual core with flymeOS 1.1.7 Which is based/created upon Android ICS 4.0.3.
I want to theme my status bar, but the SystemUI.apk is completetly different than other ICS Rom or CM9 Rom.
I have tried different thing for modding but all the time systemUI stop working, but compiling with no errors, I think there is some isssue with smali code.
So I need the help of a good themer for modding and explain to me how my systemUI for statusbar work.
I want a small transparent statusbar with center clock whithout date, wifi and carrier signal on the left.
I upload some screen shot of FlymeOS
{
"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"
}
As you can see in the Home there is a big statusbar and this is here that I want a small statusbar.
Make attention the notification of sms or other are in the second row of the big statusbar and need to be placed at the top.
Here is a Google Drive link with stock deodexed SystemUI.apk Framework-res.apk of FlymeOS 1.1.7 :
https://docs.google.com/folder/d/0B5e4iFwEmsizUjdhYlZ5UE1XN1E/edit
Thanks in advance.
The trick used by MrColdbird to always have the small statusbar is to pretend we're never on the Home Screen (if I understood correctly the smali mods).
Regarding the placement, I think the xml res mention several date objects
- com.android.systemui.statusbar.policy.HomeClock
com.android.systemui.statusbar.policy.DateView in layout/status_bar_large.xml & layout/home_lower_panel.xml
(2-row status)
- com.android.systemui.statusbar.policy.Clock in layout/status_bar_opr.xml
(?)
- com.android.systemui.statusbar.policy.Clock in layout/status_bar_small.xml
(1-row status?)
- com.android.systemui.statusbar.policy.DateView in layout/status_bar_expanded.xml
(dragged statusbar?)
Can you try & see if you can tweak these xml files?
Edit: does it belong better in forumdisplay.php?f=1905 ?
Thanks for reply
Do you come from MeizuMe?
So I have already tried to change some value in this XML files
If I undestand correctly the large home status bar work like that :
there is one file in res/layout/statusbar.xml this file call three other XML for the different look of the status bar :
- 1 res/layout/small_status_bar.xml which is the code for the look of the status bar when an app is open.
- 2 res/layout/opr_status_bar.xml which is the code for the lockscreen status bar.
- 3 res/layout/status_bar_large which is the code for the home status bar this file include a call of /res/layout/home_lower_panel.xml which is the second line of large home status bar.
So the thing that I want to know is can I remove the Home_lower_panel.xml whithout problem or I need to touch the smali code ?
If I need to touch the smali code I can't because I don't understand how smali works. I have already read some article on the google dev guide but I don't undestand.
Can you try some edit on the systemUI file try to compil and upload your file for testing I need an external coder and point of view because my processus for modding is wrong.
I put the recommended files for work on google drive : systemUI you have the framework-res.apk and systemUI.apk
try in your side give me the file for testing.
( ATTENTION : If you have your own meizuMX for testing be carrefull the files that I have upload come from FlymeOS 1.1.7 the latest update from meizu.
I have Just deodex the rom. So if you want to test in your own you need a Flyme 1.1.7 deodex rom, I can upload it if you need.)
Sometimes I have some aapt error when (for example) : I remove home_lower_panel.xml and I tried to recompile.
For a succefull compil I need to export the classes.dex and ressource.arcs inside my working SystemUI folder.
But after that I have SystemUI stop working when the phone start I use root explorer, I give the good permissions.
Do you think I make something wrong and do I need to make a flash zip and clear data ?
And I don't understand what you mean "Edit: does it belong better in forumdisplay.php?f=1905 ?" ?
Thanks for giving a little of your time for some FlymeOS user.
Hi,
No body with experiences in ICS, JB, CM theming wants to help ? please, take a look on the file which I upload.
Thanks.

[GUIDE] How to Fade Out the Softkey's | Navigation Bar without root

Hello!
I made a guide on how to hide the navigation bar without being root and I posted it in HTCMania, a page of my country. I have seen that you have no way to do any yet so here I put here now.
I am translating this through google translate so sorry for the mistakes.
Here is:
Hello everyone.
I was looking for information to hide the navigation bar in my new p7, when I found this
This is a tutorial to hide the navigation bar in the p6 ascend, and as needed root, or edit the build.prop file I decided to try my p7 and ... IT WORKS: banana :: banana :: banana :
I attach images able to test what works and what is a huawei ascend p7:
{
"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"
}
Required files: these (This is a backup in which only include settings . Taken from xda forum I mentioned above) system
Here are the steps to follow:
Unzip the downloaded file and we will get a folder called HuaweiBackup, which we pass to the root of the memory of your smartphone
We open the official Backup application of our p7.
We appear automatically backup called P6-U06:
Select it and on the next screen we select to restore the system configuration. We say it is incompatible with our phone, but we ignore and restore.
We say that we must reboot to see the changes. Reboot and done!!
The only disadvantage I see to this method is that the Ascend P6 there is a menu option to toggle this option. However, in our smartphone does not happen. Therefore, simply activate and deactivate tutorial should do the same but with a backup that is not configured.
I hope it will be helpful, and to clarify that even if proven to work in our pileup, the original Statute of the ascend p6 is not mine, as I said above.
Link to the Original tutorial: http://forum.xda-developers.com/showthread.php?t=2453926
Link to my original tutorial on HTCmania : http://www.htcmania.com/showthread.php?t=854477
Enjoy it!
EDIT: links were bad, sorry. They are already corrected and updated
Someone tried it??
links were bad, sorry. They are already corrected and updated
I m using the Activity launch to hide the Nav. Bar,it so easy.
ttkyy said:
I m using the Activity launch to hide the Nav. Bar,it so easy.
Click to expand...
Click to collapse
Hey,
can you tell me (us) please, how you can do it with `activity launch`
heleis said:
Hey,
can you tell me (us) please, how you can do it with `activity launch`
Click to expand...
Click to collapse
1.Download Activity launcher from Google Play
2.Open it n chose All activities(origin is recent activities)
3.Scroll down n look for Setting
4.from setting look for Navigation bar n on it.
5.U got it!
Only support Kitkat not JB,this method also can b used on Mediapad X1 etc.
ttkyy said:
1.Download Activity launcher from Google Play
2.Open it n chose All activities(origin is recent activities)
3.Scroll down n look for Setting
4.from setting look for Navigation bar n on it.
5.U got it!
Only support Kitkat not JB,this method also can b used on Mediapad X1 etc.
Click to expand...
Click to collapse
Thank you! It's perfect!
heleis said:
Thank you! It's perfect!
Click to expand...
Click to collapse
U r welcome.
Works fine, thx..

[MOD] [LMY47E]APM, Centre Clock, Battery Text - CleanROM v1.0.0 28/03/2015

{
"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 love the stock look of Android L. It is the reason I bout the Nexus 6. As with all versions of Android, there are extra features that could be added in. So with that I have done!
Disclaimer
These MODS have been designed to work with @scrosler - CleanROM only. These MODS change core files, so only use with LMY47E based DEODED rom's. If you try to use with other roms you will get FC's - You have been warned.
Take a backup first before flashing any MODS
The MODS
Centred clock
Battery Text
Both Battery Text and Centred Clock
Updated Advanced Reboot Menu Icons - Note I did not write the APM, just updated the icons
Look in post #2 for the downloads. All credit goes to scrosler for his amazing rom.
Downloads
This section I will provide the downloads for the above mods. I will also include the stock files that come with Clean ROM, so you can change back easily at any time.
Look at the bottom of the post to see the different downloads.
Please provide feedback and let me know what you think!
Change Log
V1.0.0
Initial files
​
Mods are up Enjoy! Remember only use with CleanROM v2.1. These will cuase FC's on other roms!
reserved 3
Nicely done! Thanks for sharing!
Yo! Yo! Yo!
Nice to see some mods showing up!!!! And yep good ol' gunthermic is in the house!!! LOL
good job Stephen, any chance we can see battery % with icon in status bar? ill take a look over the code tonight when I get home
Yes that is very easy. Edit the system_icons.xml file and look for android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" remove android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" and change width and height to back to normal. I cant remember what the default values are..
I had been thinking of making one with the icon as well. But had enough for today! @Danvdh if you could have a look at the clock for me. It is not 100% right. I think it needs to be a bit bigger!
Stephen said:
Yes that is very easy. Edit the system_icons.xml file and look for android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" remove android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" and change width and height to back to normal. I cant remember what the default values are..
I had been thinking of making one with the icon as well. But had enough for today! @Danvdh if you could have a look at the clock for me. It is not 100% right. I think it needs to be a bit bigger!
Click to expand...
Click to collapse
I'll give it a look over tonight
Can we get one for the led light while phone is charging?
Just got up and running on CleanROM this morning ... Flashed these mods a bit ago and so far so good! Thanks @Stephen
Thanks for the mod, anyway to get the battery to the left? Thanks
I can certainly have a look. I think that would mess up notifications though,
Do these MODs work on the latest CleanROM 2.20 which is based on 47M? Or we should wait for an update? TIA
YankInDaSouth said:
Just got up and running on CleanROM this morning ... Flashed these mods a bit ago and so far so good! Thanks @Stephen
Click to expand...
Click to collapse
Lancez said:
Do these MODs work on the latest CleanROM 2.20 which is based on 47M? Or we should wait for an update? TIA
Click to expand...
Click to collapse
Reading the YankInDaSouth post seems compatible......I think (and hope).....
crisgen said:
Reading the YankInDaSouth post seems compatible......I think (and hope).....
Click to expand...
Click to collapse
No, that was yesterday ... Have not tested with latest build
Yes they should be fine with the latest build. I will have some time over the weekend, so I plan to re-base the mods on CleanROM v2.2. Just take a backup of your rom first, before installing them.
I also think the battery mod is better with the charging icon, so I will include it in the next release.
I also now have learnt how to disable the brightness slider, so may include that as an option.
Does anybody know how to disable the "Connected as media device" notification? I am certain it is in SystemUI, but I cant find any references to it!
Will there be an update for LMY47H???
Sent from my SinLess NeXus 6 using TapaTalk!!
LVY47H. Tested on the stock rooted and only the center clock mod works.
The rom has to be deodxed for the APM to work. These mods are only designed to work with CleanROM as it was his files I used as a base.

[FIX][5.1.1][any Xperia device] Status bar icons gap fixed

As we all know, in android 5.1.1 there's a gap between the battery icon and the signal bar.
I managed to fix this little issue :good:
What you get:
The gap between the battery icon and the signal bar will be resized
Your current LTE/4G icon will be preserved
How to install:
I asked serajr to include this feature in his Xperia Xposed module, in order to let this fix work on any Xperia with any firmware :good:
From ver 2.2.2 onwards this feature is supported:
http://forum.xda-developers.com/showpost.php?p=63152553&postcount=1365
So just download and install the last Serajr Xperia Xposed (LP) from Xposed Installer and you'll get the fix
What part of the code has been changed?
If you like to modify the code manually or you need to add this feature to your rom without Xposed framework, here's the trick (very simple):
Decompile SystemUI
Enter this folder: res/layout
Open up signal_cluster_view.xml
Change this:
Code:
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="@dimen/signal_cluster_battery_padding"
with this
Code:
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="0.0dip"
Recompile
Many thanks to @serajr and @moly82
Screenshots:
{
"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"
}
Is this for odexed or deodexed rom?
Edit.
Working on odexed rom...
But if you delete odex file it stops working...probably won't work on deodexed roms
I confirm this patched SystemUI is working just fine on stock .232 Customized DE odexed.
vikrant7027 said:
Is this for odexed or deodexed rom?
Edit.
Working on odexed rom...
But if you delete odex file it stops working...probably won't work on deodexed roms
Click to expand...
Click to collapse
It works on both odexed and deodexed :good:
Have you flashed via recovery?
Have you done a cache and dalvikcache wipe?
The tool remove the old "systemUI" directory and push a single deodexed file without the odex part. That's why it works on odexed and deodexed.
You can find an automatic backup of your old "systemUI" in System anyways.
If you want to push manually, you have to delete the arm folder.
istux said:
It works on both odexed and deodexed :good:
Have you flashed via recovery?
Have you done a cache and dalvikcache wipe?
The tool remove the old "systemUI" directory and push a single deodexed file without the odex part. That's why it works on odexed and deodexed.
You can find an automatic backup of your old "systemUI" in System anyways.
If you want to push manually, you have to delete the arm folder.
Click to expand...
Click to collapse
Don't worry...I am on odexed rom and it worked for me
Thanks
I don't get it what the problem is on .232, could someone show/explain it because? I'm on .546 jet
Sony Xperia Z2
istux said:
I need someone with z2 who can test if my mod for z3 and z3-compact work for you too
This fix remove the gap between the battery icon and the signal bar.
Download here: http://d-h.st/2Ckm
You need the last .232 firmware
Flash via recovery
Remember to make a FULL BACKUP before modding.
Only expert people, please!
Please report below, thank you :good:
Click to expand...
Click to collapse
Can make for Z1?
Thank You OP, Works fine on the Z2 Odexed .232
anakdayak said:
Can make for Z1?
Click to expand...
Click to collapse
If it works on z3, z3c and z2, then it should work on z1 too.
Give it a try. Make a full backup and flash it
Thought I was the only person who noticed these gaps. IMO the statusbar icons have always been extremely unaligned on android, almost no matter which manufactor ROM but the latest AOSP versions seems to have gotten it better, but Sony's not so much..
I'm on Existenz so I doubt this SystemUI will do much good (maybe you can make an existenz version if I provide the .apk?) but on another note, how about the gap on the left of signal and wifi icon? Initially I actually thought it was a gap on the right side of the no-sound icon(s) but seems like it aint, after enabling the alarm icon...
Did a little photoshop work. See what I mean?:
Maybe I'm just really nitpicking here
EDIT: Also, I don't really see the gap between the battery icon and the signal icon but that's because the ExistenZ rom has some different icons, right? I haven't actually used the stock ROM so I don't really know.
Now fix is included in last serajr's Xperia Xposed :good:
I added the code to change, if you're a developer.
Read the OP!!!
istux said:
Now fix is included in last serajr's Xperia Xposed :good:
I added the code to change, if you're a developer.
Read the OP!!!
Click to expand...
Click to collapse
And for those who want to know how this fix works in the module, here is whole related code:
PHP:
package serajr.xx.lp.hooks.systemui;
import com.android.systemui.statusbar.SignalClusterView;
import serajr.xx.lp.Xposed;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
public class SystemUI_StatusBarFixDataBatteryGap {
public static void hook() {
// habilitado?
if (!Xposed.mXSharedPreferences.getBoolean("xx_system_ui_enabled_pref", false))
return;
// SignalClusterView - onFinishInflate
XposedHelpers.findAndHookMethod(SignalClusterView.class, "onFinishInflate", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
SignalClusterView thiz = (SignalClusterView) param.thisObject;
// reseta os paddings horizontais
if (thiz.getPaddingEnd() > 0 || thiz.getPaddingStart() > 0)
thiz.setPaddingRelative(0, thiz.getPaddingTop(), 0, thiz.getPaddingBottom());
}
});
}
}
Thanks Sir

Categories

Resources