{"id":6024,"date":"2017-10-17T10:00:53","date_gmt":"2017-10-17T01:00:53","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=6024"},"modified":"2017-10-16T19:26:25","modified_gmt":"2017-10-16T10:26:25","slug":"android%e9%96%8b%e7%99%ba%e4%b8%ad%e3%81%ae%e5%b0%8f%e6%8a%80","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/6024","title":{"rendered":"Android\u958b\u767a\u4e2d\u306e\u5c0f\u6280"},"content":{"rendered":"<p>Android\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u4e2d\u3067\u3001\u4f7f\u3048\u308b\u3068\u601d\u3063\u305f\u5c0f\u6280\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n<p><!--more--><\/p>\n<h3>\u5c0f\u6280\u96c6<\/h3>\n<p><strong>\u30fbregion\u3068endregion\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u56f2\u3093\u3060\u90e8\u5206\u3092\u6298\u308a\u305f\u305f\u3080\u3053\u3068\u304c\u3067\u304d\u308b<\/strong><br \/>\n \u3000Android Studio\u3067\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u306f\u81ea\u52d5\u3067\u6298\u308a\u305f\u305f\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u304c\u3001\u4efb\u610f\u306e\u90e8\u5206\u3092\u307e\u3068\u3081\u3066\u6298\u308a\u305f\u305f\u307f\u305f\u3044\u6642\u306b\u4f7f\u7528\u3057\u307e\u3059<br \/>\n \u3000\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u6298\u308a\u305f\u305f\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px\"><code>\t\/\/region Lifecycle\r\n\t@Override\r\n\tprotected void onCreate(@Nullable Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}\r\n\r\n\t@Override\r\n\tprotected void onResume() {\r\n\t\tsuper.onResume();\r\n\t}\r\n\r\n\t@Override\r\n\tprotected void onStop() {\r\n\t\tsuper.onStop();\r\n\t}\r\n\r\n\t@Override\r\n\tprotected void onDestroy() {\r\n\t\tsuper.onDestroy();\r\n\t}\r\n\t\/\/endregion\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u30fb\u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u306bdp\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u7aef\u672b\u306e\u6587\u5b57\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u306b\u5f71\u97ff\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/strong><br \/>\n \u3000\u672c\u6765\u3067\u3042\u308c\u3070\u3001\u6587\u5b57\u30b5\u30a4\u30ba\u306fXXsp\u3068\u3059\u308b\u306e\u304c\u826f\u3044(\u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u306bdp\u3092\u4f7f\u7528\u3059\u308b\u3068\u8b66\u544a\u304c\u3067\u308b)\u306e\u3067\u3059\u304c\u3001\u7aef\u672b\u306e\u8a2d\u5b9a\u306b\u5de6\u53f3\u3055\u308c\u305f\u304f\u306a\u3044\u6642\u306b\u306f\u3001dp\u3092\u4f7f\u3046\u3053\u3068\u3067dp\u306b\u5fdc\u3058\u305f\u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u3067\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<br \/>\n \u3000\u3057\u304b\u3057\u3001Android7.0\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u8868\u793a\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3055\u308c\u308b\u3068\u3001dp\u81ea\u4f53\u304c\u5909\u66f4\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30c7\u30b6\u30a4\u30f3\u306e\u5d29\u308c\u304c\u767a\u751f\u3059\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059<\/p>\n<p><strong>\u30fbShift\u30922\u56de\u9023\u7d9a\u3067\u62bc\u3059\u3053\u3068\u3067\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u691c\u7d22\u304c\u3059\u3050\u3067\u304d\u308b<\/strong><br \/>\n \u3000\u3053\u308c\u304c\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3001\u898b\u305f\u3044\u3082\u306e\u304c\u3059\u3050\u306b\u63a2\u305b\u3066\u898b\u306b\u884c\u3051\u307e\u3059<br \/>\n \u3000\u305f\u3060\u3001\u30af\u30e9\u30b9\u540d\u3084\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u306e\u691c\u7d22\u306a\u306e\u3067\u3001\u63a2\u3057\u305f\u3044\u3082\u306e\u304c\u660e\u78ba\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/p>\n<p><strong>\u30fbAlt + Enter\u306e\u88dc\u5b8c\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/strong><br \/>\n \u3000Alt + Enter\u306e\u88dc\u5b8c\u306f\u69d8\u3005\u306a\u7b87\u6240\u3067\u4f7f\u3048\u307e\u3059<br \/>\n \u3000import\u3055\u308c\u3066\u3044\u306a\u3044\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001import\u6587\u3092\u66f8\u304b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u304c\u3001Alt + Enter\u3092\u62bc\u3059\u3053\u3068\u3067\u81ea\u52d5\u3067import\u6587\u304c\u88dc\u5b8c\u3055\u308c\u307e\u3059<br \/>\n \u3000\u30ad\u30e3\u30b9\u30c8\u304c\u5fc5\u8981\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001\u81ea\u52d5\u3067\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u88dc\u5b8c\u3057\u3066\u304f\u308c\u307e\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u79c1\u304c\u4f7f\u3048\u308b\u3068\u601d\u3063\u305f\u5c0f\u6280\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f<br \/>\n \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306f\u8abf\u3079\u305f\u6642\u306b\u4fbf\u5229\u3067\u3082\u3001\u3042\u307e\u308a\u4f7f\u3046\u3053\u3068\u304c\u306a\u3044\u3068\u30b3\u30de\u30f3\u30c9\u3092\u5fd8\u308c\u3066\u3001<br \/>\n \u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u4f55\u5ea6\u3082\u8abf\u3079\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u306a\u308b\u3079\u304f\u4f7f\u3063\u3066\u4f53\u3067\u899a\u3048\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u306d<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53:poppy<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6024\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/6024\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Android\u958b\u767a\u4e2d\u306e\u5c0f\u6280\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6024\" data-text=\"Android\u958b\u767a\u4e2d\u306e\u5c0f\u6280\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6024\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6024\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Android\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u4e2d\u3067\u3001\u4f7f\u3048\u308b\u3068\u601d\u3063\u305f\u5c0f\u6280\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,12],"tags":[56,79,124],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6024"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=6024"}],"version-history":[{"count":5,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6024\/revisions"}],"predecessor-version":[{"id":6031,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6024\/revisions\/6031"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=6024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=6024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=6024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}