{"id":1036,"date":"2013-03-21T16:39:53","date_gmt":"2013-03-21T07:39:53","guid":{"rendered":"https:\/\/ecoop.net\/memo\/?p=1036"},"modified":"2026-08-10T14:47:15","modified_gmt":"2026-08-10T05:47:15","slug":"android-nine-patch-does-not-work","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/android-nine-patch-does-not-work.html","title":{"rendered":"\u3010Android\u30119-patch\u304c\u52d5\u304b\u306a\u3044\uff1f\u305d\u3093\u306a\u6642\u306b\u78ba\u8a8d\u3059\u308b\uff14\u3064\u306e\u30dd\u30a4\u30f3\u30c8"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2013\/03\/droid20130321.jpg\" alt=\"Droid20130321\" title=\"droid20130321.jpg\" border=\"0\" width=\"500\" height=\"200\" \/><br \/>\n\u305b\u3063\u304b\u304fAndroid\u30c7\u30b6\u30a4\u30f3\u306e\u305f\u3081\u306b\u9811\u5f35\u3063\u3066\u753b\u50cf\u306b\u30ca\u30a4\u30f3\u30d1\u30c3\u30c1(9pach)\u3092\u4f7f\u3063\u305f\u306e\u306b\u3001\u3061\u3083\u3093\u3068\u52b9\u304b\u306a\u3044\u3002<br \/>\n\u753b\u50cf\u306e\u5468\u308a\u306e\u9ed2\u3044\u70b9\u304c\u898b\u3048\u3066\u3057\u307e\u3063\u3066\u308b\u3002\u3055\u3041\u3069\u3046\u3057\u3088\u3046\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u306f\u9a12\u304c\u305a\u614c\u3066\u305a\uff14\u3064\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3002<!--more--><\/p>\n<h3>1. \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u306f&#8221;\u301c.9.png&#8221;\u3067\u7d42\u308f\u308b\u3053\u3068<\/h3>\n<p>9.png \u3067\u7d42\u308f\u308b\u30d5\u30a1\u30a4\u30eb\u304c 9 patch \u30d5\u30a1\u30a4\u30eb\u306e\u3057\u308b\u3057\u3067\u3059\u3002<\/p>\n<p>jpg \u306f\u3060\u3081\u3002png\u3067\u3059\u3002banner.9.png \u306e\u3088\u3046\u306b\u3001\u3061\u3083\u3093\u3068\u300c.9.png\u300d\u3068\u3044\u3046\u62e1\u5f35\u5b50\u3067\u7d42\u308f\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><\/p>\n<h3>2. \u753b\u50cf\u306e\u30b5\u30a4\u30ba\u306f\u5143\u753b\u50cf\u306e\u30b5\u30a4\u30ba\uff0b\uff12\u30d4\u30af\u30bb\u30eb<\/h3>\n<p>9patch \u306f\u5143\u306e\u753b\u50cf\u306e\u4e0a\u4e0b\u5de6\u53f31\u30d4\u30af\u30bb\u30eb\u305a\u3064\u306e\u7e01\u3092\u8a2d\u7528\u5b9a\u306b\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b63\u3057\u3044 9patch \u753b\u50cf\u306a\u3089\u7e01\u306b\u3042\u308b\u306e\u306f\u9ed2\u3060\u3051\u3067\u307b\u304b\u306f\u4f59\u767d\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3002<\/p>\n<p><\/p>\n<h3>3. \u753b\u50cf\u306e\u5468\u308a\u306f\u300c\u9ed2\u300d\u3060\u3051<\/h3>\n<p>\u56db\u9685\u306b\u63cf\u3044\u3066\u3044\u3044\u306e\u306f\u9ed2\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3044\u3046\u300c\u9ed2\u300d\u306f\u3001\u900f\u904e\u306a\u3057\u306e\u771f\u3063\u9ed2(#000000)\u306e\u3053\u3068\u3002<br \/>\n#000001\u3067\u3082\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u3001\u3044\u304f\u3089\u8584\u3044\u304b\u3089\u3068\u3044\u3063\u3066\u3082\u3001\u5c11\u3057\u3067\u3082\u4ed6\u306e\u8272\u304c\u9685\u306b\u3064\u3044\u3066\u3057\u307e\u3046\u3068\u8a8d\u8b58\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u30a2\u30f3\u30c1\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u306f\u6c17\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><\/p>\n<h3>4. \u9ed2\u3044\u70b9\u3001\u3061\u3083\u3093\u3068\u3064\u306a\u304c\u3063\u3066\u308b\uff1f<\/h3>\n<p>\u4e0a\u4e0b\u5de6\u53f3\u305d\u308c\u305e\u308c\u3067\u3001\u9ed2\u3044\u70b9\u304c\u3064\u306a\u304c\u3063\u3066\uff11\u672c\u7dda\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3068\u8a8d\u8b58\u3057\u3066\u304f\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>9patch\u30a8\u30c7\u30a3\u30bf(draw9patch \u30c4\u30fc\u30eb)\u3084\u3001Eclipse\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30a8\u30c7\u30a3\u30bf\u306a\u3093\u304b\u3067\u306f\u3061\u3083\u3093\u3068\u4f38\u3073\u7e2e\u307f\u3057\u3066\u898b\u3048\u308b\u3002<\/p>\n<p>\u3067\u3082\u5b9f\u6a5f\u3067\u898b\u308b\u3068\u3070\u3063\u3061\u308a\u9ed2\u3044\u30c9\u30c3\u30c8\u304c\u898b\u3048\u3066\u3057\u307e\u3046\u3002<br \/>\n\u305d\u3093\u306a\u5834\u5408\u306f\u3053\u308c\u304c\u539f\u56e0\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u306f\u610f\u5916\u3068\u306f\u307e\u308a\u3084\u3059\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u4ee5\u4e0a\u30019-patch \u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305b\u3063\u304b\u304fAndroid\u30c7\u30b6\u30a4\u30f3\u306e\u305f\u3081\u306b\u9811\u5f35\u3063\u3066\u753b\u50cf\u306b\u30ca\u30a4\u30f3\u30d1\u30c3\u30c1(9pach)\u3092\u4f7f\u3063\u305f\u306e\u306b\u3001\u3061\u3083\u3093\u3068\u52b9\u304b\u306a\u3044\u3002 \u753b\u50cf\u306e\u5468\u308a\u306e\u9ed2\u3044\u70b9\u304c\u898b\u3048\u3066\u3057\u307e\u3063\u3066\u308b\u3002\u3055\u3041\u3069\u3046\u3057\u3088\u3046\u3002 \u305d\u3093\u306a\u6642\u306f\u9a12\u304c\u305a\u614c\u3066\u305a\uff14\u3064\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3002<\/p>\n","protected":false},"author":1,"featured_media":1039,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[65,104],"class_list":["post-1036","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android-dev","tag-android","tag-design"],"jetpack_featured_media_url":"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2013\/03\/medium_587154142411.jpg","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=1036"}],"version-history":[{"count":1,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1036\/revisions"}],"predecessor-version":[{"id":1849,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1036\/revisions\/1849"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media\/1039"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}