DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 6 of 6

Thread: Modified Calendar Widget background - Now Wrong size! Help!?!?

  1. Senior Droid
    Boostjunky's Avatar
    Member #
    11844
    Join Date
    Dec 2009
    Posts
    170
    Phone
    Enter Current Phone Here
    #1

    Modified Calendar Widget background - Now Wrong size! Help!?!?

    OK, so I tried changing the background color of my Calendar widget because the Theme I am using (Nextheme on CM6-RC2) has black text on a transparent black background. Kind of hard to read.

    So what I did was copy the CalenderProvider.apk from the system/apps folder to my SD card, then from the SD card to my PC.

    On my PC, I extraced the files, and opened the res\drawable-hdpi\appwidget_bg.9.png file (which is the background for the widget) using Paint.NET.

    From there, I altered the background color (in Paint.NET, of course), saved the changes back to the extracted files from the original .apk, then replaced the original appwidget_bg.9.png file with the modified file within the archive of the original .apk (all of which I did on my PC).

    From there I copied the new modified CalenderProvider.apk from my PC to my SD card, then using Root Explorer, pushed it to the system\apps folder to replace the original.

    After that, I changed the permissions, and used terminal emulator to re-sync, then rebooted.

    Upon rebooting and applying the widget to my homescreen, the background is the color I modified it to, but it is smaller, and the text runs outside of the borders of the new/modified background.

    What am I missing here, guys? I tried increasing the size of the .png background within Paint.NET, but it made no difference whatsoever.

    Pics:

    Here's the size and color it used to be


    Here's what it looks like after modifying the png file


    Any ideas?

    TIA!!!
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Theme Developer
    icculusX's Avatar
    Member #
    36395
    Join Date
    Feb 2010
    Location
    The Moon
    Posts
    2,541
    Liked
    2 times
    Phone
    RAZR!
    DroidForums.net Theme Developer
    Premium Member
    #2
    FYI: It is important as a themer to know that any PNG image with a .9. in it is called a 9-patch file. The framework and other system APK files contain a LOT of 9-patch files. These are not normal image graphics. You have to re-edit the 9 patch file, then draw the patching with the SDK tool program, then you need to compile the patched image. If you simply just edit it then you will have issues like this, strange stretching and stuff...

    There are tools out there for decompiling and compiling the APK 9-patch files also.
    The Mooooooon!
  4. Senior Droid
    Boostjunky's Avatar
    Member #
    11844
    Join Date
    Dec 2009
    Posts
    170
    Phone
    Enter Current Phone Here
    #3
    Quote Originally Posted by icculusX View Post
    FYI: It is important as a themer to know that any PNG image with a .9. in it is called a 9-patch file. The framework and other system APK files contain a LOT of 9-patch files. These are not normal image graphics. You have to re-edit the 9 patch file, then draw the patching with the SDK tool program, then you need to compile the patched image. If you simply just edit it then you will have issues like this, strange stretching and stuff...

    There are tools out there for decompiling and compiling the APK 9-patch files also.
    Ugh! I am SOOO new to all this!

    I just barely learned how to Root my phone and run custom ROMs. I knew I was getting myself into a bigger mess than it seemed to be, just didn't know how big.

    I appreciate the info. Looks like I have a lot more research to be doing!

    On a side note, how difficult would it be to change the text color, rather than mess with the widget background? Is there an XML file I need to be looking at for this?

    Thanks again!
  5. Senior Droid
    Boostjunky's Avatar
    Member #
    11844
    Join Date
    Dec 2009
    Posts
    170
    Phone
    Enter Current Phone Here
    #4
    Bump! Anyone know an answer? What file do I need to modify to change the text color of the Calendar widget?

    If there's a database that will guide me to find the right files that need to be modified for any given application/widget selection, could someone let me know about it?

    Thanks!
  6. Developer Relations
    tp7six's Avatar
    Member #
    61666
    Join Date
    Apr 2010
    Posts
    11,488
    Liked
    350 times
    Twitter
    DroidForums
    Phone
    Razr [V3m]
    Premium Member
    #5
    Quote Originally Posted by Boostjunky View Post
    What file do I need to modify to change the text color of the Calendar widget?!
    res/layout/agenda_appwidget.xml and res/layout-land/agenda_appwidget.xml

  7. Senior Droid
    Boostjunky's Avatar
    Member #
    11844
    Join Date
    Dec 2009
    Posts
    170
    Phone
    Enter Current Phone Here
    #6
    Quote Originally Posted by tparker76 View Post
    Quote Originally Posted by Boostjunky View Post
    What file do I need to modify to change the text color of the Calendar widget?!
    res/layout/agenda_appwidget.xml and res/layout-land/agenda_appwidget.xml
    Thank you kindly, sir!

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Wrong Date in Calendar Widget...
    By billyk in forum Android General Discussions
    Replies: 1
    Last Post: 12-28-2010, 08:22 PM
  2. Modified Android 2.2 Calendar
    By DarkNet in forum Android Tech Support
    Replies: 0
    Last Post: 07-06-2010, 07:03 PM
  3. Replies: 0
    Last Post: 06-30-2010, 06:50 PM
  4. DarkEdge Pure Calendar Widget Background
    By gabeevans88 in forum Droid Themes
    Replies: 9
    Last Post: 05-21-2010, 01:40 AM
  5. Droid background image size?
    By ST1NG3R in forum Android General Discussions
    Replies: 4
    Last Post: 12-23-2009, 12:04 AM

Search tags for this page

android calendar widget size

,

android calendar with black background

,

android change calendar widget size

,

android widget background size

,
change calendar size
,

change widget size android

,

droid calendar widget size

,
how to change android calendar background picture
,

how to change android calendar widget settings

,

how to change boarder color of calendar widget

,

how to change calendar widget appearance on android phone

,

how to change widget calendar background color on bionic

,

increaseandroidcalendarewidgetsize

,

modify android calendar widget

,

widget wrong size

Click on a term to search our site for related topics.
Find us on Google+