{"id":24858,"date":"2021-06-23T09:00:46","date_gmt":"2021-06-23T00:00:46","guid":{"rendered":"https:\/\/mole-kingdom.com\/wpbl\/?p=24858"},"modified":"2021-06-13T17:04:33","modified_gmt":"2021-06-13T08:04:33","slug":"%e3%80%8ewelcome-to-android-basics-in-kotlin%e3%80%8f%e3%82%92%e3%82%84%e3%81%a3%e3%81%9f%e7%b5%82","status":"publish","type":"post","link":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/23\/24858.html","title":{"rendered":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(\u7d42)"},"content":{"rendered":"<h2>\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u9593\u306e\u5171\u6709 ViewModel<\/h2>\n<h3>4. \u5171\u6709 ViewModel \u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<h4>OrderViewModel \u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067<span class=\"os\">\u6599\u91d1<\/span>\u3068\u8a00\u3063\u3066\u308b\u306e\u306b\u3001<span class=\"os\">\u5024\u6bb5\u306b\u306f\u30bb\u30c3\u30bf\u30fc \u30e1\u30bd\u30c3\u30c9\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/span>\u3068\u3044\u3046\u306e\u306f\u3069\u3046\u3060\u308d\u3046\u304b\u3002\u610f\u5473\u306f\u901a\u3058\u308b\u3051\u3069\u3082\u3002<\/p>\n<h3>5. ViewModel \u3092\u4f7f\u7528\u3057\u3066 UI \u3092\u66f4\u65b0\u3059\u308b<\/h3>\n<h4>Kotlin \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30c7\u30ea\u30b2\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b<\/h4>\n<p><span class=\"os\">\u5909\u66f4\u53ef\u80fd\u306a\u5404\uff08var\uff09\u30d7\u30ed\u30d1\u30c6\u30a3\u306b<\/span>\u3063\u3066\u306a\u3093\u304b\u5909\u3060\u306a<br \/>\n<span class=\"os\">\u8aad\u307f\u53d6\u308a\u5c02\u7528\u30d7\u30ed\u30d1\u30c6\u30a3\uff08val\uff09<\/span>\u3068\u5bfe\u5fdc\u3055\u305b\u308b\u306a\u3089<br \/>\n<span class=\"ss\">\u5909\u66f4\u53ef\u80fd\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\uff08var\uff09\u306e\u305d\u308c\u305e\u308c\u306b<\/span>\u304b\u306a<br \/>\n\u539f\u6587\u304b\u3089\u3057\u3066<span class=\"os\">each mutable (var) property<\/span>\u3068<span class=\"os\">For a read-only property (val),<\/span>\u306a\u3093\u304b\u3044\uff57<br \/>\n\u3053\u308c\u306f\u539f\u6587\u304c\u60aa\u3044\uff57\u3000\u7ffb\u8a33AI\u306f\u60aa\u304f\u306a\u3044\uff57<\/p>\n<p><span class=\"os\">Kotlin \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u59d4\u4efb<\/span>\u306f<span class=\"os\">\u59d4\u4efb<\/span>\u3058\u3083\u306a\u304f\u3066<span class=\"ss\">\u79fb\u8b72<\/span>\u306b\u7d71\u4e00\u3057\u3066\u6b32\u3057\u3044\u3068\u3053\u308d\u3060\u306a\u3002\u3082\u3057\u304b\u3057\u3066\u610f\u56f3\u7684\u306b\u4f7f\u3044\u5206\u3051\u3066\u308b\u306e\u304b\u306a\uff1f<\/p>\n<p>activityViewModels\u3068\u3044\u3046\u304b\u5171\u6709ViewModel\u3063\u3066\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u89aa\u306bViewModel\u3092\u6301\u305f\u305b\u3066\u3001\u5b50\u3067\u3042\u308bFragment\u9054\u3067\u5171\u540c\u3067\u4f7f\u3044\u307e\u3057\u3087\u3046\u306d\u3063\u3066\u3044\u3046\u8a71\u3058\u3083\u306a\u3044\u306e(\u00b4\uff65\u03c9\uff65\uff40)\uff1f<\/p>\n<p>\u3082\u3057\u305d\u3046\u3060\u3063\u305f\u3089Fragment(activityViewModel : activityViewModels)\u307f\u305f\u3044\u306a\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u304bxml\u5074\u3067\u51e6\u7406\u51fa\u6765\u306a\u3044\u3093\u3060\u308d\u3046\u304b\uff1f activityViewModels\u3063\u3066\u30af\u30e9\u30b9\u3060\u304b\u3089\u5148\u982d\u5927\u6587\u5b57\u306b\u306a\u3089\u3093\u306e\u304b\u2026\u3082\u3057\u304b\u3057\u3066androidx\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3044\u3046\u304b\u30af\u30e9\u30b9\u306f\u307f\u3093\u306a\u305d\u3046\u306a\u306e\u304b\u306a\u2026\uff1f<\/p>\n<p>radiogroup\u306exml\u3067\u306e\u8a2d\u5b9a\u3063\u3066\u306a\u3093\u304b\u9762\u5012\u304f\u3055\u3044\u306a\u2026<br \/>\n\u3082\u3063\u3068\u7c21\u7565\u3067\u304d\u306a\u3044\u306e\u304b\u306a\uff1f<\/p>\n<p>xml\u81ea\u4f53\u306f\u305d\u306e\u307e\u307e\u3067\u3082\u3044\u3044\u3093\u3060\u3051\u3069scss?\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u7c21\u7565\u8868\u8a18\u3057\u305f\u3082\u306e\u3092\u81ea\u52d5\u30b8\u30a7\u30cd\u30ec\u30fc\u30c8\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306f\u306a\u3044\u306e\u3060\u308d\u3046\u304b<\/p>\n<hr width=\"90%\">\n<p>\u4ed5\u65b9\u304c\u306a\u3044\u3068\u3044\u3048\u3070\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3060\u304c\u3001\u3053\u306e\"E MMM d\"\u3060\u3068\u65e5\u672c\u8a9e\u30ed\u30b1\u30fc\u30eb\u3067\u306f\"\u571f 6\u6708 5\"\u307f\u305f\u3044\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff57<\/p>\n<p>\u305d\u3053\u307e\u3067\u306e\u6a5f\u80fd\u3082\u5fc5\u8981\u6027\u3082\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3001\u7ffb\u8a33AI\u306b\u65b0\u6a5f\u80fd\u3092\u7d44\u307f\u8fbc\u3080\u306a\u3089\u30ed\u30b1\u30fc\u30eb\u306b\u5408\u308f\u305b\u3066\u3053\u3046\u3044\u3063\u305f\u8868\u8a18(\u305d\u308c\u306b\u95a2\u308f\u308b\u30b3\u30fc\u30c9\u90e8\u5206)\u3092\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3063\u3066\u306e\u3082\u3042\u308a\u304b\u306a\u3002<\/p>\n<p>init\u30d6\u30ed\u30c3\u30af\u3063\u3066\u5909\u6570\u5ba3\u8a00\u306e\u524d\u306b\u7f6e\u3044\u3061\u3083\u3044\u3051\u306a\u3044\u3093\u3060\u306a\u2026( \uff1b\uff65\u00b4\u03c9\uff65\uff40)\uff7a\uff9e\uff78\uff98\uff6f<br \/>\n\u6b63\u78ba\u306b\u306f\u305d\u308c\u3089\u306e\u5909\u6570\u306e\u521d\u671f\u5316\u51e6\u7406\u304c\u5165\u3063\u3066\u308b\u3068\u3044\u3046\u304b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3057\u307e\u3046\u5834\u5408\u306f\u3002<br \/>\nOrderViewModel\u306e\u3068\u3053\u308d\u3067\u305d\u308c\u3092\u3084\u3063\u3066<br \/>\n<span class=\"os\">java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.lifecycle.MutableLiveData.setValue(java.lang.Object)' on a null object reference<\/span><br \/>\n\u3092\u98df\u3089\u3063\u305f(\uff89\u2200`)<\/p>\n<p>\u30a8\u30eb\u30d3\u30b9\u6f14\u7b97\u5b50\u306eElvis\u3063\u3066\u3069\u3046\u3044\u3046\u610f\u5473\u304b\u306a\u3041\u2026\u30a8\u30eb\u30d3\u30b9\u30fb\u30d7\u30ec\u30b9\u30ea\u30fc\u3068\u304b\u306f\u95a2\u4fc2\u306a\u3044\u3088\u306a\u3041\u2026<br \/>\n\u3068\u601d\u3063\u3066\u305f\u3089\u2026\u307e\u3058\u304b(\u30fb\u2200\u30fb)<\/p>\n<p><a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%82%A8%E3%83%AB%E3%83%93%E3%82%B9%E6%BC%94%E7%AE%97%E5%AD%90#%E5%90%8D%E7%A7%B0\" rel=\"noopener\" target=\"_blank\">\u30a8\u30eb\u30d3\u30b9\u6f14\u7b97\u5b50\u306f\u30a8\u30eb\u30d3\u30b9\u30fb\u30d7\u30ec\u30b9\u30ea\u30fc\u306e\u9854\u6587\u5b57 (emoticon) \u306b\u5f62\u304c\u4f3c\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u3053\u3046\u547c\u3070\u308c\u308b<\/a><\/p>\n<p>\u3063\u3066\u3001\u4e0b\u306b\u66f8\u3044\u3066\u3042\u3063\u305f(\uff89\u2200`)<\/p>\n<blockquote><p>\u8c46\u77e5\u8b58: elvis \u6f14\u7b97\u5b50\uff08?:\uff09\u306f\u3001\u30ed\u30c3\u30af\u30b9\u30bf\u30fc\u306e\u30a8\u30eb\u30d3\u30b9 \u30d7\u30ec\u30b9\u30ea\u30fc\u306b\u3061\u306a\u3093\u3067\u540d\u4ed8\u3051\u3089\u308c\u307e\u3057\u305f\u3002\u6a2a\u5411\u304d\u3067\u898b\u308b\u3068\u3001\u30af\u30a4\u30c3\u30d5 \u30b9\u30bf\u30a4\u30eb\u306e\u30a8\u30eb\u30d3\u30b9 \u30d7\u30ec\u30b9\u30ea\u30fc\u306e\u7d75\u6587\u5b57\u306b\u4f3c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u306a\u3093\u3067 android:text=\"@{@string\/subtotal_price(viewModel.price)}\"\u306e\u633f\u5165\u4f4d\u7f6e\u304c<br \/>\nfragment_flavor.xml\u3068\u6b8b\u308a\u306e2\u3064\u3068\u9055\u3046\u6307\u793a\u3092\u3059\u308b\u306e\u3060\u308d\u3046\u304b\u2026<\/p>\n<h3>8. \u6ce8\u6587\u306e\u8a73\u7d30\u304b\u3089\u4fa1\u683c\u3092\u8a08\u7b97\u3059\u308b<\/h3>\n<h4>LiveData \u5909\u63db\u3067\u4fa1\u683c\u306e\u8868\u793a\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p><span class=\"os\">LiveData<Double>.<\/span><\/p>\n<hr width=\"90%\">\n<h2>\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3068\u30d0\u30c3\u30af\u30b9\u30bf\u30c3\u30af<\/h2>\n<h3>4. \u30bf\u30b9\u30af\u3068\u30d0\u30c3\u30af\u30b9\u30bf\u30c3\u30af\u306b\u3064\u3044\u3066\u5b66\u3076<\/h3>\n<h4>Cupcake \u30a2\u30d7\u30ea\u306e\u30d0\u30c3\u30af\u30b9\u30bf\u30c3\u30af\u3092\u5909\u66f4\u3059\u308b<\/h4>\n<p>\u306a\u3093\u3067\u6b21\u306e\u884c\u3068\u304bh2\u306a\u3093\u3060\u308d\uff1f<\/p>\n<h4>\u30ad\u30e3\u30f3\u30bb\u30eb\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u30ea\u30b9\u30ca\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/h4>\n<p><span class=\"os\">sharedViewModel.resetOrder().<\/span><br \/>\n<span class=\"os\">R.id.action_flavorFragment_to_startFragment.<\/span><\/p>\n<h3>5. \u6ce8\u6587\u3092\u9001\u4fe1\u3059\u308b<\/h3>\n<p>sharedViewModel.priceString.value.toString()<br \/>\nprice\u3058\u3083\u306a\u3044\uff1f issue\u306e#8\u3068#9\u306b\u3042\u3063\u305f\u308f(\uff89\u2200`)<\/p>\n<p>\u304a\u304b\u3057\u3044\u2026\u4f55\u304b\u3092\u9593\u9055\u3048\u3066\u308b\u306e\u304b\u3001\u4e00\u3064\u6ce8\u6587\u3057\u3066\u3082\u8907\u6570\u5f62\u306e\u307e\u307e\u3060\u2026<br \/>\n\u307e\u3042\u3044\u3044\u3084(\uff89\u2200`)<\/p>\n<hr>\n<h2>\u30b3\u30eb\u30fc\u30c1\u30f3\u306e\u6982\u8981<\/h2>\n<h4>4. Kotlin \u306e\u30b3\u30eb\u30fc\u30c1\u30f3<\/h4>\n<p><span class=\"f_l\">\u4f55\u304c\u66f8\u3044\u3066\u3042\u308b\u304b\u3055\u3063\u307d\u308d\u308f\u3063\u304b\u306a\u3044(\u30fb\u2200\u30fb)<\/span><\/p>\n<hr>\n<p><a href=\"https:\/\/zenn.dev\/at_sushi_at\/books\/edf63219adfc31\/viewer\/001538\" rel=\"noopener\" target=\"_blank\">\u8a73\u89e3 Kotlin Coroutines<\/a>\u3068\u3044\u3046\u96fb\u5b50\u66f8\u7c4d\u304c\u7b2c\u4e8c\u7ae0\u307e\u3067\u7121\u6599\u516c\u958b\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u8aad\u3093\u3067\u4f55\u3068\u306a\u304f\u7406\u89e3\u3057\u3001\u3053\u3061\u3089\u306e\u65b9\u3082\u4f55\u3068\u306a\u304f\u8aad\u307f\u9032\u3081\u3089\u308c\u305f\u3002<\/p>\n<p>**********************************************<br \/>\n\"\u4e00\u65b9\u3067\u3001Kotlin Coroutines\u306f\u5358\u4e00\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u3057\u3066\u3044\u308bCoroutines\u304cdelay\u7b49\u306e\u4e2d\u65ad\u72b6\u614b\u306b\u306a\u308b\u3068\u3001\u4ed6\u306eCoroutines\u3092\u540c\u3058\u30b9\u30ec\u30c3\u30c9\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4e26\u884c\u306b\u52d5\u4f5c\u3057\u3001\u30e1\u30e2\u30ea\u3092\u52b9\u7387\u7684\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\"<\/p>\n<p>\u3044\u307e\u3044\u3061\u3088\u304f\u308f\u304b\u3089\u306a\u3044(\u00b4\uff65\u03c9\uff65\uff40)<br \/>\n\u30b3\u30eb\u30fc\u30c1\u30f3\uff11\u306e\u51e6\u7406\u2460\u3068\u3044\u3046\u304b\u4e2d\u65ad\u72b6\u614b\u306b\u306a\u3063\u305f\u30b9\u30ec\u30c3\u30c9\u306e\u4fdd\u6301\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306f\u4f55\u51e6\u306b\u884c\u304f\u306e(\u00b4\uff65\u03c9\uff65\uff40)\uff1f \u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u306a\u3089\u66f8\u304d\u8fbc\u307f\u3068\u8aad\u307f\u8fbc\u307f\u304c\u767a\u751f\u3057\u305d\u3046\u3060\u3051\u3069\u3001\u305d\u306e\u6642\u306f\u30e1\u30e2\u30ea\u3058\u3083\u306a\u304f\u3066\u3082\u3063\u3068\u9045\u3044\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u66f8\u304d\u8fbc\u3080\u2026\u308f\u3051\u306f\u306a\u3044\u3088\u306d\u2026\u2026<\/p>\n<p>\u591a\u5206\u30b9\u30ec\u30c3\u30c9\u3092\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u306a\u3044\u3093\u3060\u306a\u3001\u4ffa\u6c0f(\uff89\u2200`)<br \/>\n\u6614Java\u3092\u5f04\u3063\u3066\u3044\u305f\u6642\u306f\u7406\u89e3\u3057\u3066\u3044\u305f\u3068\u52d8\u9055\u3044\u3057\u3066\u305f\u3093\u3060\u306a<br \/>\nJava\u3068\u304b\u3060\u3068\u30b9\u30ec\u30c3\u30c9\u30d7\u30fc\u30eb\u3060\u304b\u3044\u3046\u3084\u3064\u3067\u518d\u5229\u7528\u3057\u3066\u306a\u304b\u3063\u305f\u3063\u3051\uff1f<\/p>\n<p>Chapter 02 Coroutines\u306e\u57fa\u790e\u3092\u5b66\u3076<br \/>\njcenter()\u3063\u3066\u3082\u3046\u5229\u7528\u4e0d\u53ef\u80fd\u3060\u3063\u305f\u3063\u3051\uff1f <span class=\"f_s\">\u2190 \u8aad\u307f\u8fbc\u307f\u306fOK\uff1f<\/span><\/p>\n<p>\"Coroutines\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306b\u306f\"<br \/>\n\u4f55\u304b\u610f\u56f3\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u306a\u3089\"Kotlin Coroutines\"\u4ee5\u5916\u3067\u306f\"Coroutine\"\u306e\u5358\u6570\u5f62\u3067\u8868\u8a18\u3057\u305f\u65b9\u304c\u826f\u3055\u305d\u3046\u306a\u3002\u306a\u3093\u304b\u4f75\u7528\u3057\u3066\u308b\u3051\u3069\u3001\u610f\u5473\u304c\u9055\u3046\u3093\u304b\u306a\uff1f<\/p>\n<p>\"Coroutines\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306b\u306f\u3001CoroutineScope\u304c\u5fc5\u8981\u3067\u3059\u3002CoroutineScope\u306f\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306frunBlocking\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002runBlocking\u306f\u65b0\u3057\u3044CoroutineScope\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u3067\u8d77\u52d5\u3055\u308c\u305f\u5168\u3066\u306eCoroutine\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u51e6\u7406\u3092\u30d6\u30ed\u30c3\u30af\u3057\u307e\u3059\u3002\"<\/p>\n<p>\u3053\u308c\u304c\u308f\u304b\u3063\u3066\u306a\u304f\u3066\u3001playground\u3067lauch\u3060\u3051\u3092\u4f7f\u3063\u3066\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u305f\u308f(\uff89\u2200`)<br \/>\nhttps:\/\/kotlin.github.io\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/run-blocking.html<\/p>\n<p>\"CoroutineScope\u306fCoroutineContext\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\"<\/p>\n<p>runBlocking\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3067EmptyCoroutineContext\u3092\u4f7f\u3046\u306e\u304b\u3002<\/p>\n<p>3.\u30b3\u30eb\u30fc\u30c1\u30f3\u306e\u8aac\u660e\u3068\u3057\u3066\u6b63\u3057\u3044\u3082\u306e\u306f\u6b21\u306e\u3046\u3061\u3069\u308c\u3067\u3059\u304b\u3002<br \/>\n\u30b3\u30eb\u30fc\u30c1\u30f3\u306f\u5b9f\u884c\u3055\u308c\u308b\u5834\u5408\u3068\u5b9f\u884c\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3002<br \/>\n**********************************************<\/p>\n<p>\u3082\u3046\u65e2\u306b\u8aad\u307f\u76f4\u3057\u3066\u3082\u3001\u4f55\u306e\u8a71\u3092\u3057\u3066\u3044\u308b\u306e\u304b\u304c\u5fae\u5999\u306b\u5206\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u308b(\uff89\u2200`)<br \/>\n\u307e\u305f\u3061\u3083\u3093\u3068\u52c9\u5f37\u3057\u306a\u3044\u3068\u306a\u3041\u2026<\/p>\n<hr>\n<h3>6. \u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3059\u308b<\/h3>\n<p><span class=\"os\">MarsApiService.<\/span><\/p>\n<h3>8. Moshi \u3067 JSON \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u89e3\u6790\u3059\u308b<\/h3>\n<p>[]\u3092\u89d2\u304b\u3063\u3053\u3068\u547c\u3093\u3067\u3044\u308b\u306a\u3089{}\u306f\u4e2d\u304b\u3063\u3053\u3067\u306f\u306a\u304f\u6ce2\u304b\u3063\u3053\u306e\u65b9\u304c\u826f\u3044\u3088\u3046\u306a\u3002<\/p>\n<h4>ViewModel \u3092\u66f4\u65b0\u3059\u308b<\/h4>\n<p><span class=\"os\">listResult.<\/span><\/p>\n<hr width=\"90%\">\n<h2>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u753b\u50cf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u8868\u793a\u3059\u308b<\/h2>\n<h3>3. \u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u753b\u50cf\u3092\u8868\u793a\u3059\u308b<\/h3>\n<h4>\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0 \u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b<\/h4>\n<p>\u8aac\u660e\u304c\u3088\u304f\u308f\u304b\u3089\u3093(\uff89\u2200`)<\/p>\n<p><span class=\"os\">\u753b\u50cf\u30d3\u30e5\u30fc<\/span><br \/>\nImageView\u306f\u8a33\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u3088\u3046\u306a<\/p>\n<p>\u4f55\u304b\u3092\u9593\u9055\u3048\u3066<\/p>\n<blockquote><p>java.lang.IllegalStateException: Required DataBindingComponent is null in class GridViewItemBindingImpl. A BindingAdapter in com.example.android.marsphotos.BindingAdapters is not static and requires an object to use, retrieved from the DataBindingComponent. If you don't use an inflation method taking a DataBindingComponent, use DataBindingUtil.setDefaultComponent or make all BindingAdapter methods static.<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c(\uff89\u2200`)<\/p>\n<p>\u8272\u3005\u3068\u3050\u3050\u3063\u305f\u308a\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u898b\u76f4\u3059\u3082\u308f\u304b\u3089\u305a\u3002<br \/>\nissue\u306b\u3082\u4e0a\u304c\u3063\u3066\u3044\u306a\u3044\u2026<br \/>\n<span class=\"f_ll\">\u3064\u307e\u308a\u306f\u4ffa\u6c0f\u306e\u30df\u30b9\u30aa\u30da\u306e\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3002<\/span><\/p>\n<p>\u518d\u3073\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u773a\u3081\u308b\u3002\u3088\u304f\u308f\u304b\u3089\u3093\u304cstatic\u3058\u3083\u306a\u3044\u306e\u304c\u554f\u984c\u3089\u3057\u3044\u2026<br \/>\nweb\u4e0a\u306e\u4ed6\u306eBindingAdapter\u306e\u30b5\u30f3\u30d7\u30eb\u3084\u3053\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u30d2\u30c3\u30c8\u3059\u308b\u30da\u30fc\u30b8\u3092\u773a\u3081\u3066\u3044\u308b\u3068\u7686object\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u52a0\u3048\u3066@JvmStatic\u307f\u305f\u3044\u306a\u306e\u3092\u304f\u3063\u3064\u3051\u3066\u56de\u907f\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u305d\u3093\u306a\u3053\u3068\u3057\u3066\u305f\u3063\u3051\u304b\u3068\u6539\u3081\u3066\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u773a\u3081\u308b\u2026<\/p>\n<p><span class=\"f_ll\">\u3093(\u00b4\uff65\u03c9\uff65\uff40)\uff1f<\/span><\/p>\n<p>\u4f55\u304b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6307\u793a\u8868\u73fe\u304c\u4eca\u307e\u3067\u306e\u6307\u793a\u8868\u73fe\u3068\u9055\u3046\u3053\u3068\u306b\u6c17\u3065\u304f\u3002<\/p>\n<p><span class=\"f_ll\">(\u3000\uff9f\u0414\uff9f)\uff8a\uff6f<\/span><\/p>\n<p>class BindingAdapters {} \u306f\u8981\u3089\u306a\u3044\u306e\u304b \u03a3(\uff9f\u2200\uff9f\uff1b)<br \/>\n\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u306f@BindingAdapter(\"imageUrl\")\u3092\u3064\u3051\u305fbindImage\u304c\u5b58\u5728\u3059\u308c\u3070\u826f\u304b\u3063\u305f\u3093\u3084\u30fd(`\u0414\u00b4)\uff89<\/p>\n<p>\u3053\u308c\u306f\u3061\u3087\u3063\u3068\u5f15\u3063\u304b\u304b\u3063\u305f\u308f(\uff89\u2200`)<\/p>\n<hr width=\"90%\">\n<h3>4. RecyclerView \u3067\u753b\u50cf\u306e\u30b0\u30ea\u30c3\u30c9\u3092\u8868\u793a\u3059\u308b<\/h3>\n<h4>RecyclerView \u3092\u8ffd\u52a0\u3059\u308b<\/h4>\n<p><span class=\"os\">1.layout\/gridview_item.xml \u3092\u958b\u304d\u307e\u3059\u3002viewModel \u30c7\u30fc\u30bf\u5909\u6570\u3092\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\n2.<data> \u30bf\u30b0\u5185\u306b\u3001MarsPhoto \u578b\u306e photo \u5909\u6570\uff08\u4ee5\u4e0b\u3092\u53c2\u7167\uff09\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>\u5916\u3067\u3082\u3053\u3046\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u306f\u3042\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u308c\u3069\u3082\u3001\u3053\u306e\u66f8\u304d\u65b9\u306f\u597d\u307e\u3057\u304f\u306a\u3044\u3088\u3046\u306a\u6c17\u304c\u3057\u3066\u304d\u305f\u3002<br \/>\n\u3053\u306e\u66f8\u304d\u65b9\u3092\u3059\u308b\u306a\u3089\u3001<span class=\"os\">viewModel \u30c7\u30fc\u30bf\u5909\u6570\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/span>\u306f\u4e00\u624b\u9806\u3068\u3057\u3066\u9805\u756a2\u3068\u3057\u3001\u305d\u306e\u6b21\u3092\u9805\u756a3\u306b\u3059\u3079\u304d\u3060\u308d\u3046\u3002<\/p>\n<p>\u3067\u3082\u3001\u305d\u3082\u305d\u3082\u3001\u3053\u3053\u3067\u306e\u624b\u9806\u306fgridview_item.xml\u5185\u306e&lt;data&gt;\u30bf\u30b0\u5185\u306e\u5909\u6570 viewModel\u3092photo\u306b\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u306a\u306e\u3060\u304b\u3089\u3001\u308f\u3056\u308f\u3056\u524a\u9664\u5f8c\u306b\u8ffd\u52a0\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3059\u308b\u610f\u5473\u306f\u306a\u3044\u3068\u3044\u3046\u304b\u5197\u9577\u3060\u3068\u601d\u3046\u3002<\/p>\n<p><span class=\"ss\">1.layout\/gridview_item.xml \u3092\u958b\u304d\u307e\u3059\u3002<br \/>\n2.\u30c7\u30fc\u30bf\u5909\u6570 viewModel \u3092 MarsPhoto \u578b\u306e photo\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<br \/>\n(\u30c7\u30fc\u30bf\u5909\u6570\u306f&lt;data&gt;\u30bf\u30b0\u5185\u306e&lt;variable&gt;\u8981\u7d20\u306e\u3053\u3068\u3067\u3059\u3002)<\/span><br \/>\n\u307f\u305f\u3044\u306a\u611f\u3058\u306e\u65b9\u304c\u3044\u3044\u3093\u3058\u3083\u306d(\u3000\u309c\u03c3\uff65\uff9f\uff09\uff8e\uff7c\uff9e\uff8e\uff7c\uff9e\uff1f<\/p>\n<p> <span class=\"os\">\u6ce8: \u3053\u306e\u6642\u70b9\u3067 RecyclerView Codelab \u3092\u5fa9\u7fd2\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/span><br \/>\n\u3068\u3044\u3046\u306a\u3089\u30ea\u30f3\u30af\u8cbc\u3063\u3068\u3044\u3066\u3088\u3068\u601d\u3063\u305f\uff57<\/p>\n<p>\u3053\u306e\u8fba\u3082\u4f59\u308a\u7406\u89e3\u305b\u305a\u306b\u3001\u5199\u7d4c\u3067\u3059\u3089\u306a\u3044\u3001\u8cbc\u7d4c\u3068\u3044\u3046\u304b\u5fa1\u672d\u8cbc\u308a\u7684\u4f5c\u696d\u306b\u306a\u308b(\uff89\u2200`)<\/p>\n<h3>4. RecyclerView \u3067\u753b\u50cf\u306e\u30b0\u30ea\u30c3\u30c9\u3092\u8868\u793a\u3059\u308b<\/h3>\n<h4>\u5199\u771f\u30b0\u30ea\u30c3\u30c9 \u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/h4>\n<h5>ListAdapter\uff08\u30ea\u30d5\u30ec\u30c3\u30b7\u30e3\u30fc\uff09<\/h5>\n<p><span class=\"os\">ListAdapter.<\/span><\/p>\n<p><span class=\"os\">\u5f15\u304d\u7d9a\u304d onCreateViewHolder() \u306e PhotoGridAdapter \u30af\u30e9\u30b9\u5185\u3067<\/span><br \/>\n\u9006\uff1f<\/p>\n<h4>\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0 \u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u8981\u7d20\u3092\u63a5\u7d9a\u3059\u308b<\/h4>\n<p><span class=\"os\">adapter.<\/span><\/p>\n<h3>5.RecyclerView \u306b\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<h4>Kotlin \u306e enum \u30af\u30e9\u30b9<\/h4>\n<p><span class=\"os\">} catch (e: Exception)<\/span><br \/>\n\"{\"\u629c\u3051<\/p>\n<h4>\u30b9\u30c6\u30fc\u30bf\u30b9 ImageView \u306e\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0 \u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/h4>\n<p><span class=\"os\">enum \u72b6\u614b\u306e\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001OverviewViewModel \u306b MarsApiStatus \u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/span><br \/>\n\u3053\u3046\u3044\u3046\u81ea\u52d5\u7ffb\u8a33\u90e8\u5206\u304c\u591a\u3044\u3051\u308c\u3069\u3001\u3053\u3046\u3044\u3046\u5730\u5473\u306b\u610f\u5473\u306e\u4f1d\u308f\u3089\u306a\u3044\u6587\u7ae0\u304c\u8133\u3092\u75b2\u5f0a\u3055\u305b\u3001\u7406\u89e3\u306e\u59a8\u3052\u306b\u306a\u308b\u3093\u3060\u308d\u3046\u306a\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u539f\u6587\u306f<span class=\"os\">You have set up the MarsApiStatus in the OverviewViewModel, using a set of enum states.<\/span>\u304b\u2026<br \/>\n\u76f4\u8a33\u306a\u3089\u3042\u306a\u304c\u3061\u9593\u9055\u3044\u3067\u306f\u306a\u3044\u306e\u304b\u2026<\/p>\n<p><span class=\"ss\">OverviewViewModel\u30af\u30e9\u30b9\u5185\u306b\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u72b6\u614b\u3092\u8868\u3059\u5217\u6319\u578b MarsApiStatus\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002(\u5217\u6319\u578b\u3068\u306f\u3001\u72b6\u614b\u3092\u8b58\u5225\u3055\u305b\u308b\u70ba\u306e\u5217\u6319\u5b50(\u5b9a\u6570)\u3092\u96c6\u3081\u305f\u3082\u306e\u3067\u3059\u3002)<\/span><br \/>\n\u3060\u3068\u3061\u3087\u3063\u3068\u9055\u3046\u304b\u2026<\/p>\n<p>\u539f\u6587\u306e\u30cb\u30e5\u30a2\u30f3\u30b9\u3092\u91cd\u8996\u3059\u308b\u306a\u3089<span class=\"ss\">\u72b6\u614b\u306e\u30bb\u30c3\u30c8\u3092\u8868\u3059\u5217\u6319\u578b(enum)\u3092\u4f7f\u7528\u3057\u3066\u3001\uff5e<\/span>\u304b\uff1f<\/p>\n<p>com.example.android.marsrealestate.overview.MarsApiStatus<br \/>\n\u3068\u3044\u3046import\u306f\u30d1\u30b9\u304c\u9055\u3046\uff1f<br \/>\n\u81ea\u52d5\u3067OverviewViewModel.MarsApiStatus?\u3068\u3044\u3046\u5f62\u306b\u306a\u308b\u306a\u2026<\/p>\n<p>import com.example.android.marsphotos.overview.MarsApiStatus<br \/>\n\u3092\u8ffd\u52a0\u3057\u3066\u3082\u4e0a\u624b\u304f\u884c\u304b\u306a\u3044\u2026<\/p>\n<p>enum\u306bpublic\u3068\u304b\u3064\u3051\u306a\u3044\u3068\u99c4\u76ee\u306a\u306e\u304b\u2026\uff1f<\/p>\n<p><span class=\"f_l\">\u3042\u3001OverviewViewModel.kt\u3067enum\u306e\u5ba3\u8a00\u3092OverviewViewModel\u30af\u30e9\u30b9\u5185\u3067\u3057\u3066\u305f\u308f(\uff89\u2200`)<\/span><br \/>\n\u524d\u3082\u4f3c\u305f\u3088\u3046\u306a\u30df\u30b9\u3092\u3057\u305f\u306a\uff57<br \/>\n\u65e9\u304fkotlin\u306e\u66f8\u304d\u65b9\u306b\u6163\u308c\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306a\u3002<\/p>\n<hr>\n<p>\u307e\u3042\u306a\u3093\u3084\u304b\u3093\u3084\u3067\u8272\u3005\u3068\u52c9\u5f37\u306b\u306a\u3063\u305f\u306e\u3060\u3051\u308c\u3069\u3082\u3001\u3059\u3050\u306b\u5fd8\u308c\u3061\u3083\u3046\u3057\u3001\u5fdc\u7528\u3067\u304d\u308b\u30ec\u30d9\u30eb\u3067\u306f\u306a\u3044\u306e\u3067\u5f15\u304d\u7d9a\u304d\u52c9\u5f37\u3057\u3066\u884c\u3053\u3046\u304b\u306a\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u306b\u3057\u3066codelab\u306e\u9045\u3055\u306f\u306a\u3093\u3060\u308d\u3046\u304b\u306a\u3002<br \/>\n\u3046\u3061\u306e\u30cd\u30c3\u30c8\u74b0\u5883\u3060\u3051\u306e\u554f\u984c\u306b\u3057\u3066\u306f\u9045\u3059\u304e\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u305f\u3002<\/p>\n<p>kotlin\u306f\u697d\u3067\u3044\u3044\u306a\u3068\u601d\u3046\u53cd\u9762\u3001\u3053\u3053\u304b\u3089\u5165\u3063\u3066\u884c\u3063\u305f\u4eba\u306fJava\u3068\u304b\u3067\u82e6\u52b4\u3057\u305f\u308a\u3059\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u308f\u306c\u3053\u3068\u3082\u306a\u3044\uff57<br \/>\n\u6614\u3088\u308a\u304b\u306f\u697d\u306b\u306a\u3063\u3066\u3044\u308b\u3093\u3060\u308d\u3046\u3051\u308c\u3069\u3082\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u9593\u306e\u5171\u6709 ViewModel 4. \u5171\u6709 ViewModel \u3092\u4f5c\u6210\u3059\u308b OrderViewModel \u3092\u4f5c\u6210\u3059\u308b \u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u6599\u91d1\u3068\u8a00\u3063\u3066\u308b\u306e\u306b\u3001\u5024\u6bb5\u306b\u306f\u30bb\u30c3\u30bf\u30fc \u30e1\u30bd\u30c3\u30c9\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\u3068\u3044\u3046\u306e...  <a class=\"excerpt-read-more\" href=\"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/23\/24858.html\" title=\"Read \u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(\u7d42)\">\u3082\u3063\u3068\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18,124,95],"tags":[],"class_list":["post-24858","post","type-post","status-publish","format-standard","hentry","category-android","category-kotlin","category-impressions"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2pLuj-6sW","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":22838,"url":"https:\/\/mole-kingdom.com\/wpbl\/2020\/12\/15\/22838.html","url_meta":{"origin":24858,"position":0},"title":"\u578b\u5224\u5b9a\u3068\u30ad\u30e3\u30b9\u30c8 : kotlin","author":"moleking","date":"2020\u5e7412\u670815\u65e5","format":false,"excerpt":"\u578b\u5224\u5b9a\u3068\u30ad\u30e3\u30b9\u30c8 is\u6f14\u7b97\u5b50\u3068!\u6f14\u7b97\u5b50\u306b\u3088\u308b\u578b\u5224\u5b9a \u203b\u3053\u308cis\u6f14\u7b97\u5b50\u3068\u5426\u5b9a\u306e!\u6f14\u7b97\u5b50\u306e\u7d44\u307f\u5408\u308f\u305b\u3060\u304b\u2026","rel":"","context":"kotlin","block_context":{"text":"kotlin","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/programming\/kotlin"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22847,"url":"https:\/\/mole-kingdom.com\/wpbl\/2020\/12\/21\/22847.html","url_meta":{"origin":24858,"position":1},"title":"\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3(\u62e1\u5f35) : kotlin","author":"moleking","date":"2020\u5e7412\u670821\u65e5","format":false,"excerpt":"\u203b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u5168\u3066\"Target platform: JVMRunning on kotlin v\u2026","rel":"","context":"kotlin","block_context":{"text":"kotlin","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/programming\/kotlin"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24934,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/07\/12\/24934.html","url_meta":{"origin":24858,"position":2},"title":"\u300eAndroid Kotlin Fundamentals\u300f\u3092\u3084\u3063\u305f(3)","author":"moleking","date":"2021\u5e747\u670812\u65e5","format":false,"excerpt":"Android Kotlin Fundamentals 02.4:Data binding basi\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24848,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/17\/24848.html","url_meta":{"origin":24858,"position":3},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(2)","author":"moleking","date":"2021\u5e746\u670817\u65e5","format":false,"excerpt":"Layouts Kotlin\u306e\u30af\u30e9\u30b9\u3068\u7d99\u627f 2. \u30af\u30e9\u30b9\u968e\u5c64\u3068\u306f \u4e00\u5fdc\u3001\"\u8c46\u985e\"\u306e\u3068\u3053\u308d\u306e\u30ea\u30f3\u30af\u304ch\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24757,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/14\/24757.html","url_meta":{"origin":24858,"position":4},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(1)","author":"moleking","date":"2021\u5e746\u670814\u65e5","format":false,"excerpt":"kotlin\u306e\u5b66\u7fd2\u3064\u3044\u3067\u306bAndroid\u306b\u3064\u3044\u3066\u306e\u5fa9\u7fd2\u3092\u3057\u3088\u3046\u3068Welcome to Android\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/06\/notcontainerror.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/06\/notcontainerror.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mole-kingdom.com\/wpbl\/wp-content\/uploads\/2021\/06\/notcontainerror.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":24927,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/07\/06\/24927.html","url_meta":{"origin":24858,"position":5},"title":"\u300eAndroid Kotlin Fundamentals\u300f\u3092\u3084\u3063\u305f(1)","author":"moleking","date":"2021\u5e747\u67086\u65e5","format":false,"excerpt":"Android Kotlin \u306e\u57fa\u790e\u306e\u305f\u3081\u306e Codelab \u3068\u8a00\u3044\u3064\u3064\u3001\u307e\u3060\u9014\u4e2d(\uff89\u2200`) \u307e\u3060L\u2026","rel":"","context":"Android","block_context":{"text":"Android","link":"https:\/\/mole-kingdom.com\/wpbl\/category\/os\/android"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/24858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/comments?post=24858"}],"version-history":[{"count":4,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/24858\/revisions"}],"predecessor-version":[{"id":24869,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/24858\/revisions\/24869"}],"wp:attachment":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/media?parent=24858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/categories?post=24858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/tags?post=24858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}