Need to add extra .png files for battery meter using ninjamorph.....

Discussion in 'Droid X Hacks' started by tracker1502, Feb 3, 2011.

  1. tracker1502

    tracker1502 Member

    Joined:
    Dec 5, 2010
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Ok, here's what i got....I'm trying to change the current battery icon on liberty 1.0 using ninjamorph. Everything goes well but for the charging portion, there are only .png files for 1-5 when i really need 1-10. I've changed out the xml to incorporate the extra frames but how do i "add" the 6-10 frames to complete the entire charging cycle?

    Thanks!
     
  2. XDRDX

    XDRDX Member

    Joined:
    Nov 4, 2010
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    You can't do that it also requires editing .XML files you would need a metamorph not a ninjamorph and I have yet to see one that modifies xml's.

    Sent from my DROIDX using Tapatalk
     
  3. Droid-Xer

    Droid-Xer DF Super Moderator Premium Member

    Joined:
    Nov 24, 2010
    Messages:
    2,404
    Likes Received:
    55
    Trophy Points:
    113
    Location:
    El Paso, TX
    Ratings:
    +55
    Why would you need 10 charging animations?
     
  4. tracker1502

    tracker1502 Member

    Joined:
    Dec 5, 2010
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I don't need to write the XML files, I've got the XML file that incorporates the extra frames. Just need to know how to add the extra 5 .png files. Or is there a way to package it and install it using metamorph?

    And the reason I was needing the ten is the icon animation goes by 10% increments, or 10 frames. Not really 10 animations, but one animation built out of 10 .png files.

    Sent from my DROIDX using DroidForums App
     
  5. XDRDX

    XDRDX Member

    Joined:
    Nov 4, 2010
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    If you were changing the charging animation you would need to decompile your current framework insert the charge changes in the xml and recompile the framework with the images in the drawable-hdpi folder.

    The new charging animation xml would have to have values for the images and time in milliseconds you want each image to display for then you would need to declare the new .png's and associate a hex value in the public.XML. At that point replace and insert the new charging images to the drawable-hdpi folder. Recompile the framework then using option 11 in apk manager then say yes and yes.

    Delete the files you have changed from the keep folder because those are files pulled from the source framework so that your changes will be placed in the new framework. Then delete resources.arsc and hit any key in apk manager. Then zipalign the framework and flash it via update.zip.

    Sent from my DROIDX using Tapatalk
     
  6. tracker1502

    tracker1502 Member

    Joined:
    Dec 5, 2010
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    The XML values are all set already. I got the XML files and images as a package from another rom. All I was needing was how to zip it and install it. Thanks for your help! I'm going to try to install it tonight using your instructions XDRDX.

    Sent from my DROIDX using DroidForums App
     
  7. XDRDX

    XDRDX Member

    Joined:
    Nov 4, 2010
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Yes but changes to XML that add new values not just change colors require recompiling the entire framework because the variable declarations for items like images within the xml's reside in a compiled file called resources.arsc within the framework. So any change to something such as you are describing would require decompiling and recompiling the framework-res.apk so don't do it without decompiling and recompiling. You will also get errors if you try recompiling an already themed framework so you need to make sure you start with a base rom framework that was compiled from source of the rom. Such as if using rubix start with the one that came with the rom not an already themed one.

    You are quite welcome if you have any questions let me know. If you are using apk manager also make sure you switch the apktool version from the 1.3.2 version that comes with apk manager 4.9 with the apktool version 1.3.1 from apktool's Google source site.

    Sent from my DROIDX using Tapatalk
     
  8. tracker1502

    tracker1502 Member

    Joined:
    Dec 5, 2010
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Ok, sounds good. I'll give it a shot and see if it works. If anything i'll back everything up and hopefully it all goes as expected....good! haha And i think that the 1.3.1 is the one i have on my laptop from last night but i'll definitely double check.

    One quick question....with this actualy changing the declarations inside of the resources.arsc file, is there a way to install it via a .zip file using metamorph? I've done it previously using metamorph with a different battery icon pack.
     
  9. XDRDX

    XDRDX Member

    Joined:
    Nov 4, 2010
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Not really sure I have never used metamorph. I have only ever decompile modified and recompiled entire frameworks. And I have not even done that much of that. I have however used ninjamorph just to change images though.

    Sent from my DROIDX using Tapatalk
     
Search tags for this page
battery animation png
,
battery icon animation png android
,
battery icon packs ninjamorph androud
,
battery meter png
,
download icon pack battery png i phone 5 for android
,
how to change battery icon png files
,
how to edit png image in ninjamorph
,
how to use ninjamorph to change battery icon
,

ninjamorph battery icon

,
where battery png icon in ninjamorph