[REQUEST] Android L Status Bar Icons - Nexus 6 Q&A, Help & Troubleshooting

Is it ported to an xposed module? Or anything? I want Android L like battery, wifi, mobile data icons...

agonfighter said:
Is it ported to an xposed module? Or anything? I want Android L like battery, wifi, mobile data icons...
Click to expand...
Click to collapse
There is a xposed module called Xstana, it has the android l navbar and statusbar icons as well as others like miui, lg g3, samsung galaxy, etc, try it

agonfighter said:
Is it ported to an xposed module? Or anything? I want Android L like battery, wifi, mobile data icons...
Click to expand...
Click to collapse
What device do you have? This is a N6 forum but of course N6 will have L status bar icons...

Looking at the Developer Preview, I'm not sure Lollipop actually has icons on the statusbar..
At least, not like the icons that came before. Normally the signal icons use a collection of PNG image files and you can use those image files in a different rom. As far as I can tell, Google have done what they did with the battery icon and the signal and wifi icons are now generated by code.
However, my theming tool has signal and wifi icons that look just like the Lollipop ones, so I've attached two zip's for you. They're not flashable zips, just ordinary archives.

Signal and wifi icons on TMA are great,but what about data icons ?

so, has anyone figured out how to theme the signal and/or LTE "icon" in lollipop?
as @Ticklefish pointed out, the signal/data icons apprear to be generated via XML code now. specifically, the data icon (LTE in my case) appears to be defined in SystemUI/res/drawable/stat_sys_data_fully_connected_lte.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="17.0dip" android:width="9.207977dip" android:viewportWidth="13.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M2.000000,9.700000l2.000000,0.000000L4.000000,11.000000L0.300000,11.000000L0.300000,2.500000L2.000000,2.500000L2.000000,9.700000z" />
<path android:fillColor="#ffffffff" android:pathData="M8.300000,3.800000L7.000000,3.800000L7.000000,11.000000L5.300000,11.000000L5.300000,3.800000L4.000000,3.800000L4.000000,2.500000l4.300000,0.000000L8.300000,3.800000z" />
<path android:fillColor="#ffffffff" android:pathData="M12.400000,7.300000l-1.700000,0.000000l0.000000,2.400000l2.100000,0.000000L12.799999,11.000000L9.000000,11.000000L9.000000,2.500000l3.700000,0.000000l0.000000,1.300000l-2.100000,0.000000l0.000000,2.100000l1.700000,0.000000L12.300000,7.300000z" />
</vector>
i dunno how to edit this though, i'm used to simply replacing PNGs. anybody know how to work with this? all i want to dois change the "LTE" symbol to something of my choosing.

PhilDX said:
so, has anyone figured out how to theme the signal and/or LTE "icon" in lollipop?
as @Ticklefish pointed out, the signal/data icons apprear to be generated via XML code now. specifically, the data icon (LTE in my case) appears to be defined in SystemUI/res/drawable/stat_sys_data_fully_connected_lte.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="17.0dip" android:width="9.207977dip" android:viewportWidth="13.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M2.000000,9.700000l2.000000,0.000000L4.000000,11.000000L0.300000,11.000000L0.300000,2.500000L2.000000,2.500000L2.000000,9.700000z" />
<path android:fillColor="#ffffffff" android:pathData="M8.300000,3.800000L7.000000,3.800000L7.000000,11.000000L5.300000,11.000000L5.300000,3.800000L4.000000,3.800000L4.000000,2.500000l4.300000,0.000000L8.300000,3.800000z" />
<path android:fillColor="#ffffffff" android:pathData="M12.400000,7.300000l-1.700000,0.000000l0.000000,2.400000l2.100000,0.000000L12.799999,11.000000L9.000000,11.000000L9.000000,2.500000l3.700000,0.000000l0.000000,1.300000l-2.100000,0.000000l0.000000,2.100000l1.700000,0.000000L12.300000,7.300000z" />
</vector>
i dunno how to edit this though, i'm used to simply replacing PNGs. anybody know how to work with this? all i want to dois change the "LTE" symbol to something of my choosing.
Click to expand...
Click to collapse
Those are changes made by decompiling SystemUI.apk if you're looking to replace PNG then open it up using a archive and replace the image.

zephiK said:
Those are changes made by decompiling SystemUI.apk if you're looking to replace PNG then open it up using a archive and replace the image.
Click to expand...
Click to collapse
yeah, I pulled that XML file out of SystemUI. handling of stausbar icons has been completely reworked in Lollipop and there are no PNGs for the LTE data indicator (as best as I can tell). think the three data strings define the symbol but I don't know how to manipulate the values. after looking around some more, it appears to be some sort of vector drawing and requires additional software to generate.
when im feeling adventurous, I'm going to try replacing the code with references to a PNG file and see what happens.

