{"id":31843,"date":"2019-10-31T21:43:27","date_gmt":"2019-10-31T18:43:27","guid":{"rendered":"https:\/\/prohoster.info\/blog\/sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet\/"},"modified":"2019-10-31T21:43:27","modified_gmt":"2019-10-31T18:43:27","slug":"sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet","status":"publish","type":"post","link":"https:\/\/prohoster.info\/bg\/blog\/news\/sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet","title":{"rendered":"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/faaae0beaf023f1c11bb9102312fe429.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u0420\u0430\u0437\u043a\u0430\u0437\u0432\u0430\u043c\u0435 \u043a\u0430\u043a \u0434\u0430 \u0441\u044a\u0437\u0434\u0430\u0434\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430 \u0438\u0437\u0447\u0438\u0441\u043b\u044f\u0432\u0430\u043d\u0435 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 \u0435\u0437\u0438\u043a\u0430 Kotlin. \u041f\u043e-\u0442\u043e\u0447\u043d\u043e, Kotlin 1.3.21, Android 4, Android Studio 3. \u0421\u0442\u0430\u0442\u0438\u044f\u0442\u0430 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u043c\u043d\u043e \u0437\u0430 \u0442\u0435\u0437\u0438, \u043a\u043e\u0438\u0442\u043e \u0437\u0430\u043f\u043e\u0447\u0432\u0430\u0442 \u0441\u0432\u043e\u044f \u043f\u044a\u0442 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0442\u0430 \u043d\u0430 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u0430\u043a\u0432\u043e \u0438 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438 \u0432\u044a\u0442\u0440\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e. <\/p>\n<p>\u0422\u043e\u0437\u0438 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u0449\u0435 \u0435 \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043a\u043e\u0433\u0430\u0442\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0441\u0435 \u0438\u0437\u0447\u0438\u0441\u043b\u0438 \u0441\u0443\u043c\u0430\u0442\u0430 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438\u0442\u0435 \u043e\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f, \u0440\u0435\u0448\u0438\u043b\u0430 \u0434\u0430 \u043f\u0440\u0435\u043a\u0430\u0440\u0430 \u0432\u0440\u0435\u043c\u0435 \u0432 \u0440\u0435\u0441\u0442\u043e\u0440\u0430\u043d\u0442 \u0438\u043b\u0438 \u043a\u0430\u0444\u0435. \u0420\u0430\u0437\u0431\u0438\u0440\u0430 \u0441\u0435, \u043d\u0435 \u0432\u0441\u0438\u0447\u043a\u0438 \u0438 \u043d\u0435 \u0432\u0438\u043d\u0430\u0433\u0438 \u043e\u0441\u0442\u0430\u0432\u044f\u0442 \u0437\u0430 \u0431\u0430\u043a\u0448\u0438\u0448, \u0442\u043e\u0432\u0430 \u0435 \u043f\u043e\u0432\u0435\u0447\u0435 \u0437\u0430\u043f\u0430\u0434\u043d\u0430 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f, \u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u044a\u0442 \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0442\u0430\u043a\u043e\u0432\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043f\u043e \u0432\u0441\u044f\u043a\u043e \u0432\u0440\u0435\u043c\u0435. <br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<blockquote><p><b>\u041d\u0430\u043f\u043e\u043c\u043d\u044f\u043c\u0435:<\/b> <i>\u0437\u0430 \u0432\u0441\u0438\u0447\u043a\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \"\u0425\u0430\u0431\u0440\u0430\" \u2014 \u043e\u0442\u0441\u0442\u044a\u043f\u043a\u0430 \u043e\u0442 10 000 \u0440\u0443\u0431\u043b\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0432\u0430\u043d\u0435 \u043d\u0430 \u0432\u0441\u044f\u043a\u0430\u043a\u044a\u0432 \u043a\u0443\u0440\u0441 \u043d\u0430 Skillbox \u0441 \u043f\u0440\u043e\u043c\u043e\u043a\u043e\u0434 \"\u0425\u0430\u0431\u0440\".<\/i><\/p>\n<p><b>Skillbox \u043f\u0440\u0435\u043f\u043e\u0440\u044a\u0447\u0432\u0430:<\/b> \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0443\u0440\u0441 <noindex><a rel=\"nofollow\" href=\"https:\/\/skillbox.ru\/agima\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=AGIMA&amp;utm_content=articles&amp;utm_term=kotlintips\">\u041c\u043e\u0431\u0438\u043b\u0435\u043d \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a PRO<\/a><\/noindex>.\n<\/p><\/blockquote>\n<p>\n\u0415\u0442\u043e \u043a\u0430\u043a \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0432 \u043f\u0440\u043e\u0446\u0435\u0441 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430:<\/p>\n<p><img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/fa375744a4ca5d07667ec494db38648b.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u0412\u0438\u0435 \u0432\u044a\u0432\u0435\u0436\u0434\u0430\u0442\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043e\u0442 \u043e\u0431\u0449\u0430\u0442\u0430 \u0441\u0443\u043c\u0430, \u0431\u0440\u043e\u044f \u043d\u0430 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u0446\u0438\u0442\u0435 \u0432 \u0441\u0440\u0435\u0449\u0430\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0432\u0430\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0430 \u2014 \u0441\u0443\u043c\u0430\u0442\u0430 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438\u0442\u0435, \u043a\u043e\u0438\u0442\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0435.<\/p>\n<h3>\u0417\u0430\u043f\u043e\u0447\u0432\u0430\u043c\u0435<\/h3>\n<p>\n\u041f\u044a\u043b\u043d\u0438\u044f\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043f\u043e \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043d\u0430\u0447\u0438\u043d:<br \/>\n<img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/e95058f09c4a6c151b6c5500ae549c0e.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n<img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/ac31c73ade24640078c76d71700de0b4.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u041f\u044a\u0440\u0432\u043e\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/lawreyios\/tipcalculator\/tree\/starter_project\">\u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><\/noindex>. \u041e\u0442\u0432\u0430\u0440\u044f\u043c\u0435 \u044f \u0432 Android Studio 3.0 \u0438\u043b\u0438 \u043f\u043e-\u043a\u044a\u0441\u043d\u043e. \u0418\u0437\u0433\u0440\u0430\u0436\u0434\u0430\u043c\u0435 \u0438 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043c\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0432\u0438\u0436\u0434\u0430\u043c\u0435 \u0431\u044f\u043b \u0435\u043a\u0440\u0430\u043d. \u0412\u0441\u0438\u0447\u043a\u043e \u0435 \u043d\u0430\u0440\u0435\u0434, \u0442\u0430\u043a\u0430 \u0438 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0431\u044a\u0434\u0435.<\/p>\n<p><img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/f4e3361ddc45d56794cc5c7c36d8b206.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n<img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/7828c10dcb3936eb095f5110094ea8bf.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0442\u0430 \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f \u0441\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u043d \u0440\u0435\u0434, \u0437\u0430 \u0434\u0430 \u0431\u044a\u0434\u0435 \u0432\u0441\u0438\u0447\u043a\u043e \u044f\u0441\u043d\u043e. \u0417\u0430 \u0434\u0430 \u0433\u043e \u043f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u0442\u0435, \u043e\u0442\u0432\u043e\u0440\u0435\u0442\u0435 View -&gt; Tool Windows -&gt; TODO.<\/p>\n<p>\u0418\u0437\u0443\u0447\u0430\u0432\u0430\u043c\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043e\u0442\u0432\u0430\u0440\u044f\u043c\u0435 colors.xml, \u0437\u0430 \u0434\u0430 \u043e\u0446\u0435\u043d\u0438\u043c \u0446\u0432\u0435\u0442\u043d\u0430\u0442\u0430 \u043f\u0430\u043b\u0438\u0442\u0440\u0430. \u0412 strings.xml \u0441\u0430 \u0440\u0430\u0437\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u0438 (\u043d\u0430\u0434\u043f\u0438\u0441\u0438), \u0430 \u0432 styles.xml \u0438\u043c\u0430 \u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0437\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432\u0435.<\/p>\n<h3>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0440\u0430\u0437\u0445\u043e\u0434\u0438<\/h3>\n<p>\n\u041e\u0442\u0432\u0430\u0440\u044f\u043c\u0435 activity_main.xml \u0438 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u0440\u0430\u0437\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u0434 \u0432 LinearLayout (#1):<\/p>\n<pre><code class=\"kotlin\"><\/code><\/pre>\n<p>\n\u0421\u0435\u0433\u0430 \u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0442\u0438\u043b\u0430 \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u0442\u0430 values \u0438\u043b\u0438 \u0434\u0430 \u043f\u043e\u0438\u0433\u0440\u0430\u0435\u043c \u0441 \u0446\u0432\u0435\u0442\u043e\u0432\u0435\u0442\u0435, \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439\u043a\u0438 <noindex><a rel=\"nofollow\" href=\"https:\/\/material.io\/tools\/color\/#!\/?view.left=0&amp;view.right=0&amp;primary.color=37474F\">\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 material.io<\/a><\/noindex>.<\/p>\n<p>\u0412 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u044a\u0442 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u0442\u0430\u043a\u0430:<\/p>\n<p><img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/ab47023cafd97fdbd171a9d9a1c35dd5.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i> \u041a\u0430\u043a\u0442\u043e \u0432\u0438\u0436\u0434\u0430\u0442\u0435, \u0440\u0430\u0437\u0445\u043e\u0434\u0438\u0442\u0435 \u0441\u0435 \u0438\u0437\u0447\u0438\u0441\u043b\u044f\u0432\u0430\u0442 \u0432\u044a\u0437 \u043e\u0441\u043d\u043e\u0432\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u0438\u0442\u0435, \u043a\u043e\u0438\u0442\u043e \u0432\u044a\u0432\u0435\u0436\u0434\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f\u0442. <\/i><\/p>\n<h3>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0441\u043c\u0435\u0442\u043a\u0438<\/h3>\n<p>\n\u0414\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u043a\u043e\u0434\u0430, \u0440\u0430\u0437\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043f\u043e-\u0434\u043e\u043b\u0443, \u0432 LinearLayout \u0441\u043b\u0435\u0434 Expense Section (#2):<\/p>\n<pre><code class=\"kotlin\">&lt;! \u2014 TODO #3: Build Bill Section \u2192\n \n\u2026<\/code><\/pre>\n<p>\n\u0417\u0430\u0442\u0432\u0430\u0440\u044f\u043c\u0435 LinearLayout \u0441\u043b\u0435\u0434 \u0441\u043f\u0438\u0441\u044a\u043a\u0430 \u0441 TODOs \u0438 \u0441\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u043d\u043e\u0432\u0438\u044f \u043a\u043e\u0434, \u0440\u0430\u0437\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432 LinearLayout (#3):<\/p>\n<pre><code class=\"kotlin\"><\/code><\/pre>\n<p>\n\u0422\u044a\u0439 \u043a\u0430\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0435 \u0438\u0437\u0447\u0438\u0441\u043b\u044f\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u043d\u0438\u0442\u0435 \u0440\u0430\u0437\u0445\u043e\u0434\u0438 \u0437\u0430 \u0432\u0441\u0435\u043a\u0438 \u043e\u0442 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u0446\u0438\u0442\u0435 \u0432 \u0440\u0435\u0441\u0442\u043e\u0440\u0430\u043d\u0442\u0441\u043a\u0438\u0442\u0435 \u0432\u0435\u0447\u0435\u0440\u0438, \u043e\u0441\u043d\u043e\u0432\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0430 costPerPersonTextView. <\/p>\n<p>EditText \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0430\u0432\u0430 \u0432\u044a\u0432\u0435\u0436\u0434\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0434\u0430\u043d\u043d\u0438 \u0434\u043e \u0435\u0434\u0438\u043d \u0440\u0435\u0434, \u0430 \u0437\u0430 \u0442\u043e\u0437\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u044a\u0440 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0431\u044a\u0434\u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043d \u0442\u0438\u043f NumberDecimal inputType.<\/p>\n<p><img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/7dc4e90d8188a08933e7a92b119472ee.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i> \u0421\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043c\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0437\u0430 \u0442\u0435\u0441\u0442 \u0438 \u0432\u044a\u0432\u0435\u0436\u0434\u0430\u043c\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0442\u0435 \u0437\u0430 \u043e\u0431\u0449\u0438\u0442\u0435 \u0449\u0435\u0442\u0438 (\u0440\u0430\u0437\u0431\u0438\u0442\u0438\u0442\u0435 \u0447\u0430\u0448\u0438, \u0447\u0438\u043d\u0438\u0438 \u0438 \u0442.\u043d.)<\/i><\/p>\n<h3>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0432\u0430\u043d\u0435 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u201e\u0425\u043e\u0440\u0430 \u0438 \u0431\u0430\u043a\u0448\u0438\u0448\u0438\u201c<\/h3>\n<p>\n\u0417\u0430 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u043f\u0446\u0438\u044f \u0437\u0430 \u0438\u0437\u0431\u043e\u0440 \u043d\u0430 \u043e\u0431\u0435\u043c\u0430 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438\u0442\u0435, \u043f\u043e\u0441\u0442\u0430\u0432\u044f\u043c\u0435 \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043a\u043e\u0434 \u0432 \u043d\u043e\u0432\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b LinearLayout (#4):<\/p>\n<pre><code class=\"kotlin\"><\/code><\/pre>\n<p>\n\u0422\u0430\u0437\u0438 \u0447\u0430\u0441\u0442 \u043e\u0442 \u043a\u043e\u0434\u0430 \u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0437\u0430 \u0442\u043e\u0447\u043d\u043e\u0442\u043e \u0438\u0437\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0443\u043c\u0430\u0442\u0430 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438\u0442\u0435. \u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u0442\u0430 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0435 20. ImageButtons \u0441\u0430 \u0441\u043d\u0430\u0431\u0434\u0435\u043d\u0438 \u0441 \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u043f\u0430\u043f\u043a\u0430\u0442\u0430 \u0441 \u043f\u0440\u0430\u0432\u0430 \u0437\u0430 \u0437\u0430\u043f\u0438\u0441.<\/p>\n<p>\u0418\u0437\u0446\u044f\u043b\u043e \u043a\u043e\u043f\u0438\u0440\u0430\u043c\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e (#5):<\/p>\n<ul>\n<li> ImageButton ids (subtractPeopleButton, addPeopleButton)<\/li>\n<li> TextView ids (numberOfPeopleStaticText, numberOfPeopleTextView)<\/li>\n<li> DefaultText \u0437\u0430 numberOfPeopleTextView (\u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0431\u044a\u0434\u0435 4).<\/li>\n<\/ul>\n<p>\n<img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/df99acfb33c3d27126db807b805c9c87.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u0421\u0435\u0433\u0430 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0438\u043c\u0430\u043c\u0435 \u0432\u044a\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u0443\u043c\u0430\u0442\u0430 \u043d\u0430 \u0441\u043c\u0435\u0442\u043a\u0430\u0442\u0430, \u0441\u044a\u0449\u043e \u0442\u0430\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044f\u0442 \u0431\u0443\u0442\u043e\u043d\u0438\u0442\u0435 \u201e\u0414\u043e\u0431\u0430\u0432\u0438\/\u0412\u0437\u0435\u043c\u0438\u201c, \u043d\u043e \u0432\u0441\u0435 \u043e\u0449\u0435 \u043d\u0438\u0449\u043e \u043d\u0435 \u0441\u0435 \u0441\u043b\u0443\u0447\u0432\u0430.<\/p>\n<h3>\u0414\u043e\u0431\u0430\u0432\u044f\u043d\u0435 \u043d\u0430 Views<\/h3>\n<p>\n\u041e\u0442\u0432\u0430\u0440\u044f\u043c\u0435 MainActivity.kt \u0438 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u0442\u043e\u0432\u0430 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0442\u0430 initViews (#6):<\/p>\n<pre><code class=\"kotlin\">private fun initViews() {\n        expensePerPersonTextView = findViewById(R.id.expensePerPersonTextView)\n        billEditText = findViewById(R.id.billEditText)\n \naddTipButton = findViewById(R.id.addTipButton)\n        tipTextView = findViewById(R.id.tipTextView)\n        subtractTipButton = findViewById(R.id.subtractTipButton)\n \naddPeopleButton = findViewById(R.id.addPeopleButton)\n        numberOfPeopleTextView = findViewById(R.id.numberOfPeopleTextView)\n        subtractPeopleButton = findViewById(R.id.subtractPeopleButton)\n \n\/\/TODO #8: \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0438 \u0441 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0435\u043c\n \n\/\/TODO #16: \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c EditText \u0441 TextWatcher\n \n}<\/code><\/pre>\n<p><\/p>\n<h3>\u0414\u043e\u0432\u044a\u0440\u0448\u0432\u0430\u043c\u0435 \u0431\u0443\u0442\u043e\u043d\u0438\u0442\u0435<\/h3>\n<p>\n\u0417\u0430 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u0434\u0434\u0440\u044a\u0436\u043a\u0430 \u043d\u0430 \u043a\u043b\u0438\u043a\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0431\u0443\u0442\u043e\u043d\u0438\u0442\u0435, \u0432\u043d\u0435\u0434\u0440\u044f\u0432\u0430\u043c\u0435 View.OnClickListener \u043d\u0430 \u043d\u0438\u0432\u043e \u043a\u043b\u0430\u0441 (#7):<\/p>\n<p>class MainActivity: AppCompatActivity(), View.OnClickListener {<\/p>\n<p>\u0421\u0435\u0433\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0430\u043c\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0438\u0437\u0432\u044a\u0440\u0448\u0438\u043c \u043e\u0449\u0435 \u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (#8):<\/p>\n<pre><code class=\"kotlin\">override fun onClick(v: View?) {\n        when (v?.id) {\n            R.id.addTipButton -&gt; incrementTip()\n            R.id.subtractTipButton -&gt; decrementTip()\n            R.id.addPeopleButton -&gt; incrementPeople()\n            R.id.subtractPeopleButton -&gt; decrementPeople()\n        }\n    }<\/code><\/pre>\n<p>\n\u0429\u043e \u0441\u0435 \u043e\u0442\u043d\u0430\u0441\u044f \u0434\u043e \u0431\u0443\u0442\u043e\u043d\u0438\u0442\u0435 \u0438 \u043f\u0440\u0435\u0432\u043a\u043b\u044e\u0447\u0432\u0430\u0442\u0435\u043b\u0438\u0442\u0435, \u0432 Kotlin \u0432\u0441\u0438\u0447\u043a\u043e \u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0438\u0440\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0431\u0440\u0435! \u0414\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043a\u043e\u0434 \u0432\u044a\u0432 \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0430\u0432\u0430\u043d\u0435 \u0438 \u043d\u0430\u043c\u0430\u043b\u044f\u0432\u0430\u043d\u0435<br \/>\n (#9\u200a\u2013#12):<\/p>\n<pre><code class=\"kotlin\">private fun incrementTip() {\n        if (tipPercent != MAX_TIP) {\n            tipPercent += TIP_INCREMENT_PERCENT\n            tipTextView.text = String.format(\"%d%%\", tipPercent)\n        }\n    }\n \nprivate fun decrementTip() {\n        if (tipPercent != MIN_TIP) {\n            tipPercent -= TIP_INCREMENT_PERCENT\n            tipTextView.text = String.format(\"%d%%\", tipPercent)\n        }\n    }\n \nprivate fun incrementPeople() {\n        if (numberOfPeople != MAX_PEOPLE) {\n            numberOfPeople += PEOPLE_INCREMENT_VALUE\n            numberOfPeopleTextView.text = numberOfPeople.toString()\n        }\n    }\n \nprivate fun decrementPeople() {\n        if (numberOfPeople != MIN_PEOPLE) {\n            numberOfPeople -= PEOPLE_INCREMENT_VALUE\n            numberOfPeopleTextView.text = numberOfPeople.toString()\n        }\n    }<\/code><\/pre>\n<p>\n\u0422\u0443\u043a \u043a\u043e\u0434\u044a\u0442 \u0437\u0430\u0449\u0438\u0442\u0430\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u0442\u0435 \u0437\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0430\u0432\u0430\u043d\u0435 \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u043d\u0438\u0442\u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0438 (MAX_TIP &amp; MAX_PEOPLE). \u041e\u0441\u0432\u0435\u043d \u0442\u043e\u0432\u0430, \u043a\u043e\u0434\u044a\u0442 \u0437\u0430\u0449\u0438\u0442\u0430\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u0442\u0435 \u0437\u0430 \u043d\u0430\u043c\u0430\u043b\u044f\u0432\u0430\u043d\u0435 \u0441 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430 (MIN_TIP &amp; MIN_PEOPLE).<\/p>\n<p>\u0421\u0435\u0433\u0430 \u0441\u0432\u044a\u0440\u0437\u0432\u0430\u043c\u0435 \u0431\u0443\u0442\u043e\u043d\u0438\u0442\u0435 \u0441\u044a\u0441 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0438\u0442\u0435 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0442\u0430 initViews (#13):<\/p>\n<pre><code class=\"kotlin\">private fun initViews() {\n \n...\n \naddTipButton.setOnClickListener(this)\n        subtractTipButton.setOnClickListener(this)\n \naddPeopleButton.setOnClickListener(this)\n        subtractPeopleButton.setOnClickListener(this)\n \n\/\/TODO #15: \u0421\u0432\u044a\u0440\u0437\u0432\u0430\u043c\u0435 EditText \u0441 TextWatcher\n}<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/73e7477d4b02548aad7c2112c6be5d80.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u0421\u0435\u0433\u0430 \u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u043e\u0431\u0449\u0438 \u0440\u0430\u0437\u0445\u043e\u0434\u0438, \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u0438 \u0431\u0440\u043e\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u0446\u0438 \u0432 \u0441\u0440\u0435\u0449\u0430\u0442\u0430. \u0410 \u0441\u0435\u0433\u0430 \u043d\u0430\u0439-\u0432\u0430\u0436\u043d\u043e\u0442\u043e...<\/p>\n<h3>\u0420\u0430\u0437\u0434\u0435\u043b \u0437\u0430 \u0438\u0437\u0447\u0438\u0441\u043b\u044f\u0432\u0430\u043d\u0435 \u043d\u0430 \u0440\u0430\u0437\u0445\u043e\u0434\u0438\u0442\u0435<\/h3>\n<p>\u0422\u043e\u0437\u0438 \u043a\u043e\u0434 \u0438\u0437\u0447\u0438\u0441\u043b\u044f\u0432\u0430 \u0440\u0430\u0437\u0445\u043e\u0434\u0438\u0442\u0435 (#14):<\/p>\n<pre><code class=\"kotlin\">private fun calculateExpense() {\n \nval totalBill = billEditText.text.toString().toDouble()\n \nval totalExpense = ((HUNDRED_PERCENT + tipPercent) \/ HUNDRED_PERCENT) * totalBill\n        val individualExpense = totalExpense \/ numberOfPeople\n \nexpensePerPersonTextView.text = String.format(\"$%.2f\", individualExpense)\n \n}<\/code><\/pre>\n<p>\n\u0410 \u0442\u0443\u043a \u0441\u0435 \u0438\u0437\u0432\u0438\u043a\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u044f\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0432\u0437\u0435\u043c\u0435\u043c \u043f\u0440\u0435\u0434\u0432\u0438\u0434 \u0431\u0440\u043e\u044f \u043d\u0430 \u0445\u043e\u0440\u0430\u0442\u0430 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0442\u0430 \u0438 \u0434\u0430 \u0438\u0437\u0447\u0438\u0441\u043b\u0438\u043c \u0431\u0430\u043a\u0448\u0438\u0448\u0430 (#15):<\/p>\n<pre><code class=\"kotlin\">private fun incrementTip() {\n \n\u2026\n \n}\n \nprivate fun decrementTip() {\n \n\u2026\n \n}\n \nprivate fun incrementPeople() {\n \n\u2026\n \n}\n \nprivate fun decrementPeople() {\n \n\u2026\n \n}<\/code><\/pre>\n<p>\n\u0421\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043c\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e. \u0418\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u041d\u043e \u043c\u043e\u0436\u0435 \u0434\u0430 \u0431\u044a\u0434\u0435 \u0438 \u043f\u043e-\u0434\u043e\u0431\u0440\u0435.<\/p>\n<p>\u0410\u043a\u043e \u0441\u0435 \u043e\u043f\u0438\u0442\u0430\u0442\u0435 \u0434\u0430 \u043f\u0440\u0435\u043c\u0430\u0445\u043d\u0435\u0442\u0435 \u0441\u0443\u043c\u0430\u0442\u0430 \u043d\u0430 \u0441\u043c\u0435\u0442\u043a\u0430\u0442\u0430 \u0438 \u0441\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0434\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u0435 \u0431\u0440\u043e\u044f \u043d\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438\u0442\u0435 \u0438\u043b\u0438 \u043f\u0440\u0438\u044f\u0442\u0435\u043b\u0438\u0442\u0435, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0449\u0435 \u0441\u0440\u0438\u043d\u0435, \u0442\u044a\u0439 \u043a\u0430\u0442\u043e \u0432\u0441\u0435 \u043e\u0449\u0435 \u043d\u044f\u043c\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u043d\u0443\u043b\u0435\u0432\u0430 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u0440\u0430\u0437\u0445\u043e\u0434\u0438\u0442\u0435. \u041e\u0441\u0432\u0435\u043d \u0442\u043e\u0432\u0430, \u0430\u043a\u043e \u0441\u0435 \u043e\u043f\u0438\u0442\u0430\u0442\u0435 \u0434\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0443\u043c\u0430\u0442\u0430 \u043d\u0430 \u0441\u043c\u0435\u0442\u043a\u0430\u0442\u0430, \u0440\u0430\u0437\u0445\u043e\u0434\u0438\u0442\u0435 \u043d\u044f\u043c\u0430 \u0434\u0430 \u0431\u044a\u0434\u0430\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0430\u043d\u0438.<\/p>\n<h3>\u0424\u0438\u043d\u0430\u043b\u043d\u0438 \u0441\u0442\u044a\u043f\u043a\u0438<\/h3>\n<p>\n\u0414\u043e\u0431\u0430\u0432\u044f\u043d\u0435 \u043d\u0430 TextWatcher (#16):<\/p>\n<p>class MainActivity: AppCompatActivity(), View.OnClickListener, TextWatcher {<\/p>\n<p>\u0421\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0432\u0433\u0440\u0430\u0436\u0434\u0430\u043c\u0435 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b \u0432 billEditText (#17):<\/p>\n<p>billEditText.addTextChangedListener(this)<\/p>\n<p>\u041e\u0441\u0432\u0435\u043d \u0442\u043e\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u044f\u043c\u0435 \u043a\u043e\u0434 \u0437\u0430 \u0438\u0437\u043f\u044a\u043b\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 TextWatcher (#18):<\/p>\n<pre><code class=\"kotlin\">override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {\n        if (!billEditText.text.isEmpty()) {\n            calculateExpense()\n        }\n    }\noverride fun afterTextChanged(s: Editable?) {}\n\n    override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {}<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/623256a43c969d8b3a434d10a357c1a0.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\n\u0410 \u0441\u0435\u0433\u0430 \u0432\u0441\u0438\u0447\u043a\u043e \u0440\u0430\u0431\u043e\u0442\u0438 \u043f\u0435\u0440\u0444\u0435\u043a\u0442\u043d\u043e! \u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0438\u0441\u0430\u0445\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d \u00ab\u041a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438\u00bb \u043d\u0430 Kotlin.<\/p>\n<p><img decoding=\"async\" alt=\"\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438?\" src=\"\/wp-content\/uploads\/2019\/04\/5650bfecfadf3fd56785b7d6ac72ed87.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<blockquote><p><b>Skillbox \u043f\u0440\u0435\u043f\u043e\u0440\u044a\u0447\u0432\u0430:<\/b><\/p>\n<ul>\n<li>\u0414\u0432\u0443\u0433\u043e\u0434\u0438\u0448\u0435\u043d \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0443\u0440\u0441 <noindex><a rel=\"nofollow\" href=\"https:\/\/iamwebdev.skillbox.ru\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=WEBDEVPRO&amp;utm_content=articles&amp;utm_term=kotlintips\">\u201e\u0410\u0437 \u0441\u044a\u043c \u0412\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a PRO\u201c<\/a><\/noindex>.<\/li>\n<li>\u041e\u043d\u043b\u0430\u0439\u043d \u043a\u0443\u0440\u0441 <noindex><a rel=\"nofollow\" href=\"https:\/\/skillbox.ru\/c-sharp\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=CSHDEV&amp;utm_content=articles&amp;utm_term=kotlintips\">\u201eC# \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u201c<\/a><\/noindex>.<\/li>\n<li>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u043e\u0434\u0438\u0448\u0435\u043d \u043a\u0443\u0440\u0441 <noindex><a rel=\"nofollow\" href=\"https:\/\/skillbox.ru\/php\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=PHPDEV&amp;utm_content=articles&amp;utm_term=kotlintips\">\u00abPHP \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0442 0 \u0434\u043e PRO\u00bb<\/a><\/noindex>.\n<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u0418\u0437\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/skillbox\/blog\/448582\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0447\u0430\u0435\u0432\u044b\u0445 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Kotlin. \u0415\u0441\u043b\u0438 \u0442\u043e\u0447\u043d\u0435\u0435, \u0442\u043e Kotlin 1.3.21, Android 4, Android Studio 3. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439, \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u043f\u0443\u0442\u044c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 Android-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0438 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u0430\u043a\u043e\u0439 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u0447\u0430\u0435\u0432\u044b\u0445 \u0441 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":23712,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-31843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/bg\/blog\/news\/sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"bg_BG\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0447\u0430\u0435\u0432\u044b\u0445 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442? | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/bg\/blog\/news\/sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:43:27+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:43:27+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47\u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043a\u0430\u043b\u043a\u0443\u043b\u0430\u0442\u043e\u0440 \u043d\u0430 \u0431\u0430\u043a\u0448\u0438\u0448\u0438 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438? | ProHoster","description":"\u0420\u0430\u0437\u043a\u0430\u0437\u0432\u0430\u043c\u0435 \u043a\u0430\u043a \u0434\u0430 \u0441\u044a\u0437\u0434\u0430\u0434\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e.","canonical_url":"https:\/\/prohoster.info\/bg\/blog\/news\/sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"bg_BG","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0447\u0430\u0435\u0432\u044b\u0445 \u043d\u0430 Kotlin: \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442? | ProHoster","og:description":"\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435.","og:url":"https:\/\/prohoster.info\/bg\/blog\/news\/sozdanie-kalkulyatora-chaevyh-na-kotlin-kak-eto-rabotaet","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:43:27+00:00","article:modified_time":"2019-10-31T18:43:27+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"31843","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 08:07:20","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 03:10:45","updated":"2026-01-21 08:07:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/posts\/31843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/comments?post=31843"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/posts\/31843\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/media\/23712"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/media?parent=31843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/categories?post=31843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/bg\/wp-json\/wp\/v2\/tags?post=31843"}],"curies":[{"name":"\u0432\u043f","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}