{"id":24848,"date":"2021-06-17T09:00:40","date_gmt":"2021-06-17T00:00:40","guid":{"rendered":"https:\/\/mole-kingdom.com\/wpbl\/?p=24848"},"modified":"2021-06-28T01:00:36","modified_gmt":"2021-06-27T16:00:36","slug":"%e3%80%8ewelcome-to-android-basics-in-kotlin%e3%80%8f%e3%82%92%e3%82%84%e3%81%a3%e3%81%9f2","status":"publish","type":"post","link":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/17\/24848.html","title":{"rendered":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(2)"},"content":{"rendered":"<h1>Layouts<\/h1>\n<h2>Kotlin\u306e\u30af\u30e9\u30b9\u3068\u7d99\u627f<\/h2>\n<h3>2. \u30af\u30e9\u30b9\u968e\u5c64\u3068\u306f<\/h3>\n<p>\u4e00\u5fdc\u3001\"\u8c46\u985e\"\u306e\u3068\u3053\u308d\u306e\u30ea\u30f3\u30af\u304chttps:\/\/en.wikipedia.org\/wiki\/Legume\u3060\u304b\u3089\u5206\u304b\u308b\u3051\u3069<br \/>\nLegume(\u30de\u30e1\u79d1\u690d\u7269)\u3063\u3066\u6ce8\u91c8\u3092\u5165\u308c\u3066\u304f\u308c\u306a\u3044\u3068Animal\u30af\u30e9\u30b9\u3092\u4f8b\u306b\u3057\u305f\u30d1\u30bf\u30fc\u30f3\u3088\u308a\u3082\u5206\u304b\u308a\u3065\u3089\u3044\u306a\uff57<\/p>\n<p><ruby>Lentil<rt>\u30ec\u30f3\u30ba\u8c46<\/rt><\/ruby>\u3082<ruby>Chickpea<rt>\u3072\u3088\u3053\u8c46<\/rt><\/ruby>\u3082\u308f\u304b\u3093\u306d\uff57\u3000\u4e16\u754c\u5171\u901a\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u4f8b\u3092\u4e0a\u3052\u308b\u3079\u304d\u3060\u306a\uff57<\/p>\n<h3>3. \u57fa\u672c\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>Dwelling \u4f4f\u5c45<\/p>\n<h3>5. \u968e\u5c64\u5185\u306e\u30af\u30e9\u30b9\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<h4>\u5e8a\u9762\u7a4d\u3092\u8a08\u7b97\u3059\u308b<\/h4>\n<pre class=\"brush: kotlin; title: ; notranslate\" title=\"\">\r\nopen class RoundHut(\r\n   val residents: Int,\r\n   val radius: Double) : Dwelling(residents) {\r\n<\/pre>\n<p>\u7a81\u7136 residents\u306bval\u3092\u3064\u3051\u3066\u308b\u304c\u4f55\u304b\u610f\u5473\u3042\u3093\u306e\u304b\u306a\uff1f <span class=\"f_s\">\u2190\u203b \u3053\u308c\u3001\u4f55\u306e\u8a71\u3092\u3057\u3066\u308b\u306e\u304b\u81ea\u5206\u3067\u601d\u8003\u3092\u9061\u308c\u306a\u3044(\uff89\u2200`)<\/span><\/p>\n<hr width=\"90%\">\n<h2>Android\u7528\u306eXML\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<h3>3. XML\u3092\u8aad\u3093\u3067\u7406\u89e3\u3059\u308b<\/h3>\n<blockquote><p>xmlns\u306fXML\u540d\u524d\u7a7a\u9593\u3092\u8868\u3057\u3001\u5404\u884c\u306f\u30b9\u30ad\u30fc\u30de\uff08\u3053\u308c\u3089\u306e\u5358\u8a9e\u306b\u95a2\u9023\u3059\u308b\u5c5e\u6027\u306e\u8a9e\u5f59\uff09\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001android:\u540d\u524d\u7a7a\u9593\u306f\u3001Android \u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5c5e\u6027\u3092\u793a\u3057\u307e\u3059\u3002\u30ec\u30a4\u30a2\u30a6\u30c8XML\u306e\u3059\u3079\u3066\u306e\u5c5e\u6027\u304c\u3001\u305d\u308c\u3089\u306e\u540d\u524d\u7a7a\u9593\u306e\u3044\u305a\u308c\u304b\u3067\u59cb\u307e\u308a\u307e\u3059\u3002<\/p><\/blockquote>\n<p>\u4f55\u8a00\u3063\u3066\u308b\u304b\u3088\u304f\u308f\u304b\u3089\u306a\u3044(\u00b4\uff65\u03c9\uff65\uff40)<br \/>\nxmlns\u3063\u3066\u306a\u3093\u3060\u3063\u3051\u2026<\/p>\n<p>xml<ruby>\u540d\u524d\u7a7a\u9593<rt>name space<\/rt><\/ruby>\u304b\u3002<br \/>\n\u3042\u3042\u3001\u5f8c\u306b\u7d9a\u304f\u5358\u8a9e\u304c\u6240\u5c5e\u3059\u308b\u5c5e\u6027\u3068\u3044\u3046\u3053\u3068\u304b\u3002<br \/>\n\u3088\u308a\u308f\u304b\u308a\u3084\u3059\u304f\u8a00\u3048\u3070\u3001\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u306b\u540c\u3058\u540d\u524d\u3092\u6301\u3064\u8981\u7d20\u304c\u8907\u6570\u5b58\u5728\u3057\u305f\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u540d\u524d\u885d\u7a81\u3092\u907f\u3051\u308b\u70ba\u306e\u4e00\u610f\u7684\u63a5\u982d\u8f9e\u3068\u3057\u3066\u306eURI\u3092\u540d\u524d\u7a7a\u9593\u3068\u3057\u3066\u6307\u5b9a\u3057\u3066\u308b\u3063\u3066\u611f\u3058\u304b\u3002<\/p>\n<p>xmlns\u3067\u6307\u5b9a\u3059\u308b\u540d\u524d\u7a7a\u9593\u540d\u3001android,app,tools\u306f\u901a\u4f8b\u7684\u3084\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30eb\u30fc\u30eb\u7684\u306a\u3082\u306e\u3067\u30b7\u30b9\u30c6\u30e0\u7684\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u304b\u306a\uff1f<br \/>\n<a href=\"https:\/\/blog.mokelab.com\/32\/xmlns.html\" rel=\"noopener\" target=\"_blank\">#32 Android\u306eXML\u306exmlns\u3068\u306f\uff1f<\/a><br \/>\n<a href=\"https:\/\/qiita.com\/Zuishin\/items\/3bd56117ab08ec2ec818\" rel=\"noopener\" target=\"_blank\">URL \u3068 URI \u306e\u9055\u3044<\/a><br \/>\n<a href=\"https:\/\/www.it-swarm-ja.com\/ja\/android\/%E3%81%AA%E3%81%9C%E3%81%93%E3%81%AE%E8%A1%8Cxmlns%EF%BC%9Aandroid-httpschemasandroidcomapkresandroid%E3%81%8C%E3%83%AC%E3%82%A4%E3%82%A2%E3%82%A6%E3%83%88xml%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%9C%80%E5%88%9D%E3%81%A7%E3%81%AA%E3%81%91%E3%82%8C%E3%81%B0%E3%81%AA%E3%82%89%E3%81%AA%E3%81%84%E3%81%AE%E3%81%A7%E3%81%99%E3%81%8B%EF%BC%9F\/940313455\/\" rel=\"noopener\" target=\"_blank\">\u306a\u305c\u3053\u306e\u884cxmlns\uff1aAndroid = \"http:\/\/schemas.Android.com\/apk\/res\/Android\"\u304c\u30ec\u30a4\u30a2\u30a6\u30c8xml\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u521d\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u304b\uff1f<\/a><\/p>\n<p>\u53b3\u5bc6\u306b\u8a00\u3046\u3068\u9055\u3046\u3051\u308c\u3069\u3082\u3001Java\u3067\u884c\u3063\u3066\u3044\u308bimport\u3092\u6700\u4e0a\u4f4d\u306e\u30b3\u30f3\u30c6\u30ca\u3067\u5ba3\u8a00\u3057\u3066\u308b\u307f\u305f\u3044\u306a\u3082\u3093\u3060\u306a\u3002<\/p>\n<p>android\u5c5e\u6027\u306e\u5024\u306f\u76e3\u8996\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u5909\u66f4\u3059\u308b\u3068<\/p>\n<blockquote><p>In Gradle projects, always use http:\/\/schemas.android.com\/apk\/res-auto for custom attributes<\/p>\n<p>Unexpected namespace URI bound to the \"android\" prefix, was http:\/\/schemas.android.com\/apk\/res\/and, expected http:\/\/schemas.android.com\/apk\/res\/android<\/p><\/blockquote>\n<p>\u307f\u305f\u3044\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002<\/p>\n<p>app\u5c5e\u6027\u306e<span class=\"os\">http:\/\/schemas.android.com\/apk\/res-auto<\/span>\u3092\u5909\u66f4\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306f\u306a\u3089\u306a\u3044\u304c\u3001app\u5c5e\u6027\u3067\u6307\u5b9a\u3057\u3066\u308b\u3082\u306e\u306f\u52d5\u304b\u306a\u3044\u306e\u3067constraint\u7b49\u304c\u6a5f\u80fd\u305b\u305a\u306b\u3001\u671f\u5f85\u3057\u305f\u8868\u793a\u306b\u306f\u306a\u3089\u306a\u3044\u306e\u304b\u3002\u771f\u3063\u767d\u3057\u308d\u3059\u3051\u3084\u3067(\u30fb\u2200\u30fb)<\/p>\n<p>tools\u5c5e\u6027\u306f<\/p>\n<blockquote><p>Android Studio \u3067\u306f tools \u540d\u524d\u7a7a\u9593\u3067\u3055\u307e\u3056\u307e\u306a XML \u5c5e\u6027\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u3092\u4f7f\u7528\u3057\u3066\u8a2d\u8a08\u6642\u306e\u6a5f\u80fd\uff08\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u306b\u8868\u793a\u3059\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u9078\u629e\u306a\u3069\uff09\u3084\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u52d5\u4f5c\uff08XML \u30ea\u30bd\u30fc\u30b9\u306b\u9069\u7528\u3059\u308b\u5727\u7e2e\u30e2\u30fc\u30c9\u306e\u9078\u629e\u306a\u3069\uff09\u3092\u6709\u52b9\u306b\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e XML \u5c5e\u6027\u306f\u30a2\u30d7\u30ea\u306e\u30d3\u30eb\u30c9\u6642\u306b\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066\u524a\u9664\u3055\u308c\u308b\u305f\u3081\u3001APK \u306e\u30b5\u30a4\u30ba\u3068\u5b9f\u884c\u6642\u306e\u52d5\u4f5c\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u3002<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u307e\u3055\u306b\u30c4\u30fc\u30eb\u7684\u306a\u611f\u3058\u2026<\/p>\n<p>\u3053\u306e\u8fba\u306fAndroid Studio\u3068\u3044\u3046\u304bGradle\u306e\u65b9\u3067\u6c7a\u3081\u3089\u308c\u3066\u308bURI\u3063\u3066\u3053\u3068\u306a\u306e\u304b\u306a\uff1f<br \/>\n\u5909\u66f4\u3067\u304d\u305f\u308a\u3059\u308b\u3093\u3060\u308d\u3046\u306a\u3001\u305d\u3046\u3067\u306a\u304b\u3063\u305f\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3068\u3057\u3066\u66f8\u304b\u305b\u308b\u5fc5\u8981\u306f\u306a\u3044\u3082\u3093\u306a\u3002\u3067\u3082\u306a\u3093\u3067\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30eb\u30fc\u30c8\u304b\u306a\u3093\u304b\u3067\u305d\u306e\u5ba3\u8a00\u3092\u3057\u305f\u3089\u3001\u4e0b\u4f4d\u3068\u8a00\u3048\u308b\u305d\u306e\u30a2\u30d7\u30ea\u5185\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u7b49\u3067\u5ba3\u8a00\u305b\u305a\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u306a\u3044\u3093\u3060\u308d\u3046\u304b\uff1f \u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u72ec\u7acb\u6027\u3068\u3044\u3046\u304b\u4ed6\u30a2\u30d7\u30ea\u3078\u306e\u6d41\u7528\u306e\u70ba\uff1f<\/p>\n<p>\u306a\u3093\u3067ConstraintLayout\u306e\u6642\u306b\"android:layout_width\"\u306b<br \/>\n\"parent\"\u3092\u6307\u5b9a\u3057\u305f\u3089\u3001\u5185\u90e8\u3067\u81ea\u52d5\u30670dp\u3001<br \/>\napp:layout_constraintEnd_toEndOf=\"parent\"<br \/>\napp:layout_constraintStart_toStartOf=\"parent\"<br \/>\n\u306b\u3059\u308b\u307f\u305f\u3044\u306b\u3057\u306a\u304b\u3063\u305f\u3093\u3060\u308d\u3046\uff1f<\/p>\n<hr width=\"90%\">\n<h2>\u30c1\u30c3\u30d7\u3092\u8a08\u7b97\u3059\u308b<\/h2>\n<h3>4. \u30c1\u30c3\u30d7\u3092\u8a08\u7b97\u3059\u308b<\/h3>\n<h4>\u30c1\u30c3\u30d7\u3092\u8a08\u7b97\u3057\u3066\u3001\u305d\u306e\u7aef\u6570\u3092\u5207\u308a\u4e0a\u3052\u308b<\/h4>\n<p>\"For a `Switch` element, you can check the `isChecked` attribute to see if the switch is \"on\".\"<br \/>\n\u306e\u90e8\u5206\u304c\u30b3\u30fc\u30c9\u307f\u305f\u3044\u306b\u8868\u793a\u3055\u308c\u3066\u308b\u306e\u306f\u306a\u305c\u306a\u3093\u3060\u305c(\u00b4\uff65\u03c9\uff65\uff40)\uff1f<\/p>\n<p><a href=\"https:\/\/www.k-cube.co.jp\/wakaba\/server\/func\/ceil.html\" rel=\"noopener\" target=\"_blank\">ceil()<\/a><\/p>\n<h3>8. \u6982\u8981<\/h3>\n<p><span class=\"os\">Null \u306f\u300c\u5024\u306a\u3057\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/span><br \/>\n<span class=\"os\">null \u306e\u5024\u3092\u51e6\u7406\u3067\u304d\u306a\u3044\u30b3\u30fc\u30c9\u3082\u3042\u308b\u305f\u3081\u3001\u4f7f\u7528\u3059\u308b\u3068\u304d\u306f\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><br \/>\n\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306e\u9055\u3044\u306f\u306a\u3093\u3060\u3063\u3051(\u00b4\uff65\u03c9\uff65\uff40)\uff1f<br \/>\n\u305f\u3060\u306e\u8a18\u8ff0\u30df\u30b9\uff1f<\/p>\n<hr width=\"90%\">\n<h2>\u30a2\u30d7\u30ea\u30a2\u30a4\u30b3\u30f3\u3092\u5909\u66f4\u3059\u308b<\/h2>\n<h3>1. \u6e96\u5099<\/h3>\n<blockquote><p>\u30e9\u30f3\u30c1\u30e3\u30fc\u3068\u306f\u3001Android \u30c7\u30d0\u30a4\u30b9\u3067\u30db\u30fc\u30e0\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u30a2\u30d7\u30ea\u306e\u8868\u793a\u3068\u6574\u7406\u3092\u884c\u3046\u5834\u5408\u3084\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3068\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306a\u3069\u306e\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u3053\u3068\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u4f55\u8a00\u3063\u3066\u3063\u308b\u3063\u304b\u3001\u308f\u304c\u3093\u306d(\u00b4\uff65\u03c9\uff65\uff40)<\/p>\n<h3>6. \u30a2\u30d7\u30ea\u30a2\u30a4\u30b3\u30f3\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<p>\"3.Android Studio \u306e Image Asset Studio \u30c4\u30fc\u30eb\u304c\u958b\u304d\u307e\u3059\u3002\"\u306e\u5f8c\u306e<br \/>\n4.5.6.\u306e\u30a4\u30f3\u30c6\u30f3\u30c8\u3068\u3044\u3046\u304b\u30c7\u30d7\u30b9\u304c\u9593\u9055\u3063\u3066\u3066\u3001\u6570\u5b57\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u3066\u308b\uff1f<\/p>\n<h3>\u30d9\u30af\u30bf\u30fc\u578b\u30c9\u30ed\u30fc\u30a2\u30d6\u30eb \u30d5\u30a1\u30a4\u30eb\u3092-v26\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b<\/h3>\n<p>\"Source set: main\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u305d\u306e\u307e\u307e\u6b8b\u3057\u307e\u3059\uff09\"<br \/>\n\u306a\u3093\u304b\"Source set\"\u306e\u6b04\u304c\u306a\u304b\u3063\u305f\u3002\u9078\u629e\u304c\u9055\u3046\u3068\u8868\u793a\u3055\u308c\u308b\uff1f<\/p>\n<p>\"4.ic_launcher_background.xml \u30d5\u30a1\u30a4\u30eb\u3092\u5de6\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001[drawable-v24] \u30d5\u30a9\u30eb\u30c0\u304b\u3089 [drawable-anydpi-v26] \u30d5\u30a9\u30eb\u30c0\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u307e\u3059\u3002\"<br \/>\n\u4f5c\u696d\u3092\u30df\u30b9\u3063\u305f\u306e\u304b\u3001[drawable-v24]\u3058\u3083\u306a\u304f\u3066[drawable]\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u304a\u3063\u305f\u308f<\/p>\n<hr width=\"90%\">\n<h2>\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc \u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<h3>3. \u30de\u30c6\u30ea\u30a2\u30eb \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h3>\n<h4>\u30c6\u30ad\u30b9\u30c8 \u30d5\u30a3\u30fc\u30eb\u30c9<\/h4>\n<p class=\"os\">\u307e\u3060 EditText \u3092\u524a\u9664\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u6b21\u306e\u5c5e\u6027\u3092 EditText \u304b\u3089\u5207\u308a\u53d6\u3063\u3066\u8cbc\u308a\u4ed8\u3051\u3001TextInputLayout \u306b\u914d\u7f6e\u3057\u307e\u3059: \u5236\u7d04\u3001\u30ea\u30bd\u30fc\u30b9 ID\uff08cost_of_service\uff09\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u5e45\uff08160dp\uff09\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u9ad8\u3055\uff08wrap_content\uff09\u3001\u30c1\u30c3\u30d7\u306e\u30c6\u30ad\u30b9\u30c8\uff08@string\/cost_of_service\uff09\u3002<\/p>\n<p>\u5236\u7d04\u3063\u3066\u8a00\u3046\u66f8\u304d\u65b9\u3060\u3068\u898b\u843d\u3068\u3059\u306a\u3002\u9577\u3044\u304b\u3089\u7701\u7565\u3057\u305f\u3093\u3060\u308d\u3046\u3051\u308c\u3069\u3082\u3002<br \/>\n\u3064\u30fc\u304b\u610f\u5473\u3092\u63b4\u307f\u3065\u3089\u3044\u3068\u601d\u3046\u3002\"layout_constraint\uff5e\"\u3068\u304b\u5404constraint\u3068\u304b\u5236\u7d04(constraint)\u3068\u8868\u8a18\u3057\u305f\u65b9\u304c\u3044\u3044\u306a\u3002<\/p>\n<p>5\u3000<span class=\"os\">TextInputEditText.<\/span>\u3068<span class=\"os\">cost_of_service_edit_text.<\/span>\u306e\".\"\u304c\u4f59\u8a08\u3002<\/p>\n<p>\u30b9\u30a4\u30c3\u30c1\u306e\u3068\u3053\u308d\u3067\u3082\".\"\u304c\u4f59\u8a08 <\/p>\n<p class=\"os\">com.google.android.material.switchmaterial.SwitchMaterial.<\/p>\n<h3>5. \u30b9\u30bf\u30a4\u30eb\u3068\u30c6\u30fc\u30de<\/h3>\n<p><span class=\"os\">android:minHeight,android:gravity,<\/span>\u304a\u3088\u3073 <span class=\"os\">android:textAppearance.<\/span>\u306b\",\"\u3068\".\"\u304c\u4f59\u8a08\u3002<\/p>\n<h4>\u30b9\u30bf\u30a4\u30eb\u3092\u30c6\u30fc\u30de\u306b\u8ffd\u52a0\u3059\u308b<\/h4>\n<p><span class=\"os\">View.<\/span>\u306b\".\"\u304c\u4f59\u8a08\u3002<\/p>\n<p>daytime\u3068night\u30e2\u30fc\u30c9\u7528\u306exml\u5185\u306e\u69cb\u6210\u8981\u7d20\u3092\u610f\u56f3\u7684\u306b\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3001themes.xml\u306b\u8ffd\u52a0\u3057\u305f\u3089\u3001night\u30e2\u30fc\u30c9\u7528\u306exml\u304c\u3042\u308b\u5834\u5408\u306f\u81ea\u52d5\u7684\u306bnight\u306e\u65b9\u306b\u3082\u8ffd\u52a0\u3055\u308c\u3066\u3082\u3044\u3044\u3088\u3046\u306a\u6c17\u304c\u3057\u306a\u3044\u3067\u3082\u306a\u3044\u3002daytime\u7528xml\u3068\u305d\u306enight\u5dee\u5206\u3068\u8a00\u3046\u5f62\u3067night\u7528xml\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3088\u3046\u306a\u3002<\/p>\n<h3>6. \u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u5411\u4e0a<\/h3>\n<h4>Enter \u30ad\u30fc\u3067\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u975e\u8868\u793a\u306b\u3059\u308b<\/h4>\n<p class=\"os\">\u4e0b\u8a18\u306e\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066MainActivity \u30af\u30e9\u30b9\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002MainActivity \u30af\u30e9\u30b9\u306e\u53f3\u4e2d\u304b\u3063\u3053\u306e\u76f4\u524d\u306b\u633f\u5165\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3081\u3063\u3061\u3083\u308f\u304b\u308a\u306b\u304f\u3044\uff57<\/p>\n<p class=\"ss\">\u4e0b\u8a18\u306e\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066MainActivity\u30af\u30e9\u30b9\u306e\u672b\u5c3e\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<p>\u304f\u3089\u3044\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u306a\u3002<\/p>\n<p><span class=\"os\">binding.costOfServiceEditText.<\/span><br \/>\n<span class=\"ss\">binding.calculateButton.setOnClickListener { calculateTip() }.<\/span><br \/>\n<span class=\"os\">view, keyCode, _ -> handleKeyEvent(view, keyCode).<\/span><br \/>\nTalkBack\u306f\u98db\u3070\u3057\u305f(\uff89\u2200`)<\/p>\n<hr width=\"90%\">\n<h2>Kotlin\u3067\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b<\/h2>\n<h3>4. \u30ea\u30b9\u30c8\u3092\u30eb\u30fc\u30d7\u3059\u308b<\/h3>\n<h4>while \u30eb\u30fc\u30d7<\/h4>\n<p>\u6ce8\u306e\u3068\u3053\u308d\u306e\"\u9664\u7b97\"\u306e\u3068\u3053\u308d\u304c\u30b9\u30e9\u30c3\u30b7\u30e5\u3058\u3083\u306a\u304f\u3066\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\u306b\u306a\u3063\u3066\u308b\uff1f<\/p>\n<h3>5. \u3059\u3079\u3066\u3092\u307e\u3068\u3081\u308b<\/h3>\n<p>\"by passing in \"Noodles\" as the name and the price of 10.\"<\/p>\n<p class=\"os\">name \u3068 price \u3092 10 \u3068\u3057\u3066 \"Noodles\" \u3092\u6e21\u3059\u3053\u3068\u3067<\/p>\n<p>\u306a\u3093\u304b\u7ffb\u8a33\u304c\u304a\u304b\u3057\u3044\u306a\u2026<\/p>\n<p class=\"ss\">name\u3068\u3057\u3066\u306e\"Noodles\"\u3068price\u306e10\u3092\u6e21\u3059\u3053\u3068\u3067<\/p>\n<p>\u8fba\u308a\u304b\u306a\uff1f<\/p>\n<h4>toString() \u30e1\u30bd\u30c3\u30c9\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b<\/h4>\n<p>When you print an object instance to the output<br \/>\n\u3053\u3053\u306f\u51fa\u529b\u3058\u3083\u306a\u304f\u3066\u9006\u306bprint\u306e\u307e\u307e\u306e\u65b9\u304c\u610f\u5473\u304c\u901a\u3058\u3084\u3059\u3044\u3093\u3058\u3083\u306a\u304b\u308d\u3046\u304b\u3002\u6216\u3044\u306f\u753b\u9762\u51fa\u529b\u3068\u304b\u3002\u4eca\u307e\u3067\u3082\u3042\u3063\u305f\u3051\u3069\u3001\u5358\u7d14\u306bprint\u3092\"\u51fa\u529b\"\u306b\u8a33\u3057\u3061\u3083\u3046\u3068\u51fa\u529b\u304c\u6301\u3064\u591a\u7fa9\u304c\u7406\u89e3\u306e\u59a8\u3052\u3092\u8a98\u767a\u3059\u308b\u3088\u306d(\u00b4\uff65\u03c9\uff65\uff40)<\/p>\n<p>\u306a\u3093\u3067Item\u30af\u30e9\u30b9\u3067toString\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u306a\u3044\u3093\u3084\u308d\u3002<\/p>\n<p>\u307f\u3093\u306a\u5927\u597d\u304d\u53ef\u5909\u9577\u5f15\u6570\u306fvararg\u3092\u4f7f\u3046\u306e\u304b\u3002 <span class=\"f_s\">\u2190 \u304a\u524d\u304c\u597d\u304d\u306a\u3060\u3051\u3084(\u30fb\u2200\u30fb)<\/span><\/p>\n<hr width=\"90%\">\n<h2>RecyclerView \u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ed\u30fc\u30eb\u53ef\u80fd\u306a\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b<\/h2>\n<h3>3.\u30c7\u30fc\u30bf\u306e\u30ea\u30b9\u30c8\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<h4>Affirmation \u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p>stringResourceId\u306f\u7d1b\u3089\u308f\u3057\u304f\u306a\u3044\u304b\u306a\uff1f<br \/>\n\u6587\u5b57\u5217\u30ea\u30bd\u30fc\u30b9\u306eId\u3068\u3044\u3046\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u304c\u3001\u3053\u306e\u547d\u540d\u306fstring\u578b\u306e\u30ea\u30bd\u30fc\u30b9Id\u3068\u8aa4\u89e3\u3055\u308c\u305d\u3046\u3002<br \/>\nAffirmationResourceId\u3067\u3044\u3044\u3093\u3058\u3083\uff1f<\/p>\n<h3>4. \u30a2\u30d7\u30ea\u306b RecyclerView \u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<h4>RecyclerView \u306e\u30a2\u30c0\u30d7\u30bf\u3092\u5b9f\u88c5\u3059\u308b<\/h4>\n<p><span class=\"os\">RecyclerView.<\/span><\/p>\n<h4>ViewHolder \u3092\u4f5c\u6210\u3059\u308b<\/h4>\n<p><span class=\"os\">ItemAdapter \u306e\u53f3\u6ce2\u304b\u3063\u3053\u306e\u524d\u3067<\/span><\/p>\n<p>\u3042\u308c\uff1f \u4eca\u307e\u3067\"\u4e2d\u304b\u3063\u3053\"\u3063\u3066\u8868\u8a18\u3057\u3066\u305f\u306e\u306b\u3001\u306a\u305c\u3053\u3053\u3067\u6025\u306b\"\u6ce2\u304b\u3063\u3053\"\u306b\uff57<\/p>\n<p><span class=\"os\">RecyclerViewViewHolder \u306e\u30b5\u30d6\u30af\u30e9\u30b9\u306b\u3057\u3066<\/span><br \/>\n\".\"\u629c\u3051<\/p>\n<p>\u3053\u306e\u8fba\u306eAdapter\u3068ViewHolder\u306e\u8a71\u304b\u3089\u3088\u304f\u308f\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u304f\u308b(\uff89\u2200`)<br \/>\n\u3053\u308c\u306f\u3042\u308b\u7a0b\u5ea6\u4f7f\u3044\u65b9\u306b\u6163\u308c\u308b\u304b\u3001\u30bd\u30fc\u30b9\u3092\u898b\u306a\u3044\u3068\u30d4\u30f3\u3068\u6765\u306a\u3044\u304b\u3082\uff57<\/p>\n<hr width=\"90%\">\n<h2>\u30ab\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u753b\u50cf\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<\/h2>\n<h3>2.\u30ea\u30b9\u30c8\u30a2\u30a4\u30c6\u30e0\u306b\u753b\u50cf\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<h4>ImageView\u3092\u30ea\u30b9\u30c8\u30a2\u30a4\u30c6\u30e0\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u8ffd\u52a0\u3059\u308b<\/h4>\n<p><span class=\"os\">LinearLayout,<\/span><br \/>\n<span class=\"os\">TextView,<\/span><br \/>\n<span class=\"os\">centerCrop.<\/span><\/p>\n<h4>ItemAdapter \u3092\u66f4\u65b0\u3057\u3066\u753b\u50cf\u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p><span class=\"os\">imageView.<\/span><\/p>\n<h3>3.UI\u306e\u6539\u826f<\/h3>\n<h4>\u30ab\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b<\/h4>\n<p><span class=\"os\">LinearLayout.<\/span><\/p>\n<p>\u30ea\u30bd\u30fc\u30b9 \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306a\u3093\u3066\u3082\u306e\u304c\u3042\u308b\u3093\u3060\u306d\u3047\u2026<\/p>\n<p>\u3042\u308c\u2026\uff1f<br \/>\n\u4eca\u307e\u3067\u30af\u30a4\u30ba\u306f\u305a\u3063\u3068\u82f1\u8a9e\u3060\u3063\u305f\u306e\u306b\u3001\u3053\u3053\u304b\u3089\u65e5\u672c\u8a9e\u306b\uff1f<br \/>\n\u5358\u7d14\u306b\u4eca\u307e\u3067\u3082\u65e5\u672c\u8a9e\u306b\u51fa\u6765\u305f\u306e\u304b\u306a\uff1f<\/p>\n<p>1\u554f\u76ee mutable\u3067\u3082\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u3082\u306a\u3044\u2026\u3060\u3068\u2026\u2026( \uff1b\uff65\u00b4\u03c9\uff65\uff40)\uff7a\uff9e\uff78\uff98\uff6f<br \/>\n7\u554f\u76ee\u3082num in numbers\u3058\u3083\u306a\u3044\u306e\u304b\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u304chttps:\/\/en.wikipedia.org\/wiki\/Legume\u3060\u304b\u3089\u5206\u304b\u308b\u3051\u3069 Legume(\u30de\u30e1\u79d1\u690d\u7269)\u3063\u3066\u6ce8...  <a class=\"excerpt-read-more\" href=\"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/17\/24848.html\" title=\"Read \u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(2)\">\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-24848","post","type-post","status-publish","format-standard","hentry","category-android","category-kotlin","category-impressions"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2pLuj-6sM","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":24927,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/07\/06\/24927.html","url_meta":{"origin":24848,"position":0},"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":[]},{"id":24853,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/20\/24853.html","url_meta":{"origin":24848,"position":1},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(3)","author":"moleking","date":"2021\u5e746\u670820\u65e5","format":false,"excerpt":"\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3 \u753b\u9762\u9593\u3092\u79fb\u52d5\u3059\u308b 2. \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u8a73\u7d30 \u30bb\u30c3\u30c8\u306e\u8a73\u7d30 All of the co\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":24848,"position":2},"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":24934,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/07\/12\/24934.html","url_meta":{"origin":24848,"position":3},"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":24858,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/06\/23\/24858.html","url_meta":{"origin":24848,"position":4},"title":"\u300eWelcome to Android Basics in Kotlin\u300f\u3092\u3084\u3063\u305f(\u7d42)","author":"moleking","date":"2021\u5e746\u670823\u65e5","format":false,"excerpt":"\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u9593\u306e\u5171\u6709 ViewModel 4. \u5171\u6709 ViewModel \u3092\u4f5c\u6210\u3059\u308b OrderVi\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":24932,"url":"https:\/\/mole-kingdom.com\/wpbl\/2021\/07\/09\/24932.html","url_meta":{"origin":24848,"position":5},"title":"\u300eAndroid Kotlin Fundamentals\u300f\u3092\u3084\u3063\u305f(2)","author":"moleking","date":"2021\u5e747\u67089\u65e5","format":false,"excerpt":"Android Kotlin Fundamentals: Add user interactivit\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\/24848","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=24848"}],"version-history":[{"count":6,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/24848\/revisions"}],"predecessor-version":[{"id":24914,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/posts\/24848\/revisions\/24914"}],"wp:attachment":[{"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/media?parent=24848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/categories?post=24848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mole-kingdom.com\/wpbl\/wp-json\/wp\/v2\/tags?post=24848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}