Ticklefish said:
Looking at the Developer Preview, I'm not sure Lollipop actually has icons on the statusbar..
At least, not like the icons that came before. Normally the signal icons use a collection of PNG image files and you can use those image files in a different rom. As far as I can tell, Google have done what they did with the battery icon and the signal and wifi icons are now generated by code.
However, my theming tool has signal and wifi icons that look just like the Lollipop ones, so I've attached two zip's for you. They're not flashable zips, just ordinary archives.
Click to expand...
Click to collapse
Hello , could you please resize icons in 39 X 36 , if I did it myself they are just deform, thank you .
EDIT : Problem solved , with Paint NET , thank .

No such app yet to replace 4.4 status bar with that of 5.0??
Sent from my XT1022 using XDA Free mobile app

how to get back the status bar wifi icon of kitkat? i dont like the FULL wifi icon in lollipop,thx

I Am Looking For This Code Thanks To Share It Here..
---------- Post added at 07:02 AM ---------- Previous post was at 06:58 AM ----------
Can I Aloso Get The .Xml Code Of Airplane mode,Auto-rotate And Some Others...

Related

[MOD] Transparent Notification Pulldown (EC05 Bonsai 4.0.X)

Hey all,
Here's a mod to make the notification drawer pulldown transparent. It based on EC05. This one's off of Bonsai's 4.0.X. Let me know what you think. This is at 70% opacity.
Thanks to malfunctions DIY guide: http://forum.xda-developers.com/showthread.php?t=812541 and to Decalex.
Make copies/backups of
/system/framework/twframework-res.apk
/system/framework/framework-res.apk
Preview (Disclaimer: Does not come with the custom branding/batt mod):
CWM3 Flashable:http://www.megaupload.com/?d=5AAHOSKK
Heres a suggestion where the red part is bring the pull down menu so it completely covers the screen
XxLostSoulxX said:
Heres a suggestion where the red part is bring the pull down menu so it completely covers the screen
Click to expand...
Click to collapse
I always wonderd why that space was there.
Also how did you get the time over there by the date?
Sent from my SPH-D700 using Tapatalk
Yeah, idk what's up with the extra padding there. I noticed that too. That is not something I did. That's just the way it is by default. We could look into what causes that but I think it's beyond me currently. I just started messing with modifying PNG's and .9.PNG's. I know XML but have never messed with Android's schemas.
Actually the image status_bar_close_on.png purposely has a shadow now that I take a closer look. Simple enough to modify if you have a little Photoshop skills.
Or maybe it's fixable by adjusting the image padding in the xml file.
I was able to find status_bar_tracking.xml which references the image.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.server.status.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.server.status.TrackingPatternView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.server.status.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.server.status.CloseDragHandle>
</com.android.server.status.TrackingView>
Maybe if android: paddingLeft="0.0px" android: paddingRight="0.0px" android: paddingBottom="0.0px" [spaces added to remove smileys] could be made negative value pixels we could force status_bar_close_on.png down a bit? We'd have to try.
The clock being moved from the normal status bar to the pulldown notification status bar is a mod in the services.jar file. It was done by Randy_T and Mammon for the Bonsai rom and that's what I have installed. You can probably replace yours and get the same effect. Make a backup just in case.
coryshad said:
I always wonderd why that space was there.
Also how did you get the time over there by the date?
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
p3dr0maz said:
The clock being moved from the normal status bar to the pulldown notification status bar is a mod in the services.jar file. It was done by Randy_T and Mammon for the Bonsai rom and that's what I have installed. You can probably replace yours and get the same effect. Make a backup just in case.
Click to expand...
Click to collapse
Cool thanks
Sent from my SPH-D700 using Tapatalk
It does reach all the way to the bottom - it is built so that it has a drop shadow below it. Just replace the close on with one that doesn't have that drop shadow or modify it in photoshop to remove it and slide the handle to the bottom of the canvas and it will hit the bottom.
Edit - read the first part of your post now - your first assumption is correct.
p3dr0maz said:
Hey all,
Here's a mod to make the notification drawer pulldown transparent. It based on EC05. This one's off of Bonsai's 4.0.X. Let me know what you think. This is at 70% opacity.
Thanks to malfunctions DIY guide: http://forum.xda-developers.com/showthread.php?t=812541 and to Decalex.
Make copies/backups of
/system/framework/twframework-res.apk
/system/framework/framework-res.apk
Preview (Disclaimer: Does not come with the custom branding/batt mod):
CWM3 Flashable:http://www.megaupload.com/?d=5AAHOSKK
Click to expand...
Click to collapse
Would this be flashable on sfr 1.2?
brandonc0526 said:
Would this be flashable on sfr 1.2?
Click to expand...
Click to collapse
Yes its just modified pngs (graphics) in the framework-res.apk and twframework-res.apk files. Nothing else should be included in this zip package to make these transparency changes. You can think of this as a sort of mini-theme that your flashing.
Paul627g said:
Yes its just modified pngs (graphics) in the framework-res.apk and twframework-res.apk files. Nothing else should be included in this zip package to make these transparency changes. You can think of this as a sort of mini-theme that your flashing.
Click to expand...
Click to collapse
Because this is the framework it isn't that simple. You would lose all battery mods, themes and rom customization (that is part of the apk's). The best thing to do would be to open it up and pull out the images and place them in the srf framework files than push them to the phone.
Sent from my SPH-D700 using XDA Premium App
crawrj said:
Because this is the framework it isn't that simple. You would lose all battery mods, themes and rom customization (that is part of the apk's). The best thing to do would be to open it up and pull out the images and place them in the srf framework files than push them to the phone.
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
Correct, as the OP stated this is only the transparent pull down notification background. It doesn't include anything else so it would overwrite any other modifications that are done to the current framework-res.apk and twframework-res.apk you have installed.
The files you would need to pull are...
twframework-res.apk/res/drawable-hdpi/
status_bar_close_on.png
status_bar_header_background_01.png
status_bar_header_background.png
status_bar_background.9.png
framework_res.apk/res/drawable-hdpi/
status_bar_item_background_focusl.9.png
status_bar_item_background_normal.9.png
status_bar_item_background_pressed.9.png
I think that should about cover the transparent notification pulldown section. For the average person this may seem a bit much to move these files over, but I think this transparent theme/mod that p3dr0maz did was for those who were looking for maintaining the stock appearance with some transparency thrown in

