{"id":120,"date":"2018-11-10T09:23:25","date_gmt":"2018-11-10T00:23:25","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=120"},"modified":"2018-11-17T23:43:22","modified_gmt":"2018-11-17T14:43:22","slug":"%e3%82%bf%e3%83%83%e3%83%97%e3%81%99%e3%82%8b%e3%81%a8%e7%9f%b3%e3%81%8c%e7%bd%ae%e3%81%91%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2018\/11\/10\/120\/","title":{"rendered":"\u30bf\u30c3\u30d7\u3059\u308b\u3068\u77f3\u304c\u7f6e\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f"},"content":{"rendered":"<p>\u77f3\u306f\u7f6e\u3051\u308b\u304c\u3001\u3053\u3063\u304b\u3089\u62e1\u5f35\u3057\u3066\u3044\u3051\u308b\u3093\u3060\u308d\u3046\u304b\u3002<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/q0zjvS8VENI\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2>\u77f3\u3092\u7f6e\u3051\u305f\u3002<\/h2>\n<h3>\u6700\u521d\u30bf\u30c3\u30d7\u3059\u3089\u3067\u304d\u306a\u304b\u3063\u305f<\/h3>\n<p>\u307e\u3041\u3001\u6587\u5b57\u3092\u8868\u793a\u3059\u308b\u7528\u3060\u3082\u3093\u306a\u3001\u305d\u308c\u3092\u30bf\u30c3\u30d7\u3057\u3066\u3069\u3046\u306e\u3053\u3046\u306e\u306a\u3093\u3066\u666e\u901a\u3084\u3089\u306a\u3044\u3093\u3060\u308d\u3046\u306a\u3001\u3068\u3061\u3087\u3063\u3068\u51f9\u3093\u3060\u3068\u3053\u3067\u8abf\u3079\u3066\u307f\u308b\u3068\u3002<\/p>\n<p>clickable\u3068\u3044\u3046\u8a2d\u5b9a\u304c\u3042\u308b\u307f\u305f\u3044\u3002<\/p>\n<pre>android:clickable=\"true\"<\/pre>\n<p>\u305d\u3093\u3067clickable\u3060\u3051\u3060\u3068<\/p>\n<blockquote><p>&#8216;clickable&#8217; attribute found, please also add &#8216;focusable&#8217; less&#8230; (Ctrl+F1)<br \/>\nA widget that is declared to be clickable but not declared to be focusable is not accessible via the keyboard. Please add the focusable attribute as well. Issue id: KeyboardInaccessibleWidget<\/p><\/blockquote>\n<p>\u3068\u8a00\u308f\u308c\u308b\u3002\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u64cd\u4f5c\u3057\u3066\u308b\u4eba\u304c\u56f0\u308b\u3088\u3063\u3066\u3053\u3068\u306a\u3093\u3060\u308d\u3046\u3051\u3069\u3001\u3053\u308c\u3092\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u64cd\u4f5c\u3059\u308b\u4eba\u306a\u3093\u3066\u3044\u308b\u304b\u306a\u2026\u3068\u601d\u3046\u3002\u3067\u3082\u307e\u3041\u3001\u305b\u3063\u304b\u304f\u8a00\u3063\u3066\u304f\u308c\u3066\u308b\u3093\u3067<\/p>\n<pre>android:focusable=\"true\"<\/pre>\n<p>\u3082\u5165\u308c\u3066\u307f\u305f\u3002\u3053\u308c\u3067\u30bf\u30c3\u30d7\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<h3>TextView\u306e\u7e26\u6a2a\u9577\u3092\u6307\u5b9a<\/h3>\n<p>\u6700\u521d\u96fb\u5353\u3068\u540c\u3058\u3088\u3046\u306b\u30ea\u30b9\u30ca\u4f5c\u3063\u3066\u30cf\u30f3\u30c9\u30e9\u66f8\u3044\u3066\u30fc\u3001\u3068\u3001\u3072\u3068\u30de\u30b9\u5206\u3060\u3051\u66f8\u3044\u3066\u307f\u305f\u3002<\/p>\n<p>\u305d\u3093\u3067\u30bf\u30c3\u30d7\u3059\u308b\u3068\u300c\u25cb\u300d\u304c\u8868\u793a\u3055\u308c\u305f\u3002\u3067\u3082\u5217\u306e\u5e45\u304c\u4f55\u6545\u304b\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\u304a\u305d\u3089\u304fTextView\u306eheight,width\u3092wrap_content\u306b\u3057\u3066\u305f\u306e\u304c\u539f\u56e0\u304b\u306a\u30fc\u3068\u3002<\/p>\n<pre>android:layout_width=\"10dp\"\r\nandroid:layout_height=\"10dp\"<\/pre>\n<p>\u3068\u300110dp\u306b\u3057\u3066\u307f\u305f\u3089\u5e45\u3082\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n<p>dp\u3067\u5927\u4e08\u592b\u306a\u306e\u304b\u306a\u3002\u305d\u3053\u3089\u3078\u3093\u304c\u3044\u307e\u3044\u3061\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<h3>\u30ea\u30b9\u30ca\u309264\u500b\u3082\u66f8\u304f\u306e\u3084\u3060\u306a<\/h3>\n<p>1\u500b\u3060\u3051\u306f\u66f8\u3044\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u309264\u500b\u3082\u7e70\u308a\u8fd4\u3059\u306e\u2026?\u3068\u601d\u3063\u305f\u3089\u5acc\u306b\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u306a\u306b\u304b\u65b9\u6cd5\u306f\u306a\u3044\u304b\u3068\u63a2\u3059\u3002<\/p>\n<p>xml\u306bonClick\u306e\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3044\u3044\u307f\u305f\u3044\u3002<\/p>\n<pre>android:onClick=\"PutStone\"<\/pre>\n<p>\u3068xml\u306b\u8ffd\u52a0\u3057\u3066\u3001Reversi.java\u306b<\/p>\n<pre>public void PutStone(View view) {\r\n    int id = view.getId();\r\n    switch(id) {\r\n        case R.id.textView00:\r\n\/\/\u7565\r\nTextView output = findViewById(id);\r\noutput.setText(\"\u25cb\");<\/pre>\n<p>\u3068\u3084\u3063\u3066\u307f\u305f\u3089\u3067\u304d\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bswitch\u306ecase\u306f\u3080\u3063\u3061\u3083\u9577\u3044\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/toolongswitch.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-121\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/toolongswitch-91x300.png\" alt=\"\" width=\"91\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/toolongswitch-91x300.png 91w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/toolongswitch-311x1024.png 311w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/toolongswitch.png 387w\" sizes=\"auto, (max-width: 91px) 100vw, 91px\" \/><\/a><\/p>\n<p>\u63a2\u3057\u305f\u3051\u3069\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u2026\u3002<\/p>\n<h3>\u53c2\u8003<\/h3>\n<p><a href=\"https:\/\/qiita.com\/nein37\/items\/0a92556a80c6c14503b2\">https:\/\/qiita.com\/nein37\/items\/0a92556a80c6c14503b2<\/a><\/p>\n<p><a href=\"https:\/\/sandragon.hatenablog.com\/entry\/2013\/07\/09\/014639\">https:\/\/sandragon.hatenablog.com\/entry\/2013\/07\/09\/014639<\/a><\/p>\n<p><a href=\"http:\/\/gucci1208.com\/android%E3%82%A2%E3%83%97%E3%83%AA%E3%81%AE%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%83%AA%E3%82%B9%E3%83%8A%E3%83%BC%E3%81%AE%E3%81%BE%E3%81%A8%E3%82%81-197.html\">http:\/\/gucci1208.com\/android%E3%82%A2%E3%83%97%E3%83%AA%E3%81%AE%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%83%AA%E3%82%B9%E3%83%8A%E3%83%BC%E3%81%AE%E3%81%BE%E3%81%A8%E3%82%81-197.html<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u77f3\u306f\u7f6e\u3051\u308b\u304c\u3001\u3053\u3063\u304b\u3089\u62e1\u5f35\u3057\u3066\u3044\u3051\u308b\u3093\u3060\u308d\u3046\u304b\u3002 \u77f3\u3092\u7f6e\u3051\u305f\u3002 \u6700\u521d\u30bf\u30c3\u30d7\u3059\u3089\u3067\u304d\u306a\u304b\u3063\u305f \u307e\u3041\u3001\u6587\u5b57\u3092\u8868\u793a\u3059\u308b\u7528\u3060\u3082\u3093\u306a\u3001\u305d\u308c\u3092\u30bf\u30c3\u30d7\u3057\u3066\u3069\u3046\u306e\u3053\u3046\u306e\u306a\u3093\u3066\u666e\u901a\u3084\u3089\u306a\u3044\u3093\u3060\u308d\u3046\u306a\u3001\u3068\u3061\u3087\u3063\u3068\u51f9\u3093\u3060\u3068\u3053\u3067\u8abf\u3079\u3066\u307f\u308b\u3068\u3002  &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2018\/11\/10\/120\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":121,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[3,6,4,13],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-android","tag-androidstudio","tag-4","tag-13"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":1,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions\/122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/121"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}