{"id":530,"date":"2018-04-05T23:29:39","date_gmt":"2018-04-05T14:29:39","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=530"},"modified":"2018-04-07T20:46:51","modified_gmt":"2018-04-07T11:46:51","slug":"%e3%80%90android%e3%80%91%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab-xml%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=530","title":{"rendered":"\u3010Android\u3011\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb(res\/layout\/\uff5e.xml)\u306e\u69cb\u6210\u8981\u7d20"},"content":{"rendered":"<p>Android\u30a2\u30d7\u30ea\u3067\u306f\u3001\u753b\u9762\u306fXML\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u3044\u3066\u4f5c\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u3001\u4e0b\u8a18\u306e\u300cres\/layout\u30d5\u30a9\u30eb\u30c0\u300d\u306e\u4e2d\u306b\u3042\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9a\u7fa9\u3059\u308bXML\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u8981\u7d20\u3092\u899a\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-522\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/04\/\u3088\u304f\u4f7f\u3046\u30d5\u30a1\u30a4\u30eb2.png\" alt=\"\" width=\"202\" height=\"92\" \/><\/p>\n<h2>\u5927\u304d\u304f\u5206\u985e\u3059\u308b\u3068\u2026<\/h2>\n<p>\u57fa\u672c\u7684\u306b\u306f\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u8a18\u8ff0\u306f\u4e0b\u8a18\u306e\u4e8c\u3064\u306b\u5206\u304b\u308c\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u6982\u5ff5<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30d3\u30e5\u30fc\u30b0\u30eb\u30fc\u30d7(\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u54c1)<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u306e\u914d\u7f6e\u3092\u6c7a\u3081\u308b\u5f79\u5272<\/td>\n<\/tr>\n<tr>\n<td>\u30d3\u30e5\u30fc(\u753b\u9762\u90e8\u54c1)<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u305d\u306e\u3082\u306e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f8b\u3048\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5f62\u3067\u300c\u30d3\u30e5\u30fc\u30b0\u30eb\u30fc\u30d7\u300d\u306e\u4e2d\u306b\u3001\u300c\u30d3\u30e5\u30fc\u300d\u3092\u914d\u7f6e\u3059\u308b\u3068\u3044\u3046\u5f62\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u306bXML\u5f62\u5f0f\u3067\u8a18\u8ff0\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n\r\n\r\n&lt;ConstraintLayout&gt;\u3000\u2190\u300c\u30d3\u30e5\u30fc\u300d\u3092\u76f8\u5bfe\u7684\u306b\u914d\u7f6e\u3067\u304d\u308b\u300c\u30d3\u30e5\u30fc\u30b0\u30eb\u30fc\u30d7\u300d\uff08\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u54c1\uff09\r\n\r\n  &lt;TextView\/&gt;\u3000\u2190\u6587\u5b57\u5217\u3092\u8868\u793a\u3067\u304d\u308b\u300c\u30d3\u30e5\u30fc\u300d\uff08\u753b\u9762\u90e8\u54c1\uff09\r\n\r\n&lt;\/ConstraintLayout&gt;\r\n\r\n\r\n<\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001XML\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u306f\u89e3\u8aac\u3057\u307e\u305b\u3093\u306e\u3067\u3001\u3082\u3057\u4e0d\u5b89\u3060\u3068\u3044\u3046\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u3044\u307e\u3057\u305f\u3089\u3001\u4ed6\u306e\u30b5\u30a4\u30c8\u3084\u66f8\u7c4d\u7b49\u3092\u3054\u53c2\u7167\u4e0b\u3055\u3044\u3002<\/p>\n<h2>\u30d3\u30e5\u30fc\u30b0\u30eb\u30fc\u30d7(\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u54c1)\u306e\u7a2e\u985e<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30bf\u30b0<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>LinerLayout(Vertical)<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u3092\u7e26\u4e00\u5217\u306b\u4e26\u3079\u3066\u914d\u7f6e\u304c\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>LinerLayout(Horizontal)<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u3092\u6a2a\u4e00\u5217\u306b\u4e26\u3079\u3066\u914d\u7f6e\u304c\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>TableLayout<\/td>\n<td>\u8868\u5f62\u5f0f\u3067\u753b\u9762\u90e8\u54c1\u3092\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>GridLayout<\/td>\n<td>\u30b0\u30ea\u30c3\u30c9\u5f62\u5f0f\u3067\u753b\u9762\u90e8\u54c1\u3092\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002TableLayout\u3068\u7570\u306a\u308a\u3001\u7e26\u65b9\u5411\u306e\u30bb\u30eb\u7d50\u5408\u304c\u53ef\u80fd\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>FrameLayout<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u3092\u91cd\u306d\u3066\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>RelativeLayout<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u3092\u76f8\u5bfe\u7684\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u304c\u3001<strong>Android Studio3.1\u73fe\u5728\u3067\u306f\u3001\u30c7\u30b6\u30a4\u30f3\u30a8\u30c7\u30a3\u30bf\u3067\u9078\u3079\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/strong><\/td>\n<\/tr>\n<tr>\n<td>ConstraintLayout<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u3092\u76f8\u5bfe\u7684\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002RelativeLayout\u3092\u6271\u3044\u3084\u3059\u304f\u3057\u305f\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3001<strong>Android Studio2.3\u304b\u3089\u306f\u3053\u308c\u304c\u76f8\u5bfe\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u57fa\u672c\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u3057\u3066\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3001\uff38\uff2d\uff2c\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u3044\u3058\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u30c7\u30b6\u30a4\u30f3\u30d3\u30e5\u30fc\u300d\u3067\u306e\u5177\u4f53\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u54c1\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3042\u308f\u305b\u3066\u3054\u89a7\u4e0b\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"rTNEAwSpZC\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=653\">\u3010Android\u3011Android Studio\u3067\u306e\u753b\u9762\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4f5c\u308a\u65b9~\u305d\u306e2\uff1a\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u54c1\u306e\u4f7f\u3044\u65b9~<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=653&#038;embed=true#?secret=rTNEAwSpZC\" data-secret=\"rTNEAwSpZC\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Android\u3011Android Studio\u3067\u306e\u753b\u9762\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4f5c\u308a\u65b9~\u305d\u306e2\uff1a\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u54c1\u306e\u4f7f\u3044\u65b9~&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>\u30d3\u30e5\u30fc(\u753b\u9762\u90e8\u54c1)\u306e\u7a2e\u985e<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30bf\u30b0<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>TextView<\/td>\n<td>\u6587\u5b57\u5217\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>EditText<\/td>\n<td>\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9<\/td>\n<\/tr>\n<tr>\n<td>Button<\/td>\n<td>\u30dc\u30bf\u30f3<\/td>\n<\/tr>\n<tr>\n<td>RadioButton<\/td>\n<td>\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3<\/td>\n<\/tr>\n<tr>\n<td>CheckBox<\/td>\n<td>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9<\/td>\n<\/tr>\n<tr>\n<td>Spinner<\/td>\n<td>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8<\/td>\n<\/tr>\n<tr>\n<td>ListView<\/td>\n<td>\u30ea\u30b9\u30c8\u8868\u793a<\/td>\n<\/tr>\n<tr>\n<td>SeekBar<\/td>\n<td>\u30b9\u30e9\u30a4\u30c0\u30fc<\/td>\n<\/tr>\n<tr>\n<td>RatingBar<\/td>\n<td>\u30ec\u30fc\u30c8\u5024\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Switch<\/td>\n<td>ON\/OFF\u3092\u8868\u73fe\u3067\u304d\u308b\u30b9\u30a4\u30c3\u30c1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u30d3\u30e5\u30fc(\u753b\u9762\u90e8\u54c1)\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u5c5e\u6027<\/h2>\n<p>\u3082\u3057\u3001Web\u958b\u767a\u3084\u3001Web\u5236\u4f5c\u3092\u3055\u308c\u3066\u3044\u3066\u3001CSS\u306e\u7d4c\u9a13\u304c\u3042\u308b\u65b9\u3067\u3042\u308c\u3070\u3001\u3059\u3050\u306b\u7406\u89e3\u3067\u304d\u308b\u9805\u76ee\u3070\u304b\u308a\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u5c5e\u6027\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>android:id<\/td>\n<td>\u00a0\u753b\u9762\u90e8\u54c1\u306eID\u3067\u3059\u3002Java\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u3001\u753b\u9762\u90e8\u54c1\u3092\u7279\u5b9a\u3059\u308b\u5834\u5408\u306b\u4f7f\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>android:text<\/td>\n<td>string.xml\u3068\u3001\u753b\u9762\u8868\u793a\u3092\u7d10\u4ed8\u3051\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>android:layout-width<\/td>\n<td>\u00a0\u753b\u9762\u90e8\u54c1\u306e\u5e45<\/td>\n<\/tr>\n<tr>\n<td>android:layout-height<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u306e\u9ad8\u3055<\/td>\n<\/tr>\n<tr>\n<td>android:layout_margin<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u306e\u5916\u5074\u306e\u4f59\u767d<\/td>\n<\/tr>\n<tr>\n<td>android:layout_padding<\/td>\n<td>\u753b\u9762\u90e8\u54c1\u306e\u5185\u5074\u306e\u4f59\u767d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"Android\u30a2\u30d7\u30ea\u3067\u306f\u3001\u753b\u9762\u306fXML\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u3044\u3066\u4f5c\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002 \u307e\u305a\u306f\u3001\u4e0b\u8a18\u306e\u300cres\/layout\u30d5\u30a9\u30eb\u30c0\u300d\u306e\u4e2d\u306b\u3042\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9a\u7fa9\u3059\u308bXML\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u8981\u7d20\u3092\u899a\u3048\u307e\u3057\u3087\u3046\u3002 \u5927\u304d\u304f\u5206\u985e\u3059\u308b\u3068\u2026  [&hellip;]","protected":false},"author":1,"featured_media":547,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/530"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=530"}],"version-history":[{"count":24,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":674,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/530\/revisions\/674"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/547"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}