[MOD][EE03][GINGERBREAD] Remove Clock from Status Bar

Well I wanted to leave my contribution to Gingerbread so I brought you the Remove Clock from Status Bar mod. Took a bit of work seeing how things have changed from Froyo to GB but after some hours of looking at code I figured it out. Themers/devs, feel free to use in any of your builds. Note: I have flashed this using ptfdmedic's themes and it works fine so have at it.
Enjoy.. Paul627g
Remove Clock from Status Bar (Flash in CWM)
Restore Clock from Status Bar (Flash in CWM)
:: This will break any changes to the SystemUI.apk you may have in place if its been modified. ::
Here is the line of code that I removed to accomplish this.
- SystemUI.apk
- Decompile using APK Manager 4.9
- res/layout/status_bar.xml
- Line 8 in Notepad ++
- Remove the following...
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- Save the file in Notepad ++ and compile the apk and flash!
I see you got it all worked out GJ man!
Paul627g said:
Well I wanted to leave my contribution to Gingerbread so I brought you the Remove Clock from Status Bar mod. Took a bit of work seeing how things have changed from Froyo to GB but after some hours of looking at code I figured it out. Themers/devs, feel free to use in any of your builds.
Enjoy.. Paul627g
Remove Clock from Status Bar (Flash in CWM)
Restore Clock from Status Bar (Flash in CWM)
:: This will break any changes to the SystemUI.apk you may have in place if its been modified. ::
Click to expand...
Click to collapse
Thanks... Finally it decompiled perfectly in APK Manager and it was only a matter of a hour or so of poking around to find the right line of code
Is it possible if you can just get rid of the AM/PM? =P
acer1096xxx said:
Is it possible if you can just get rid of the AM/PM? =P
Click to expand...
Click to collapse
Looking into it, but this area of code has seemed to been completely changed up from Froyo which I expected. I will keep hunting around see if I can figure it out.. I'm sure others are looking into this too..
Nice work. Thanks!
I think it's going to be in services.jar. I believe this is what actually puts the whole clock there but without the element in the status_bar layout to support it we do not see it. So my theory is that in services.jar if we were to find the applicable code. The am/pm string could just be removed.
Paul627g said:
Looking into it, but this area of code has seemed to been completely changed up from Froyo which I expected. I will keep hunting around see if I can figure it out.. I'm sure others are looking into this too..
Click to expand...
Click to collapse
p3dr0maz said:
I think it's going to be in services.jar. I believe this is what actually puts the whole clock there but without the element in the status_bar layout to support it we do not see it. So my theory is that in services.jar if we were to find the applicable code. The am/pm string could just be removed.
Click to expand...
Click to collapse
I will have to look around in the services.jar again and see if I can find it... I abandoned the services.jar when I noticed that the normal stuff we were looking for was removed and placed in the SystemUI.apk.
If you stumble on something PM me, p3dr0maz.

[TOOL][8/14/11]BatteryIconMaker-Generate % battery icons.Vertical,Horizontal,Circular

