Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From my experience with the draw 9-patch tool there is an automatic 1px offset on each side of the image. Given this information if you were using just this one pixel offset your image was actually not being stretch the way you would imagine.</p> <p>This can be seen by the fact that when you used a 2px offset it worked perfect.</p> <p>Also the 9-patch images have a tendency of showing up in eclipse exactly how you would think... but then appearing different on the phone/emulator.</p> <p>Learning the 9-patch tool is def a great thing as it allows greater customization. Another tip, if you want to do something like replace any android 9-patch with your own alterations - then just copy the 9patch that exists in the SDK and alter it. For some reason 9patch images in the SDK have weird offsets. Doing this will guarantee you don't get weird responses from your 9-patches. An example of this - I outline an editText in red when bad input is given.</p> <p>The SDK images can be found in SDK->platforms->[plateform-you-want]->data->res-drawable-[you-choice]</p> <p>You can also look at the SDK 9-patch images to help understand how the 9-patch-tool works.</p> <p>Hope this give a little more insight.</p> <p>Here are some good links: <a href="http://developer.android.com/guide/developing/tools/draw9patch.html" rel="nofollow">http://developer.android.com/guide/developing/tools/draw9patch.html</a> http://android10.org/index.php/articlesother/279-draw-9-patch-tutorial <a href="http://jaanus.com/post/7878186745/how-does-androids-nine-patch-tool-work-from-a" rel="nofollow">http://jaanus.com/post/7878186745/how-does-androids-nine-patch-tool-work-from-a</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload