1. Prepare a logo file
2. on Mac, launch {android-sdk-macosx-dir}/tools/draw9patch application in Terminal.
3. First, left-click (create black dot) on the top and left edge to define stretchable area. Then left-click (create black dot) on right and bottom edge to define the boundary.
To erase black dot, hold shift button and right click on the black dot.
Image from: http://tekeye.biz/2012/android-9patch-files
4. Check the "show content" and "show patches" box to see the content area and stretchable area. i.e. patches. And check on the Preview on the right.
5. Save file when finished, rename as "default.9.png"
6. Put file in {ti-project-dir}/Resources/android/images/ and remove "default.png"
7. Clean project and rebuild.


沒有留言:
張貼留言