8/14/2011 Update: See this post for details. Now you can make circular progress bars, dotted progress bars, the text is anti-aliased and smoothed, and more!
Attached is a very simple, small Windows .NET application that will generate a 101 Battery Icon images (for percentages 0-100) with a growing battery indicator bar and also the battery percentage text using the font, style, format and position that you desire.
Using an XML configuration file and some image templates, you can quickly generate a wide range of icons for your battery icon theme.
To start, just unzip the files into a folder and open up the "Config.XML" file in a text editor. Here's the one I've included to use as a guide/template/example:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<batteryIcon>
<output folder="output" filename="stat_sys_battery_{0:0}.png" />
<batteryLevels>
<level max="24">
<background filename="Files\template.png"/>
<bar startX="6" startY="21" endX="31" endY="21" filename="Files\bar-red.png"/>
<pctStyle colorRGB="FFFFFF" fontFamily="Arial" fontSize="11" italic="false" bold="true" formatString="{0:0}%"/>
<pctPosition centerX="true" centerY="false" offsetX="1" offsetY="3"/>
</level>
<level max="49">
<bar filename="Files\bar-orange.png"/>
</level>
<level max="74">
<bar filename="Files\bar-green.png"/>
</level>
<level max="100">
<bar filename="Files\bar-blue.png"/>
</level>
</batteryLevels>
</batteryIcon>
In addition, in the "Files" folder, I have an example image called template.png, which is the example icon's background image, and some bar-xxx.png images, which are different colored 1-pixel-wide images that are used in the example to draw the horizontal battery meter over the background. Attached to this post is a picture of the output from this configuration and image files so you can get a basic idea of what it can do.
Using this application is (hopefully) quite simple: Create your template images, edit the config file to specify your parameters, then run the executable. 101 images, for battery levels 0-100 percent, will be created as specified. Tweak and run again as needed until you get it right. The "level" elements allow you to change any of the icon's characteristics (text color, size, position; background image; progress bar image) for different battery level intervals. Anything not changed from the previous level is carried over, so you only need to specify changes.
For most of you, editing the config.xml file is probably obvious from the example; you can probably just tweak it file and get what you want, but below are more details.
Documentation
The output element just indicates where the final images will be stored and how they will be named. The {0:0} part is a standard .NET format string and indicates where and how to put the battery percentage in the file name. (You probably won't need to change this; {0:0} will format numbers from 1-100, no leading zeroes, and we don't need to worry about commas or decimal places or anything).
After that, under the batteryLevels element, there are a series of level elements that define the icon options at each battery percentage interval. The end of the interval is defined using the "max" attribute, which is a number from 0-100 for the battery percentage.
The first level should include all layout and image and formatting options, but then after that, you just need to specify things that change from the previous interval. The level elements should go in order from lowest battery level to highest.
At each level, we can specify:
The background element which sets the base background image for the icon, on which the progress bar and pct text will be overlayed.
The bar element which determines how the progress bar is drawn over the background. startX/startY and endX/endY are the range of positions for which the progress bar image will be drawn. The image should be 1 pixel tall or wide, depending on if the bar is progressing vertically or horizontally. Omit this element completely if you do not wish to draw a progress bar -- i.e., for just the battery percentage text on top of one or more background images.
pctStyle lets you theme the battery percentage text a bit. formatString is a .NET format string, and is probably fine as is, except notice that it ends with a % symbol. Remove this if you don't want a % after the number. (i.e., it would be just "{0:0}")
pctPosition is used to indicate where on the background image the text is drawn. centerX/centerY are true/false if you want the text to be centered in that dimension, otherwise it is drawn at the top and/or left of the background. offsetX/offsetY let you move the text up/down or left/right pixels as needed from either the center or top/left position.
That's really it. Anything that doesn't change from the previous battery level will be carried over, so you just need to specify what has changed.
Tweak the XML file and re-run until you get the battery icons you are looking for! You can also create and drop different configuration XML files on the executable (or specify the file via the command line as the first argument) and it will run using that file as opposed to the default "config.xml" file in the application directory.
Additional Notes:
Specify an empty string ("") for the filename attribute of the bar element if you do not want a progress bar drawn.
Specify an empty string ("") for the fontFamily attribute of the pctStyle element if you do not want the percentage text drawn.
Remember that the background image can change at any interval as well, if you'd like to use a series of different backgrounds with percentage text overlayed and no progress bar, for example.
the start/end positions of the progress bar should be specified once and cover the entire range of the progress bar, from 0-100 %, and not change at different intervals (unless that is an effect that you want for some reason).
You can specify the filename for any valid configuration file as the single parameter for the executable to use that file instead of the default config.xml file if you like.
WOW! Are you kidding me. You mean I don't have to make 100+ Battery icons. THANKS. I'll definately be donating next time I get paid. DO YOU REALIZE how much time you just saved me? Thanks. DL'ing now.
EDIT: DUDE! Where's your donation link? I just tested this and IT'S INSANE! IT WORKS PERFECT! Seriously, post a donation link. You deserve a lot for making this. I'll also post a link to your thread at "themikmik.com". They'll love this program.
EDIT: Could you please give me an idea of what pctposition I would need to accomplish this type of battery? Thanks. I tried a pct of 1:1 but had an FC. Or Offest. I'm still trying to figure it out.
EDIT: I almost have it down. offsetX="3" offsetY="10"/> gives me:
Will the Font be transparent? Answer: YES
I finally got it looking the way I wanted. I used:
<bar startX="10" startY="15" endX="31" endY="15" filename="Files\bar-red.png"/>
It looks like I just have to modify the PNG bar's to make it the size I want so it fills up the battery.
To think, it took me 20 minutes to do TWO battery PNG's in Adobe photoshop! LOL.
How can I change which way the bar is going? It currently goes from Left to right. I'd like it to go from Left to Right.
Answer: I feel like an air-head. I figured it out. You just have to reverse the Start X. For example:
<bar startX="33" startY="9" endX="7" endY="9" filename="Files\bar-red.png"/>
Great!!!!
THX for this tool
Made my life much easier
raider3bravo said:
It looks like I just have to modify the PNG bar's to make it the size I want so it fills up the battery.
Click to expand...
Click to collapse
Yeah, those images are just examples, modify as needed. Glad it is working for you!
jsmith8858 said:
Yeah, those images are just examples, modify as needed. Glad it is working for you!
Click to expand...
Click to collapse
Can you give me an idea of some fonts we can use? I was thinking if I used a certain font that wasn't on the phone then it might not show.
EDIT:
On another note, I'd like to share with everyone the coding I used to achieve a perfect battery using a 38x38 icon and 1x21 bar colors.
Never before have I been able to custom make batteries this fast. Thanks!
Code:
<?xml version="1.0" encoding="utf-8" ?>
<batteryIcon>
<output folder="output" filename="stat_sys_battery_{0:0}.png" />
<batteryLevels>
<level max="24">
<background filename="Files\template.png"/>
<bar startX="34" startY="8" endX="6" endY="8" filename="Files\bar-red.png"/>
<pctStyle colorRGB="A7CEA7" fontFamily="Arial" fontSize="11" italic="false" bold="true" formatString="{0:0}"/>
<pctPosition centerX="true" centerY="false" offsetX="2" offsetY="9"/>
</level>
<level max="49">
<bar filename="Files\bar-orange.png"/>
</level>
<level max="74">
<bar filename="Files\bar-green.png"/>
</level>
<level max="100">
<bar filename="Files\bar-blue.png"/>
</level>
</batteryLevels>
</batteryIcon>
raider3bravo said:
Can you give me an idea of some fonts we can use? I was thinking if I used a certain font that wasn't on the phone then it might not show.
Click to expand...
Click to collapse
Use any font you have available on your pc that looks good. On your phone it's just a PNG image, it doesn't matter .
HTC style battery meter
I modified HTC battery png files to include the battery percentages.
Attached is the preview and output folder. Use as you please.
It would be awesome if we could get the charging icon pngs. Anyone care to post?
Sent from my ADR6400L using XDA Premium App
raider3bravo said:
It would be awesome if we could get the charging icon pngs. Anyone care to post?
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
Attached are all HTC battery pngs including the charging ones.
I just made another battery icon. This program is a huge time-saver.
When I asked about the power widgets. I was wanting to know if it's possible to include those images in the battery icon similar to the numbers being populated in the icon. The battery power widgets are easy to get but populating them inside a battery icon can be tricky and again time consuming. Just putting the thought out there. I'm happy the way it is, but maybe consider it for a future update?
raider3bravo said:
I just made another battery icon. This program is a huge time-saver.
When I asked about the power widgets. I was wanting to know if it's possible to include those images in the battery icon similar to the numbers being populated in the icon. The battery power widgets are easy to get but populating them inside a battery icon can be tricky and again time consuming. Just putting the thought out there. I'm happy the way it is, but maybe consider it for a future update?
Click to expand...
Click to collapse
I'm afraid that I don't really understand what you are requesting, can you be a little more specific or explain a bit more what you are trying to do?
jsmith8858 said:
I'm afraid that I don't really understand what you are requesting, can you be a little more specific or explain a bit more what you are trying to do?
Click to expand...
Click to collapse
Sure thing. Right now, the script populates 100 icons. However, there are 110 "battery icons." The other 10 are for charging. What I'm requesting is if the script could somehow, populate those charging icons along with the modified battery png's. I can easily add the charging icons but theming them will be a huge hassle. If it's possible, great. No big deal if it can't be done right now. I'm just thankful we have this script to make all 100 Png's.
How do I compress series png files as 1png file?
I'm running MIUI galnet 6.0 and need to add 1 png file that has all the percentage inside (0-100)
Do you guys know how I need to do this?
Thanks
This is amazing! Why doesen't everyone use it! Please create charging and different types of batteries like circular ones!
Circle battery indicators
see next post!
Version .2
Here's version .2. The OP will be updated at some point when I have time to rewrite it.
Changes:
1) The % text is now smoothed and anti-aliased.
2) You can draw a circular progress bar by specifying rotateStart and rotateEnd attributes for the bar element. These are in degrees (0-360). The "bar" image will be drawn at the startX, startY point (usually 0,0; omit if you like as this is the default) and then repeatedly rotated and drawn up to the currently drawn battery level. endX and endY are ignored if you use rotation. (The included config.xml file has an example of using this feature.)
3) You can now specify a "step" attribute in the batteryLevels element. This allows you to draw icons for only every nth battery level, say, 0,5,10,15...90,95,100. (the default config.xml file includes this attribute so you can see where it is; it is set to 1, which is the default.)
4) in the bar element, you can specify drawCount and skipCount attributes to toggle drawing the progress bar on and off to make a "dotted progress bar" effect. This is often done for circular battery icons. Basically, specify how many % to draw and then how many % to skip using these attributes. (The included config.xml file has an example of using this feature.)
5) An image called "preview.png" will be created in the output folder with a simple compilation of all of your icons in one image. This is useful for posting for others to see or for you to quickly review all in 1 place.
The standard horizontal bar example included with the app has been renamed to "config-bar.xml", while the default "config.xml" included creates a dotted circular progress bar and includes most of the features described above.
Have fun! See some attached examples. (PLEASE NOTE: I literally threw the examples together in 10 minutes, they are a little sloppy since I didn't take the time to line things up perfectly, you can do better!)
this tool is premium quality!
Since no one really knows about this tool, I have two requests:
1) If you use this for a theme you make available to others here on XDA, if you could include a link to this thread and (very) briefly mention that you used this to generate your icons that would be much appreciated.
2) Maybe a few clicks to "Submit to Portal" (on the top-right) can get this thread on the XDA home page! (I apologize if soliciting this is against forum rules)
3) Share your work here! Use the cool "preview.png" feature to post some examples of what you've created.
Enjoy!
R3D X said:
this tool is premium quality!
Click to expand...
Click to collapse
Thanks, glad it works for you!
jsmith8858 said:
Since no one really knows about this tool, I have two requests:
1) If you use this for a theme you make available to others here on XDA, if you could include a link to this thread and (very) briefly mention that you used this to generate your icons that would be much appreciated.
2) Maybe a few clicks to "Submit to Portal" (on the top-right) can get this thread on the XDA home page! (I apologize if soliciting this is against forum rules)
3) Share your work here! Use the cool "preview.png" feature to post some examples of what you've created.
Enjoy!
Click to expand...
Click to collapse
Ya, this should have been on the homepage of XDA months ago. lol. Thanks for the update. I know I included a link on my first theme to this thread, but forgot about the others. I'll mention you now in every OP. Thanks a million. My themes wouldn't be possible without this. Submitting to portal now!

