{"id":345468,"date":"2023-02-15T15:03:40","date_gmt":"2023-02-15T15:03:40","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=345468"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2023-02-15T15:03:40","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=345468","title":{"rendered":"<span>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 Android Studio<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u043b\u0438 \u043a\u0430\u043a \u043d\u0435 \u0441\u043e\u0439\u0442\u0438 \u0441 \u0443\u043c\u0430 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0443\u0434\u0443\u0447\u0438 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u043c.<\/p>\n<p>\u0412 \u043e\u0434\u0438\u043d \u0443\u0436\u0430\u0441\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u043c\u043e\u0439 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043c\u043d\u0435 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0434 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043a\u0430\u0440\u043a\u0430\u0441\u043e\u043c \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043b\u044c\u0446\u0435\u043c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430. \u042f \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0441\u044f. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c, \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u0441\u0434\u0430\u043b\u0441\u044f. \u0415\u0449\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043d\u044c, \u044f \u043f\u0440\u0438\u0431\u0435\u0433\u043d\u0443\u043b \u043a \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0439 \u0447\u0435\u0440\u043d\u043e\u0439 \u043c\u0430\u0433\u0438\u0438. \u042f \u0437\u0430\u0433\u0443\u0433\u043b\u0438\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c. \u0418 \u0434\u0430\u0436\u0435 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u044f \u043d\u0430\u0448\u0435\u043b \u043b\u0438\u0448\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u043e \u0442\u0430\u043c \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b \u0441\u0432\u043e\u0435\u0433\u043e \u0443\u0447\u0438\u0442\u0435\u043b\u044f-\u0441\u0438\u0442\u0445\u0430. \u041e\u043d \u043d\u0430\u0443\u0447\u0438\u043b \u043c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u043e\u043c\u0443, \u043d\u043e \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043c\u043d\u043e\u044e \u043b\u0438\u0447\u043d\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/396\/8dc\/235\/3968dc235497d9cc75c36e228e628b50.jpg\" width=\"1000\" height=\"882\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/396\/8dc\/235\/3968dc235497d9cc75c36e228e628b50.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u042f \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0431\u0443\u0434\u0443\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u044b  (\u0438\u043d\u0430\u0447\u0435 \u043c\u0435\u043d\u044f \u0437\u0430\u0431\u0440\u043e\u0441\u0430\u044e\u0442 \u043f\u043e\u043c\u0438\u0434\u043e\u0440\u0430\u043c\u0438). \u0421\u0442\u0430\u0442\u044c\u044f \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0445 \u0440\u0430\u0437\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u0438\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a. \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438\u043b\u0438 \u0447\u0435\u0433\u043e-\u0442\u043e \u0437\u0430\u0443\u043c\u043d\u043e\u0433\u043e. \u041d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u043b\u0438\u0448\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0442\u043e \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u0430\u043a \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435. \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u044d\u0442\u043e \u0432 \u0432\u0438\u0434\u0435\u043e-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043e\u0442 \u0438\u043d\u0434\u0443\u0441\u0430, \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0430. \u041e\u043f\u044b\u0442\u043d\u044b\u043c \u0414\u0436\u0430\u0432\u0438\u0441\u0442\u0430\u043c \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u043c \u043d\u0430 \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u0421\u0442\u0443\u0434\u0438\u043e &#8212; \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0447\u0442\u043e \u0443\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c, \u0431\u0443\u0434\u0435\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u044b \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0438 \u0441\u043e\u0432\u0435\u0442.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5a2\/6dc\/a1c\/5a26dca1c130172f596d709c833738e7.gif\" width=\"384\" height=\"384\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5a2\/6dc\/a1c\/5a26dca1c130172f596d709c833738e7.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041d\u0430\u0448 \u0434\u0440\u0443\u0433 \u0438\u0437 \u0418\u043d\u0434\u0438\u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u043d\u0430\u043c \u043f\u0430\u0440\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0432 .xml \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0438 \u0434\u0430\u043b \u043d\u0430 \u043d\u0438\u0445 \u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u043e\u0434 \u0432\u0438\u0434\u0435\u043e, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0435\u0433\u043e \u0433\u0443\u0433\u043b \u0434\u0438\u0441\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0435\u0433\u043e \u043a\u043e\u043f\u0438\u044f.<br \/><a href=\"https:\/\/drive.google.com\/drive\/folders\/1lv3pwm4YSr1q-LdTnvdQSvCvWImRg7ow?usp=sharing\" rel=\"noopener noreferrer nofollow\">https:\/\/drive.google.com\/drive\/folders\/1lv3pwm4YSr1q-LdTnvdQSvCvWImRg7ow?usp=sharing<\/a><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c8f\/b5c\/286\/c8fb5c286f4c4cf54df95d8305830273.gif\" alt=\"\u0417\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c download\" title=\"\u0417\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c download\" width=\"204\" height=\"298\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c8f\/b5c\/286\/c8fb5c286f4c4cf54df95d8305830273.gif\"\/><figcaption>\u0417\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c download<\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: <\/p>\n<ul>\n<li>\n<p>SignatureView, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u043d\u0430\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 <a href=\"https:\/\/github.com\/zahid-ali-shah\/SignatureView\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/zahid-ali-shah\/SignatureView<\/a><\/p>\n<\/li>\n<li>\n<p>AmbilWarna \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430\u0448\u0435\u0439 &#171;\u0440\u0443\u0447\u043a\u0438&#187;.<br \/><a href=\"https:\/\/github.com\/yukuku\/ambilwarna\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/yukuku\/ambilwarna<\/a><\/p>\n<p>\u041d\u0430\u0448 \u0430\u0437\u0438\u0430\u0442\u0441\u043a\u0438\u0439 \u0434\u0440\u0443\u0433 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u043b, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u0434\u0430\u043b\u0435\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f. \u0411\u0435\u0440\u0435\u043c \u0442\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438: &#8216;com.github.yukuku:ambilwarna:2.0.1&#8217; \u0438 &#8216;com.kyanogen.signatureview:signature-view:1.2&#8217;. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u0441\u0442\u0443\u0434\u0438\u043e, \u0432\u043e \u0412\u0422\u041e\u0420\u041e\u0419 \u0444\u0430\u0439\u043b build.grandle(Module :app) \u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 &#171;implementation&#187; \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0432\u0435 \u044d\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 dependencies.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c7f\/23c\/0b9\/c7f23c0b9fa882b547b78a2886fd49cc.PNG\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.\" width=\"706\" height=\"301\"\/><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/figcaption><\/figure>\n<p>\u041d\u043e, \u043a\u0430\u043a \u0438 \u0432 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u0435 \u043f\u0440\u043e \u0427\u0430\u043f\u0430\u044f \u0438 \u041f\u0435\u0442\u044c\u043a\u0443, \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SignatureView \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0444\u0430\u0439\u043b settings.grandle \u0438, \u043f\u0435\u0440\u0432\u043e\u0435, \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 repositiories jcenter(), \u0432\u0442\u043e\u0440\u043e\u0435, \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0438\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c include &#8216;SignatureView-Example&#8217;, &#8216;signature-view&#8217;<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ef2\/02b\/0fd\/ef202b0fd5b790951ce4eb0367f82bc7.PNG\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a.\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a.\" width=\"653\" height=\"343\"\/><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a.<\/figcaption><\/figure>\n<p>(\u0422\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0437\u0430 \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0442\u043e, \u0447\u0442\u043e \u043c\u043e\u0439 \u0445\u0438\u043b\u044b\u0439 \u043c\u043e\u0437\u0433 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u043b \u043f\u043e\u043b \u0434\u043b\u044f.) \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u043c\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 &#171;Sync now&#187; \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443. \u0423\u0440\u0430, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b!<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u043d\u0430 \u0441\u0446\u0435\u043d\u0435. \u041c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0431\u0438\u0442\u044c \u043d\u0430 \u0440\u0435\u0436\u0438\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435\u0441\u044c \u043b\u0438\u0431\u043e \u0432 \u0441\u043f\u043b\u0438\u0442 (\u0447\u0442\u043e\u0431\u044b \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0446\u0435\u043d\u0435), \u043b\u0438\u0431\u043e \u0432 \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u0434\u0430. \u0423\u0434\u0430\u043b\u044f\u0439\u0442\u0435 TextView \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0442\u0435 \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u0435\u0440\u0432\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u043d\u0430 Relative Layout.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/143\/904\/fcf\/143904fcfdd47cfe3907ae5f36777fdd.PNG\" alt=\"\u0412\u043e\u0442 \u0442\u0430\u043a.\" title=\"\u0412\u043e\u0442 \u0442\u0430\u043a.\" width=\"738\" height=\"194\"\/><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a.<\/figcaption><\/figure>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 SignatureView \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043c\u0435\u0436\u0434\u0443 RelativeLayout: <\/p>\n<pre><code class=\"xml\">&lt;com.kyanogen.signatureview.SignatureView         android:id=\"@+id\/signature_view\"         android:layout_width=\"match_parent\"         android:layout_height=\"match_parent\"         android:layout_above=\"@+id\/optionsHolder\"         android:layout_marginBottom=\"0dp\"         app:backgroundColor=\"#ffffff\"         app:enableSignature=\"true\"         app:penColor=\"#000000\"         app:penSize=\"5dp\"\/><\/code><\/pre>\n<p>\u0423\u0436\u0435 \u044d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/93b\/243\/763\/93b24376360fb311ed12e2c12c394d90.PNG\" alt=\"\u0422\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c\" title=\"\u0422\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c\" width=\"628\" height=\"670\"\/><figcaption>\u0422\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/figcaption><\/figure>\n<p>\u041e\u0442\u0432\u043b\u0435\u0447\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u0430\u0441\u0441\u0435\u0442\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a. \u0412 \u043f\u0430\u043f\u043a\u0443 drawable, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 res, \u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0435 \u0430\u0441\u0441\u0435\u0442\u044b. \u0413\u043e\u0442\u043e\u0432\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f 2 \u044d\u0442\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438.<\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u043d\u043e \u043a Xml. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c\u043a\u0443 \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0421\u043b\u0430\u0439\u0434\u0435\u0440 \u0434\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f\/\u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043a\u0438\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>2 \u043a\u043d\u043e\u043f\u043a\u0438. \u041e\u0434\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442 \u043d\u0430\u0448\u0435\u0439 \u043a\u0438\u0441\u0442\u0438, \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043e.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c LinearLayout \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438: <\/p>\n<pre><code class=\"xml\">        android:id=\"@+id\/optionsHolder\"         android:layout_width=\"match_parent\"         android:layout_height=\"wrap_content\"         android:orientation=\"horizontal\"         android:gravity=\"center\"         android:layout_alignParentBottom=\"true\"<\/code><\/pre>\n<p>\u0438 \u0435\u0449\u0435 2 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0441:<\/p>\n<pre><code>            android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\"             \/\/\u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e<\/code><\/pre>\n<pre><code>            android:layout_gravity=\"end\"             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\"             \/\/\u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e<\/code><\/pre>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 Linear \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u043d\u0435\u0433\u043e 2 \u0434\u0440\u0443\u0433\u0438\u0435. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043b\u0430\u0439\u0434\u0435\u0440, \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; 2 \u043a\u043d\u043e\u043f\u043a\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d4a\/580\/a95\/d4a580a95df87e9ff3944ff31e165219.PNG\" alt=\"\u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c.\" title=\"\u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c.\" width=\"641\" height=\"903\"\/><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 Linear. \u0412 \u043d\u0435\u043c \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c SeekBar \u0438 TextView. \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e Linear&#8217;a:<\/p>\n<pre><code>      &lt;LinearLayout             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\"             >             &lt;SeekBar                 android:layout_weight=\"1\"                 android:layout_width=\"0dp\"                 android:layout_height=\"wrap_content\"                 android:layout_marginStart=\"8dp\"                 android:id=\"@+id\/penSize\">             &lt;\/SeekBar>             &lt;TextView                 android:id=\"@+id\/TxtPenSize\"                 android:textColor=\"@color\/black\"                 android:text=\"5dp\"                 android:layout_width=\"wrap_content\"                 android:layout_height=\"wrap_content\">             &lt;\/TextView>          &lt;\/LinearLayout><\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043f\u043b\u0438\u0442 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/006\/e57\/0a8\/006e570a8dda919a19491de4202f7cc7.PNG\" width=\"404\" height=\"682\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 Linear&#8217;\u0443. \u0421\u043e\u0437\u0434\u0430\u0435\u043c 2 ImageButton, \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e:<\/p>\n<pre><code>                android:id=\"@+id\/btnEraser\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_eraser\" \/\/\u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u0442\u0438\u0440\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0441 \u044d\u043a\u0440\u0430\u043d\u0430<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e:<\/p>\n<pre><code>                android:id=\"@+id\/btnColor\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_color\" \/\/\u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u043c\u0435\u043d\u044b \u0446\u0432\u0435\u0442\u0430 \u0440\u0443\u0447\u043a\u0438.<\/code><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Xml \u043a\u043e\u0434\u0430:<\/p>\n<pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?> &lt;RelativeLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"     xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"     xmlns:tools=\"http:\/\/schemas.android.com\/tools\"     android:layout_width=\"match_parent\"     android:layout_height=\"match_parent\"     tools:context=\".MainActivity\">      &lt;com.kyanogen.signatureview.SignatureView         android:id=\"@+id\/signature_view\"         android:layout_width=\"match_parent\"         android:layout_height=\"match_parent\"         android:layout_above=\"@+id\/optionsHolder\"         android:layout_marginBottom=\"0dp\"         app:backgroundColor=\"#ffffff\"         app:enableSignature=\"true\"         app:penColor=\"#000000\"         app:penSize=\"5dp\"\/>     &lt;LinearLayout         android:id=\"@+id\/optionsHolder\"         android:layout_width=\"match_parent\"         android:layout_height=\"wrap_content\"         android:orientation=\"horizontal\"         android:gravity=\"center\"         android:layout_alignParentBottom=\"true\">         &lt;LinearLayout             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\">             &lt;SeekBar                 android:layout_weight=\"1\"                 android:layout_width=\"0dp\"                 android:layout_height=\"wrap_content\"                 android:layout_marginStart=\"8dp\"                 android:id=\"@+id\/penSize\">             &lt;\/SeekBar>             &lt;TextView                 android:id=\"@+id\/TxtPenSize\"                 android:textColor=\"@color\/black\"                 android:text=\"5dp\"                 android:layout_width=\"wrap_content\"                 android:layout_height=\"wrap_content\">             &lt;\/TextView>         &lt;\/LinearLayout>         &lt;LinearLayout             android:layout_gravity=\"end\"             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\">             &lt;ImageButton                 android:id=\"@+id\/btnEraser\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_eraser\">             &lt;\/ImageButton>             &lt;ImageButton                 android:id=\"@+id\/btnColor\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_color\">             &lt;\/ImageButton>         &lt;\/LinearLayout>     &lt;\/LinearLayout> &lt;\/RelativeLayout><\/code><\/pre>\n<p>\u0421\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/310\/876\/245\/310876245f81bc7ab7e287b5b7ab870c.PNG\" width=\"301\" height=\"522\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0440\u0430, \u043c\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c! \u0423\u0441\u0442\u0430\u043b\u0438? \u042f \u0442\u043e\u0436\u0435, \u043d\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c (\u043d\u0435\u0442).<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, java \u043a\u043e\u0434\u0443.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u043c\u043f\u043e\u0440\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e(\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a):<\/p>\n<pre><code class=\"java\">import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat;  import android.os.Bundle; import android.view.View; import android.widget.ImageButton; import android.widget.SeekBar; import android.widget.TextView; import com.kyanogen.signatureview.SignatureView; import yuku.ambilwarna.AmbilWarnaDialog;<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043c:<\/p>\n<pre><code class=\"java\">    SignatureView signatureView;\/\/ \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c     ImageButton imgEraser,imgColor;\/\/ 2 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u043d\u043e\u043f\u043e\u043a     SeekBar seekBar;\/\/ \u0441\u043b\u0430\u0439\u0434\u0431\u0430\u0440 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0440\u0443\u0447\u043a\u0438     TextView txtpensize;\/\/ \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f     int defaultcolor;\/\/ \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442<\/code><\/pre>\n<p>\u041d\u0443 \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043a\u0440\u0435\u043f\u0438\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u0438\u0437 .XML, \u0447\u0435\u0440\u0435\u0437 ID-\u0448\u043d\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0438\u043c \u0443\u0436\u0435 \u0434\u0430\u043b\u0438 \u0432 \u043a\u043e\u0434\u0435 XML<\/p>\n<pre><code>        signatureView=findViewById(R.id.signature_view);\/\/\u043c\u0435\u0442\u043e\u0434 findViewById \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0430\u0439\u0434\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 XML         imgEraser=findViewById(R.id.btnEraser);         imgColor= findViewById(R.id.btnColor);         seekBar=findViewById(R.id.penSize);         txtpensize=findViewById(R.id.TxtPenSize);          defaultcolor= ContextCompat.getColor(MainActivity.this,R.color.black);\/\/\u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0435\u0440\u043d\u044b\u0439 \u0446\u0432\u0435\u0442<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 Seek Bar. \u041e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a seekBar.setOnSeekBarChangeListener \u0438 \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/408\/ea6\/c63\/408ea6c639b6e472a48fcf924de986c0.PNG\" width=\"756\" height=\"366\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f onProgressChanged, \u0433\u0434\u0435 \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>                txtpensize.setText(progress+\"dp\");\/\/\u0442\u043e \u0447\u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443                 signatureView.setPenSize(progress);\/\/\u0441\u043c\u0435\u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043a\u0438\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438                 seekBar.setMax(50);\/\/\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 seekbara<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u043b\u044f \u0441\u0442\u0438\u0440\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0441 \u044d\u043a\u0440\u0430\u043d\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a imgEraser.setOnClickListener, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e &#8212; public void onClick(View v) \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0438\u0448\u0435\u043c- signatureView.clearCanvas();. \u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/21b\/24b\/5c2\/21b24b5c2aa3448ccfb5331fb9c55fc6.PNG\" alt=\"\" title=\"\" width=\"630\" height=\"113\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a \u0441\u043c\u0435\u043d\u0435 \u0446\u0432\u0435\u0442\u0430. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 OnCreate, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e openColorPicker. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u043c \u043d\u043e\u0432\u044b\u0439 AmbilWarnaDialog:<\/p>\n<pre><code class=\"java\"> AmbilWarnaDialog ambilWarnaDialog = new AmbilWarnaDialog(this, defaultcolor, new AmbilWarnaDialog.OnAmbilWarnaListener()<\/code><\/pre>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e24\/157\/fcb\/e24157fcb6e7d74b3bd7b7ea9bdfe52e.PNG\" width=\"1148\" height=\"361\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 OnCreate \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u044b \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0441\u043c\u0435\u043d\u044b \u0446\u0432\u0435\u0442\u0430:<\/p>\n<pre><code class=\"java\">imgColor.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 openColorPicker();             }         });<\/code><\/pre>\n<p>\u0423\u0440\u0430! \u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0433\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 (\u043c\u0435\u043d\u044f \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u043f\u043e\u043a\u043e\u0440\u043c\u044f\u0442!). \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u0435 \u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/63e3c2a7200df56fc1920b8e\" data-style=\"\" id=\"63e3c2a7200df56fc1920b8e\" width=\"\"><\/div>\n<p>\u0418\u0437\u0432\u0438\u043d\u044f\u044e\u0441\u044c \u0437\u0430 \u0443\u0431\u043b\u044e\u0434\u0441\u043a\u0438\u0439 \u0448\u043e\u0440\u0442\u0441, \u044e\u0442\u0443\u0431 \u043d\u0435 \u0434\u0430\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0448\u043e\u0440\u0442\u0441(:). \u041d\u0430 \u043c\u043e\u0435\u0439 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438\u0437-\u0437\u0430 \u0442\u0435\u043c\u044b \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 (\u0438\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0446\u0432\u0435\u0442\u043e\u0432), \u043d\u0430 \u0432\u0430\u0448\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u041e\u041a.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435. \u041a\u0430\u043a \u0438 \u043e\u0431\u0435\u0449\u0430\u043b &#8212; \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u043d\u0434\u0443\u0441\u0430-\u0443\u0447\u0438\u0442\u0435\u043b\u044f-\u0441\u0438\u0442\u0445\u0430: <a href=\"https:\/\/youtu.be\/xGrOHLk60q8\" rel=\"noopener noreferrer nofollow\">https:\/\/youtu.be\/xGrOHLk60q8<\/a>, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432\u0430\u043c (\u043d\u0430\u0443\u0447\u0438\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u044f\u043a\u043e\u0440\u044f \u0438 \u043e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u0430 \u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043b\u0430\u043f\u043a\u0438).<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/717102\/\"> https:\/\/habr.com\/ru\/post\/717102\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u043b\u0438 \u043a\u0430\u043a \u043d\u0435 \u0441\u043e\u0439\u0442\u0438 \u0441 \u0443\u043c\u0430 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0443\u0434\u0443\u0447\u0438 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u043c.<\/p>\n<p>\u0412 \u043e\u0434\u0438\u043d \u0443\u0436\u0430\u0441\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u043c\u043e\u0439 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043c\u043d\u0435 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0434 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043a\u0430\u0440\u043a\u0430\u0441\u043e\u043c \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043b\u044c\u0446\u0435\u043c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430. \u042f \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0441\u044f. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c, \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u0441\u0434\u0430\u043b\u0441\u044f. \u0415\u0449\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043d\u044c, \u044f \u043f\u0440\u0438\u0431\u0435\u0433\u043d\u0443\u043b \u043a \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0439 \u0447\u0435\u0440\u043d\u043e\u0439 \u043c\u0430\u0433\u0438\u0438. \u042f \u0437\u0430\u0433\u0443\u0433\u043b\u0438\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c. \u0418 \u0434\u0430\u0436\u0435 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u044f \u043d\u0430\u0448\u0435\u043b \u043b\u0438\u0448\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u043e \u0442\u0430\u043c \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b \u0441\u0432\u043e\u0435\u0433\u043e \u0443\u0447\u0438\u0442\u0435\u043b\u044f-\u0441\u0438\u0442\u0445\u0430. \u041e\u043d \u043d\u0430\u0443\u0447\u0438\u043b \u043c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u043e\u043c\u0443, \u043d\u043e \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043c\u043d\u043e\u044e \u043b\u0438\u0447\u043d\u043e.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u042f \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0431\u0443\u0434\u0443\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u044b  (\u0438\u043d\u0430\u0447\u0435 \u043c\u0435\u043d\u044f \u0437\u0430\u0431\u0440\u043e\u0441\u0430\u044e\u0442 \u043f\u043e\u043c\u0438\u0434\u043e\u0440\u0430\u043c\u0438). \u0421\u0442\u0430\u0442\u044c\u044f \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0445 \u0440\u0430\u0437\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u0438\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a. \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438\u043b\u0438 \u0447\u0435\u0433\u043e-\u0442\u043e \u0437\u0430\u0443\u043c\u043d\u043e\u0433\u043e. \u041d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u043b\u0438\u0448\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0442\u043e \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u0430\u043a \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435. \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u044d\u0442\u043e \u0432 \u0432\u0438\u0434\u0435\u043e-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u043e\u0442 \u0438\u043d\u0434\u0443\u0441\u0430, \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0430. \u041e\u043f\u044b\u0442\u043d\u044b\u043c \u0414\u0436\u0430\u0432\u0438\u0441\u0442\u0430\u043c \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u043c \u043d\u0430 \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u0421\u0442\u0443\u0434\u0438\u043e &#8212; \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0447\u0442\u043e \u0443\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c, \u0431\u0443\u0434\u0435\u043c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u044b \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0438 \u0441\u043e\u0432\u0435\u0442.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041d\u0430\u0448 \u0434\u0440\u0443\u0433 \u0438\u0437 \u0418\u043d\u0434\u0438\u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u043d\u0430\u043c \u043f\u0430\u0440\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0432 .xml \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0438 \u0434\u0430\u043b \u043d\u0430 \u043d\u0438\u0445 \u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u043e\u0434 \u0432\u0438\u0434\u0435\u043e, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0435\u0433\u043e \u0433\u0443\u0433\u043b \u0434\u0438\u0441\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0435\u0433\u043e \u043a\u043e\u043f\u0438\u044f.<br \/><a href=\"https:\/\/drive.google.com\/drive\/folders\/1lv3pwm4YSr1q-LdTnvdQSvCvWImRg7ow?usp=sharing\" rel=\"noopener noreferrer nofollow\">https:\/\/drive.google.com\/drive\/folders\/1lv3pwm4YSr1q-LdTnvdQSvCvWImRg7ow?usp=sharing<\/a><\/p>\n<figure class=\"\"><figcaption>\u0417\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c download<\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: <\/p>\n<ul>\n<li>\n<p>SignatureView, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u043d\u0430\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 <a href=\"https:\/\/github.com\/zahid-ali-shah\/SignatureView\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/zahid-ali-shah\/SignatureView<\/a><\/p>\n<\/li>\n<li>\n<p>AmbilWarna \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430\u0448\u0435\u0439 &#171;\u0440\u0443\u0447\u043a\u0438&#187;.<br \/><a href=\"https:\/\/github.com\/yukuku\/ambilwarna\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/yukuku\/ambilwarna<\/a><\/p>\n<p>\u041d\u0430\u0448 \u0430\u0437\u0438\u0430\u0442\u0441\u043a\u0438\u0439 \u0434\u0440\u0443\u0433 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u043b, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441 \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u0434\u0430\u043b\u0435\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f. \u0411\u0435\u0440\u0435\u043c \u0442\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438: &#8216;com.github.yukuku:ambilwarna:2.0.1&#8217; \u0438 &#8216;com.kyanogen.signatureview:signature-view:1.2&#8217;. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u0441\u0442\u0443\u0434\u0438\u043e, \u0432\u043e \u0412\u0422\u041e\u0420\u041e\u0419 \u0444\u0430\u0439\u043b build.grandle(Module :app) \u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 &#171;implementation&#187; \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0432\u0435 \u044d\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 dependencies.<\/p>\n<figure class=\"full-width\"><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/figcaption><\/figure>\n<p>\u041d\u043e, \u043a\u0430\u043a \u0438 \u0432 \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u0435 \u043f\u0440\u043e \u0427\u0430\u043f\u0430\u044f \u0438 \u041f\u0435\u0442\u044c\u043a\u0443, \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 SignatureView \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0444\u0430\u0439\u043b settings.grandle \u0438, \u043f\u0435\u0440\u0432\u043e\u0435, \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 repositiories jcenter(), \u0432\u0442\u043e\u0440\u043e\u0435, \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0438\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c include &#8216;SignatureView-Example&#8217;, &#8216;signature-view&#8217;<\/p>\n<figure class=\"full-width\"><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a.<\/figcaption><\/figure>\n<p>(\u0422\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0437\u0430 \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0442\u043e, \u0447\u0442\u043e \u043c\u043e\u0439 \u0445\u0438\u043b\u044b\u0439 \u043c\u043e\u0437\u0433 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u043b \u043f\u043e\u043b \u0434\u043b\u044f.) \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u043c\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 &#171;Sync now&#187; \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443. \u0423\u0440\u0430, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b!<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u043d\u0430 \u0441\u0446\u0435\u043d\u0435. \u041c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0431\u0438\u0442\u044c \u043d\u0430 \u0440\u0435\u0436\u0438\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435\u0441\u044c \u043b\u0438\u0431\u043e \u0432 \u0441\u043f\u043b\u0438\u0442 (\u0447\u0442\u043e\u0431\u044b \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0446\u0435\u043d\u0435), \u043b\u0438\u0431\u043e \u0432 \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u0434\u0430. \u0423\u0434\u0430\u043b\u044f\u0439\u0442\u0435 TextView \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0442\u0435 \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u0435\u0440\u0432\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u043d\u0430 Relative Layout.<\/p>\n<figure class=\"full-width\"><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a.<\/figcaption><\/figure>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 SignatureView \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u043c\u0435\u0436\u0434\u0443 RelativeLayout: <\/p>\n<pre><code class=\"xml\">&lt;com.kyanogen.signatureview.SignatureView         android:id=\"@+id\/signature_view\"         android:layout_width=\"match_parent\"         android:layout_height=\"match_parent\"         android:layout_above=\"@+id\/optionsHolder\"         android:layout_marginBottom=\"0dp\"         app:backgroundColor=\"#ffffff\"         app:enableSignature=\"true\"         app:penColor=\"#000000\"         app:penSize=\"5dp\"\/><\/code><\/pre>\n<p>\u0423\u0436\u0435 \u044d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<\/p>\n<figure class=\"full-width\"><figcaption>\u0422\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/figcaption><\/figure>\n<p>\u041e\u0442\u0432\u043b\u0435\u0447\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u0430\u0441\u0441\u0435\u0442\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a. \u0412 \u043f\u0430\u043f\u043a\u0443 drawable, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 res, \u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0435 \u0430\u0441\u0441\u0435\u0442\u044b. \u0413\u043e\u0442\u043e\u0432\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f 2 \u044d\u0442\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438.<\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u043d\u043e \u043a Xml. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c\u043a\u0443 \u0441 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0421\u043b\u0430\u0439\u0434\u0435\u0440 \u0434\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f\/\u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043a\u0438\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>2 \u043a\u043d\u043e\u043f\u043a\u0438. \u041e\u0434\u043d\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442 \u043d\u0430\u0448\u0435\u0439 \u043a\u0438\u0441\u0442\u0438, \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043e.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c LinearLayout \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438: <\/p>\n<pre><code class=\"xml\">        android:id=\"@+id\/optionsHolder\"         android:layout_width=\"match_parent\"         android:layout_height=\"wrap_content\"         android:orientation=\"horizontal\"         android:gravity=\"center\"         android:layout_alignParentBottom=\"true\"<\/code><\/pre>\n<p>\u0438 \u0435\u0449\u0435 2 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0441:<\/p>\n<pre><code>            android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\"             \/\/\u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e<\/code><\/pre>\n<pre><code>            android:layout_gravity=\"end\"             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\"             \/\/\u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e<\/code><\/pre>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 Linear \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 \u043d\u0435\u0433\u043e 2 \u0434\u0440\u0443\u0433\u0438\u0435. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043b\u0430\u0439\u0434\u0435\u0440, \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; 2 \u043a\u043d\u043e\u043f\u043a\u0438.<\/p>\n<figure class=\"full-width\"><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 Linear. \u0412 \u043d\u0435\u043c \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c SeekBar \u0438 TextView. \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e Linear&#8217;a:<\/p>\n<pre><code>      &lt;LinearLayout             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\"             >             &lt;SeekBar                 android:layout_weight=\"1\"                 android:layout_width=\"0dp\"                 android:layout_height=\"wrap_content\"                 android:layout_marginStart=\"8dp\"                 android:id=\"@+id\/penSize\">             &lt;\/SeekBar>             &lt;TextView                 android:id=\"@+id\/TxtPenSize\"                 android:textColor=\"@color\/black\"                 android:text=\"5dp\"                 android:layout_width=\"wrap_content\"                 android:layout_height=\"wrap_content\">             &lt;\/TextView>          &lt;\/LinearLayout><\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043f\u043b\u0438\u0442 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 Linear&#8217;\u0443. \u0421\u043e\u0437\u0434\u0430\u0435\u043c 2 ImageButton, \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438. \u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e:<\/p>\n<pre><code>                android:id=\"@+id\/btnEraser\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_eraser\" \/\/\u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u0442\u0438\u0440\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0441 \u044d\u043a\u0440\u0430\u043d\u0430<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e:<\/p>\n<pre><code>                android:id=\"@+id\/btnColor\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_color\" \/\/\u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441\u043c\u0435\u043d\u044b \u0446\u0432\u0435\u0442\u0430 \u0440\u0443\u0447\u043a\u0438.<\/code><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Xml \u043a\u043e\u0434\u0430:<\/p>\n<pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?> &lt;RelativeLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"     xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"     xmlns:tools=\"http:\/\/schemas.android.com\/tools\"     android:layout_width=\"match_parent\"     android:layout_height=\"match_parent\"     tools:context=\".MainActivity\">      &lt;com.kyanogen.signatureview.SignatureView         android:id=\"@+id\/signature_view\"         android:layout_width=\"match_parent\"         android:layout_height=\"match_parent\"         android:layout_above=\"@+id\/optionsHolder\"         android:layout_marginBottom=\"0dp\"         app:backgroundColor=\"#ffffff\"         app:enableSignature=\"true\"         app:penColor=\"#000000\"         app:penSize=\"5dp\"\/>     &lt;LinearLayout         android:id=\"@+id\/optionsHolder\"         android:layout_width=\"match_parent\"         android:layout_height=\"wrap_content\"         android:orientation=\"horizontal\"         android:gravity=\"center\"         android:layout_alignParentBottom=\"true\">         &lt;LinearLayout             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\">             &lt;SeekBar                 android:layout_weight=\"1\"                 android:layout_width=\"0dp\"                 android:layout_height=\"wrap_content\"                 android:layout_marginStart=\"8dp\"                 android:id=\"@+id\/penSize\">             &lt;\/SeekBar>             &lt;TextView                 android:id=\"@+id\/TxtPenSize\"                 android:textColor=\"@color\/black\"                 android:text=\"5dp\"                 android:layout_width=\"wrap_content\"                 android:layout_height=\"wrap_content\">             &lt;\/TextView>         &lt;\/LinearLayout>         &lt;LinearLayout             android:layout_gravity=\"end\"             android:layout_width=\"match_parent\"             android:layout_height=\"wrap_content\"             android:layout_weight=\"1\"             android:layout_margin=\"4dp\">             &lt;ImageButton                 android:id=\"@+id\/btnEraser\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_eraser\">             &lt;\/ImageButton>             &lt;ImageButton                 android:id=\"@+id\/btnColor\"                 android:layout_width=\"0dp\"                 android:layout_height=\"70dp\"                 android:background=\"@color\/white\"                 android:scaleType=\"center\"                 android:layout_weight=\"1\"                 android:src=\"@drawable\/ic_color\">             &lt;\/ImageButton>         &lt;\/LinearLayout>     &lt;\/LinearLayout> &lt;\/RelativeLayout><\/code><\/pre>\n<p>\u0421\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0440\u0430, \u043c\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c! \u0423\u0441\u0442\u0430\u043b\u0438? \u042f \u0442\u043e\u0436\u0435, \u043d\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c (\u043d\u0435\u0442).<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, java \u043a\u043e\u0434\u0443.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u043c\u043f\u043e\u0440\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e(\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a):<\/p>\n<pre><code class=\"java\">import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat;<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-345468","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/345468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=345468"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/345468\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=345468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=345468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=345468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}