{"id":6075,"date":"2017-11-28T10:00:39","date_gmt":"2017-11-28T01:00:39","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=6075"},"modified":"2017-11-27T19:12:11","modified_gmt":"2017-11-27T10:12:11","slug":"%e6%96%b0%e4%ba%ba%e7%a0%94%e4%bf%ae%e3%81%ae%e8%a8%98%e9%8c%b22","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/6075","title":{"rendered":"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93322"},"content":{"rendered":"<p>\u30a2\u30d7\u30ea\u306e\u97f3\u91cf\u8abf\u6574\u306a\u3069\u3067\u3088\u304f\u76ee\u306b\u3059\u308b\u30b9\u30e9\u30a4\u30c0\u30fc\u3067\u3059\u304c\u3001<br \/>\n \u8ab2\u984c\u3092\u9032\u3081\u308b\u4e2d\u3067\u30b9\u30e9\u30a4\u30c0\u30fc\u3092\u81ea\u4f5c\u3059\u308b\u5834\u9762\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3000\u3000\u3000\u3000\u3000\u3000<img loading=\"lazy\" class=\"alignnone size-medium wp-image-6079\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2017\/11\/slider-300x101.jpg\" alt=\"\" width=\"300\" height=\"101\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/11\/slider-300x101.jpg 300w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/11\/slider.jpg 1049w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><!--more--><\/p>\n<p>\u901a\u5e38\u306fAndroid Studio\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u6a19\u6e96\u306e\u30b9\u30e9\u30a4\u30c0\u30fc\u3092\u5229\u7528\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u304c\u3001<br \/>\n \u30b9\u30e9\u30a4\u30c0\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u3044\u3068\u304d\u3084\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u753b\u50cf\u3092\u4f7f\u3063\u305f\u30b9\u30e9\u30a4\u30c0\u30fc\u306a\u3069<br \/>\n \u81ea\u4f5c\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u5834\u9762\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n \u305d\u3046\u3044\u3063\u305f\u3053\u3068\u3082\u3042\u308a\u3001\u5b9f\u969b\u306b\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u5de6\u53f3\u306b\u52d5\u304f\u30b9\u30e9\u30a4\u30c0\u30fc\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n \u3044\u3064\u3082\u306f\u6a19\u6e96\u306e\u30b9\u30e9\u30a4\u30c0\u30fc\u3070\u304b\u308a\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3069\u3046\u3044\u3046\u4ed5\u7d44\u307f\u306a\u306e\u304b\u8003\u3048\u305f\u3053\u3068\u306f\u306a\u304b\u3063\u305f\u3067\u3059\u304c\u3001<br \/>\n \u7c21\u5358\u306b\u4f5c\u308c\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p>imageView.setOnTouchListener(new View.OnTouchListener() {<br \/>\n \u00a0 \u00a0 @Override<br \/>\n \u00a0 \u00a0 public boolean onTouch(View arg0, MotionEvent event) {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \/\/X\u5ea7\u6a19\u53d6\u5f97<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 newDx = (int) event.getRawX();<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 if (event.getAction() == MotionEvent.ACTION_DOWN) {<\/p>\n<p>\u3000\u3000\u00a0 \u00a0 \/\/\u30c9\u30ed\u30a4\u30c9\u541b\u306e\u753b\u50cf\u306b\u89e6\u3063\u305f\u3068\u304d<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 } else if (event.getAction() == MotionEvent.ACTION_MOVE) {<br \/>\n \u3000\u3000\u3000\/\/\u30c9\u30ed\u30a4\u30c9\u541b\u306e\u753b\u50cf\u3092\u30b9\u30ef\u30a4\u30d7\u3057\u305f\u3068\u304d<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/X\u5ea7\u6a19<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 int dx = imageView.getLeft() + (newDx &#8211; preDx);<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/Y\u5ea7\u6a19<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 int dy = 500;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/Min<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 if(dx &lt; 0){<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0dx = 0;<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/Max<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 if(dx &gt; 900){<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 dx = 900;<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u753b\u50cf\u8868\u793a\u4f4d\u7f6e\u66f4\u65b0<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 imageView.layout(dx, dy, dx + imageView.getWidth(), dy + imageView.getHeight());<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 preDx = newDx;<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 return true;<\/p>\n<p>\u00a0 \u00a0 }<br \/>\n });<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n \u30b9\u30e9\u30a4\u30c0\u30fc\u306f\u3053\u308c\u304c\u57fa\u790e\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8907\u96d1\u306a\u72ec\u81ea\u30b9\u30e9\u30a4\u30c0\u30fc\u306a\u3069\u81ea\u4f5c\u3059\u308b\u5834\u5408<br \/>\n \u3053\u308c\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u611f\u3058\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n \u305f\u3060\u3001\u901f\u304f\u30b9\u30ef\u30a4\u30d7\u3057\u305f\u5834\u5408\u3001\u53d6\u5f97\u5ea7\u6a19\u304c\u98db\u3093\u3067\u3057\u307e\u3046\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001<br \/>\n \u305d\u306e\u5bfe\u7b56\u3082\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1aTamamo<\/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\/6075\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/6075\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93322\" 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\/6075\" data-text=\"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93322\" 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\/6075\" 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\/6075\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30a2\u30d7\u30ea\u306e\u97f3\u91cf\u8abf\u6574\u306a\u3069\u3067\u3088\u304f\u76ee\u306b\u3059\u308b\u30b9\u30e9\u30a4\u30c0\u30fc\u3067\u3059\u304c\u3001 \u8ab2\u984c\u3092\u9032\u3081\u308b\u4e2d\u3067\u30b9\u30e9\u30a4\u30c0\u30fc\u3092\u81ea\u4f5c\u3059\u308b\u5834\u9762\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u3000\u3000\u3000\u3000\u3000\u3000<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6075"}],"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=6075"}],"version-history":[{"count":8,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6075\/revisions"}],"predecessor-version":[{"id":6084,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6075\/revisions\/6084"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=6075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=6075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=6075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}