[Q] Where Is Our Stock Battery Icon?

I'm running stock 4.4 on my Sprint Moto X and I want to edit my status bar icons to align them. But I can't seem to locate the battery icon(s). Experience and common sense tells me the png's should be in SystemUI.apk, but I've cracked it open and I don't see them. Hopefully someone knows something I don't. I thought this would be an easy mod, but...
sasokutenshin said:
I'm running stock 4.4 on my Sprint Moto X and I want to edit my status bar icons to align them. But I can't seem to locate the battery icon(s). Experience and common sense tells me the png's should be in SystemUI.apk, but I've cracked it open and I don't see them. Hopefully someone knows something I don't. I thought this would be an easy mod, but...
Click to expand...
Click to collapse
Battery icons in KK are drawn in java. There are no images used.
Thank you, sir. I didn't know.
sasokutenshin said:
Thank you, sir. I didn't know.
Click to expand...
Click to collapse
what do you mean by align them? although they are drawn in java, they are still called in within the status_bar.xml located in the layout folder.
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="10.5dip" android:layout_height="16.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
mrvirginia said:
what do you mean by align them? although they are drawn in java, they are still called in within the status_bar.xml located in the layout folder.
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="10.5dip" android:layout_height="16.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
Click to expand...
Click to collapse
I don't know how else to explain it. In 4.4, the battery, signal, etc icons aren't aligned. The battery is the most noticeable of these. It sits considerably higher than the signal bars right next to it. Prior to 4.4, when there were still battery images in the SystemUI.apk, I could've simply edited those images, lowering the battery a pixel or two. I appreciate the help with pointing out the appropriate xml. But even if I knew how to change that, I replaced my laptop recently and for some reason I'm having hell getting apktool or any of its variants working correctly. So I can't decompile/recompile currently.
sasokutenshin said:
I don't know how else to explain it. In 4.4, the battery, signal, etc icons aren't aligned. The battery is the most noticeable of these. It sits considerably higher than the signal bars right next to it. Prior to 4.4, when there were still battery images in the SystemUI.apk, I could've simply edited those images, lowering the battery a pixel or two. I appreciate the help with pointing out the appropriate xml. But even if I knew how to change that, I replaced my laptop recently and for some reason I'm having hell getting apktool or any of its variants working correctly. So I can't decompile/recompile currently.
Click to expand...
Click to collapse
use v2.0.0 beta 9. that's what i used.
in the code there, i would start with changing the marginbottom to 0.0dip
I keep getting a style-v17 error and I don't know what it means. Nothing will even decompile. I've searched, but all I've found are maybe two people asking the same question with no answers. I am by no means a "developer". More often than not, I simply crack open an apk with 7zip (or old school style with NinjaMorph if I'm on my phone) and edit png's. I've used apktool a handful of times, but I had no problems getting it working properly on my last laptop. Followed instructions and it worked. No such luck this time.
On a more topic-related note, it turns out it was more about the signal bars sitting too low than the battery sitting too high. I used Zipthemer and fixed the relevant signal bar png's.
sasokutenshin said:
I keep getting a style-v17 error and I don't know what it means. Nothing will even decompile. I've searched, but all I've found are maybe two people asking the same question with no answers. I am by no means a "developer". More often than not, I simply crack open an apk with 7zip (or old school style with NinjaMorph if I'm on my phone) and edit png's. I've used apktool a handful of times, but I had no problems getting it working properly on my last laptop. Followed instructions and it worked. No such luck this time.
On a more topic-related note, it turns out it was more about the signal bars sitting too low than the battery sitting too high. I used Zipthemer and fixed the relevant signal bar png's.
Click to expand...
Click to collapse
you need the newest version of java installed, 7 i believe
Get rid of the battery icon.....there is a wonderful free application called "energy bar" which replaces the battery icon with a very thin line on top of the screen indicating battery charge.
mrvirginia said:
use v2.0.0 beta 9. that's what i used.
in the code there, i would start with changing the marginbottom to 0.0dip
Click to expand...
Click to collapse
Man that v2.0.0 beta 9 did the trick. Craziness. Thanks for the tip.
ghstudio said:
Get rid of the battery icon.....there is a wonderful free application called "energy bar" which replaces the battery icon with a very thin line on top of the screen indicating battery charge.
Click to expand...
Click to collapse
Excellent find. Unfortunately, my brain only thinks in the form of crunching numbers, so I gotta have a battery icon with percentage text.
sasokutenshin said:
Man that v2.0.0 beta 9 did the trick. Craziness. Thanks for the tip.
Click to expand...
Click to collapse
yeah no problem :highfive:

