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

Thread: 9patch help?

  1. Developer
    CorCor67's Avatar
    Member #
    64549
    Join Date
    May 2010
    Posts
    440
    Liked
    16 times
    Twitter
    _CorCor67
    Phone
    Droid DNA
    DroidForums.net Developer
    Premium Member
    #1

    9patch help?

    Ive been trying to theme some widgets and am failing miserably. I used the original image from the genie widget...
    9patch help?-1.png
    re-themed it
    9patch help?-2.png
    opened it up with 9patch
    9patch help?-3.png
    set the stretchable areas and content areas
    9patch help?-4.png
    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...


    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 by CorCor67; 06-05-2010 at 09:27 PM.
  2.  
     
     
     
  3. Master Droid
    pandroid's Avatar
    Member #
    16107
    Join Date
    Dec 2009
    Posts
    855
    Phone
    MotoDroid
    DroidForums.net Theme Developer
    #2
    try something like this. notice the single dot at the top and left

    black border exaggerated for easy viewing. should be 1px
    9patch help?-3.png

    The Germ Series, DroidMod & HelloDroid bootanimations
    kudolabs.net
    or 1NEk7HYFRHK9dUPmkApAkCY6kYE5YNfD8n
  4. Developer
    CorCor67's Avatar
    Member #
    64549
    Join Date
    May 2010
    Posts
    440
    Liked
    16 times
    Twitter
    _CorCor67
    Phone
    Droid DNA
    DroidForums.net Developer
    Premium Member
    #3
    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

  5. Master Droid
    pandroid's Avatar
    Member #
    16107
    Join Date
    Dec 2009
    Posts
    855
    Phone
    MotoDroid
    DroidForums.net Theme Developer
    #4
    Quote Originally Posted by CorCor67 View Post
    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
    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 [Release] xUltimate

    The Germ Series, DroidMod & HelloDroid bootanimations
    kudolabs.net
    or 1NEk7HYFRHK9dUPmkApAkCY6kYE5YNfD8n
  6. Developer
    CorCor67's Avatar
    Member #
    64549
    Join Date
    May 2010
    Posts
    440
    Liked
    16 times
    Twitter
    _CorCor67
    Phone
    Droid DNA
    DroidForums.net Developer
    Premium Member
    #5
    Awesome thanks! I thought I was missing something, have eclipse but don't have it set up to run android yet.

    Thanks!

Links

Posting Permissions

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

Search tags for this page

9 patch.png
,

9patch border

,

android 9 patch border

,
android nine patch border
,
android+ninepatch black
,

nine patch android

,

ninepatch android

,
ninepatch png
,

ninepatch top android

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