9patch help?

Discussion in 'Android Themes' started by CorCor67, Jun 5, 2010.

  1. CorCor67
    Offline

    CorCor67 Premium Member Premium Member Developer

    Joined:
    May 2, 2010
    Messages:
    438
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    Ive been trying to theme some widgets and am failing miserably. I used the original image from the genie widget...
    View attachment 9711
    re-themed it
    View attachment 9712
    opened it up with 9patch
    View attachment 9713
    set the stretchable areas and content areas
    View attachment 9714
    saved it, renamed to the original file and repacked it. installed on my droid...Ill post a screen shot of the outcome in a min

    The outcome...
    [​IMG]

    I tried with other sizes, I have got the widget the right size and somewhat the right shape, but I can't get the content within the box.

    Any idea what I'm doing wrong?
     
    Last edited: Jun 5, 2010
  2. pandroid
    Offline

    pandroid Theme Developer Theme Developer

    Joined:
    Dec 16, 2009
    Messages:
    850
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    try something like this. notice the single dot at the top and left

    black border exaggerated for easy viewing. should be 1px
    View attachment 9721
     
  3. CorCor67
    Offline

    CorCor67 Premium Member Premium Member Developer

    Joined:
    May 2, 2010
    Messages:
    438
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    Thanks for the reply pandroid! I tried with 1px for the patch and filled in the content...Its showing the marks with the widget now and still not sized right

    [​IMG]
     
  4. pandroid
    Offline

    pandroid Theme Developer Theme Developer

    Joined:
    Dec 16, 2009
    Messages:
    850
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    post your uncompiled .9 and ill take a look at it

    edit: oh wait.. you didnt compile it. youre going to need the Draw9PatchCompiler found here http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
     
  5. CorCor67
    Offline

    CorCor67 Premium Member Premium Member Developer

    Joined:
    May 2, 2010
    Messages:
    438
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    Awesome thanks! I thought I was missing something, have eclipse but don't have it set up to run android yet.

    Thanks!
     
Similar Threads
  1. mgarney26
    Replies:
    3
    Views:
    547
  2. JnnNicole
    Replies:
    1
    Views:
    521
  3. kees.5
    Replies:
    2
    Views:
    1,149
  4. ehreeahna29
    Replies:
    7
    Views:
    820
  5. jwdechert
    Replies:
    1
    Views:
    3,747
Loading...
Search tags for this page

camo backgrounds

,

tapout