[Q] Wifi and Data Icon Theming...

Got what would seem a dumb question, but here goes.
I have a Desire 510 for Boost. While trying to SIM Unlock it, I loaded the CricKet ROM. I'd noticed the wifi icon has data traffic arrows. I've also noticed that the data icons are normal, and not that ridiculous spinning Sprint icon (Meaning, it also had the old fashioned data arrows).
Soo.. the question is what files needed to be modded to make these changes to the CDMA ROM? I know I can replace the icons, but these seem to be toggles in the ROM itself, and I'm not sure where I'd need to set them. I've looked in SystemUI.apk and Framework-res.apk. I dunno if I have to decompile them to find these options. Anyone with any insight here would be most appreciated.
Attached is a screenshot of my modded status bar for the CricKet ROM. I'd like to put this in the CDMA ROM.
Stovepipe said:
Got what would seem a dumb question, but here goes.
I have a Desire 510 for Boost. While trying to SIM Unlock it, I loaded the CricKet ROM. I'd noticed the wifi icon has data traffic arrows. I've also noticed that the data icons are normal, and not that ridiculous spinning Sprint icon (Meaning, it also had the old fashioned data arrows).
Soo.. the question is what files needed to be modded to make these changes to the CDMA ROM? I know I can replace the icons, but these seem to be toggles in the ROM itself, and I'm not sure where I'd need to set them. I've looked in SystemUI.apk and Framework-res.apk. I dunno if I have to decompile them to find these options. Anyone with any insight here would be most appreciated.
Attached is a screenshot of my modded status bar for the CricKet ROM. I'd like to put this in the CDMA ROM.
Click to expand...
Click to collapse
I used Sense toolbox in the XPOSED module download section. Then switch both the wifi and signal bar icons with the oxygen ones they had built into the sense toolbox app. shutdown and wipe cache and dalvik, rebooted then switched them back to normal. shut down and wipe cache and dalvik and reboot. they should be the normal Stock icons and not the sprint ones.
Stovepipe said:
Got what would seem a dumb question, but here goes.
I have a Desire 510 for Boost. While trying to SIM Unlock it, I loaded the CricKet ROM. I'd noticed the wifi icon has data traffic arrows. I've also noticed that the data icons are normal, and not that ridiculous spinning Sprint icon (Meaning, it also had the old fashioned data arrows).
Soo.. the question is what files needed to be modded to make these changes to the CDMA ROM? I know I can replace the icons, but these seem to be toggles in the ROM itself, and I'm not sure where I'd need to set them. I've looked in SystemUI.apk and Framework-res.apk. I dunno if I have to decompile them to find these options. Anyone with any insight here would be most appreciated.
Attached is a screenshot of my modded status bar for the CricKet ROM. I'd like to put this in the CDMA ROM.
Click to expand...
Click to collapse
I believe those are things that you have to decompile SystemUI and change.
dipspit said:
I believe those are things that you have to decompile SystemUI and change.
Click to expand...
Click to collapse
I thought so, too. But I used the SystemUI from the GSM ROM on the CDMA ROM, and it didn't change the icons. I'm not sure where else it would be... I tried bringing over framework-res and that didn't change it either. My only other guess is androidpolicy.jar.. I'm gonna keep digging.
Can't used Xposed sense toolbox, because it didn't change the Wifi icon, and also caused random crashes on the phone. Once I'd removed it, the crashes stopped.
I apologize, I told you wrong. It's not sense toolbox that needs it, actually you don't need it at all. Just download the Disable Sprint system UI module from exposed activate and reboot. After reboot you will need to boot to recovery and wipe dalvic and cache. You need to wipe both to stop the crashes. After rebooting you will have the international lte and WiFi signals. This works.
Thanks, Larry. I'll give that a shot.
Any way to do it without using Xposed? Just wondering.
Stovepipe said:
Thanks, Larry. I'll give that a shot.
Any way to do it without using Xposed? Just wondering.
Click to expand...
Click to collapse
If you want to do it without xposed youre gonna have to do a little file moving using your favorite root file manager. Take the zip file i uploaded and unzip it go to /system/customize/acc and rename the defautl.xml to default.xml.bak and replace it with the one i have uploaded. Reboot to recovery and wipe Dalvik and Cache. Voila you have a stock M8 with the 5 signal bar icon stock LTE and Wifi amongst other things Non Sprint. P.s. i used PattyBoi's Rhinestone Kernel and thing is Awesome!
LarryBoyG said:
If you want to do it without xposed youre gonna have to do a little file moving using your favorite root file manager. Take the zip file i uploaded and unzip it go to /system/customize/acc and rename the defautl.xml to default.xml.bak and replace it with the one i have uploaded. Reboot to recovery and wipe Dalvik and Cache. Voila you have a stock M8 with the 5 signal bar icon stock LTE and Wifi amongst other things Non Sprint. P.s. i used PattyBoi's Rhinestone Kernel and thing is Awesome!
Click to expand...
Click to collapse
We're definitely on the right track!! The icons are correct! But this mod breaks the data. I'll see if I can figure out why; I'm guessing it has to do with how the default.xml handles the APN settings. I'll keep digging. Thanks for pointing me in the right direction though! You're the man!
Just saw that two when I turned off WiFi.
I'm gonna go over the lines tonight and compare with the m8 default.xml and see what's different.
LarryBoyG said:
Just saw that two when I turned off WiFi.
I'm gonna go over the lines tonight and compare with the m8 default.xml and see what's different.
Click to expand...
Click to collapse
BOOYAH!!! Got it to do what I wanted! I copied the text for the Android_RIL and Android_Telephony from the CDMA default.xml to the GSM default.xml. The result is that the Wifi icons show traffic, and the data works! =-) I'm even happier because the GPS icon is gone, and the nosim notification isn't there anymore (I have the phone on PagePlus, thus always had the no SIM nag)! Awesome sauce!
Thanks LarryBoyG for the insight here... I couldn't have figured this out on my own. You rock, d00d.
I've attached my defaultGSM2.xml (unzip, rename to default.xml and push it to your device). I've also attached my SystemUI.apk file, in case anyone thinks my wifi and signal icons are cool.
What I'm not sure of is if the LTE will work, but it should. Anyone with an active LTE device, please let me know.
To recap, all this XML mod should do is give you the arrows under the Wifi, and put the carrier name on the status bar.
If your not talking about theming them from a decompiled state then use xposed. There's a module that disables the sprint ui. Then your free to modify the icons with apps like xtana and xtended settings.
Sent from my 0PCV1 using XDA Free mobile app
CurbThePain said:
If your not talking about theming them from a decompiled state then use xposed. There's a module that disables the sprint ui. Then your free to modify the icons with apps like xtana and xtended settings.
Sent from my 0PCV1 using XDA Free mobile app
Click to expand...
Click to collapse
what i did for raptorrom was add this line to acc default.xml
<item type="boolean" name="data_icon_s4t_spark_enable">false</item>
add it below
<item type="boolean" name="data_icon_h3l_d_enabled">false</item>
save and restart phone.
that will turn off spark ui.
LarryBoyG said:
what i did for raptorrom was add this line to acc default.xml
<item type="boolean" name="data_icon_s4t_spark_enable">false</item>
add it below
<item type="boolean" name="data_icon_h3l_d_enabled">false</item>
save and restart phone.
that will turn off spark ui.
Click to expand...
Click to collapse
ahhhh that works too then haha
Hi, LarryBoyG...
You don't happen to know which line in the default.xml file gives the wifi data arrows do you? I'm trying to get this on a different phone (Desire 816), but I'd imagine it is the same string/item line.
Thanks in advance!
Stovepipe said:
Hi, LarryBoyG...
You don't happen to know which line in the default.xml file gives the wifi data arrows do you? I'm trying to get this on a different phone (Desire 816), but I'd imagine it is the same string/item line.
Thanks in advance!
Click to expand...
Click to collapse
I used a systemUI.apk that i modified to get those. You can pull it from my RR 1.1. and it should work.
Could some one implement battery prercentage 1-100 , that's the only thing holding me back from theming if your curious of what I'm saying you guys can check out my theme threads in the HTC amaze section
Stovepipe said:
Hi, LarryBoyG...
You don't happen to know which line in the default.xml file gives the wifi data arrows do you? I'm trying to get this on a different phone (Desire 816), but I'd imagine it is the same string/item line.
Thanks in advance!
Click to expand...
Click to collapse
Down near the bottom, there is line that mentions sku_id, change the number to 42. That is the default number for the global sku and will get data indicators workin. Sorry for the late response.

Categories

Resources