{"id":271977,"date":"2016-01-12T13:44:02","date_gmt":"2016-01-12T10:44:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271977"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271977","title":{"rendered":"\u0422\u043e\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f"},"content":{"rendered":"<p>       <a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/274897\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b10\/66d\/afb\/b1066dafb3044162b3a41e94305f5e93.png\"\/><\/a><\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 <s>\u0441\u043e\u0431\u0430\u043a\u0435<\/s> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 \u043d\u0435\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043e\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u0441\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u043d\u0435 \u043f\u043e \u0440\u043e\u0434\u0443 \u0441\u0432\u043e\u0435\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435 \u0432\u0435\u0449\u0438 \u043e\u0431\u043e\u0431\u0449\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0434\u043b\u044f Android Studio. \u041e \u043d\u0438\u0445 \u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d\u044b \u2014 \u043a\u0442\u043e \u043e\u043d\u0438?<\/h4>\n<p>  \u0428\u0430\u0431\u043b\u043e\u043d \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 Android Studio \u044d\u0442\u043e \u0444\u0430\u0439\u043b (\u0438\u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u0444\u0430\u0439\u043b\u043e\u0432) \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <b>.ftl<\/b>, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 Java \u0438 XML (\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0435\u0448\u0430\u0435\u043c\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u0435\u0442\u0430\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430 (template engine). \u0428\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 <a href=\"http:\/\/freemarker.incubator.apache.org\/\">FreeMarker<\/a>, \u044f\u0437\u044b\u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u043d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u043c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432.<\/p>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u0440\u044f\u0436\u0435\u043d\u0438\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432: activity, fragments, services, widgets, UI-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435. \u041d\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u0443\u0447\u0430\u0438 (\u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043d\u0430\u0448), \u043a\u043e\u0433\u0434\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439. \u0418 \u0442\u0443\u0442 \u043d\u0430\u0441 \u043f\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u201c\u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u201d: \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0443 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e. \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u0431\u043b\u043e\u0433\u0430\u0445 \u0438 \u0447\u0443\u0434\u043e\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u0430\u044f \u0438\u0437 \u043d\u0435\u0434\u0440 GoogleGit \u0441\u043a\u0443\u0434\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f.<\/p>\n<h4>\u041e\u0441\u043c\u043e\u0442\u0440 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0438<\/h4>\n<p>  \u0423\u0447\u0438\u0442\u044c\u0441\u044f \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432\u0441\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u044b \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0443\u0441\u0442\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430. \u0414\u043e\u0431\u044b\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437 <i>ANDROID_STUDIO_DIR\/plugins\/android\/lib\/templates\/other\/BlankFragment<\/i>. \u041b\u0443\u0447\u0448\u0435 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u0435\u0441\u0442\u044c.  <\/p>\n<ul>\n<li><b>globals.xml.ftl<\/b> \u2014 \u043d\u0430\u0431\u043e\u0440 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u043b\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445<\/li>\n<li><b>root\/res\/layout\/fragment_blank.xml.ftl<\/b> \u2014 \u0448\u0430\u0431\u043b\u043e\u043d \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430<\/li>\n<li><b>root\/res\/values\/strings.xml<\/b> \u2014 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442<\/li>\n<li><b>root\/src\/app_package\/BlankFragment.java.ftl<\/b> \u2014 \u0448\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430<\/li>\n<li><b>template.xml<\/b> \u2014 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/li>\n<li><b>template_blank_fragment.png<\/b> \u2014 \u0441\u0430\u043c\u044b\u0439 \u0432\u0430\u0436\u043d\u044b\u0439 \u0444\u0430\u0439\u043b! \u041f\u0438\u043a\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435<\/li>\n<\/ul>\n<p>  \u041f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0440\u0443\u0434\u0430. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u0432 \u043d\u0438\u0445 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0435 \u0441 \u043d\u0443\u043b\u044f. \u0412 \u044d\u0442\u043e\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c <a href=\"https:\/\/android.googlesource.com\/platform\/sdk\/+\/refs\/heads\/master\/templates\/docs\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a><\/p>\n<h4>\u0410 \u0433\u0434\u0435 \u0436\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b?!<\/h4>\n<p>  \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u044e\u0430\u043d\u0441\u0430\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 BlankFragment \u2014 \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0434\u0435\u043b\u0430. \u0427\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f, \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0435. \u041a\u043e\u043c\u0443 \u043b\u0435\u043d\u044c \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043c\u043e\u0433\u0443\u0442 \u0432\u0437\u044f\u0442\u044c \u043c\u043e\u0439. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u0438 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u0412 \u043d\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 MVP, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u044d\u0442\u043e View, \u0430 \u043b\u044e\u0431\u043e\u0439 View \u043d\u0443\u0436\u0435\u043d Presenter. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0432\u0441\u0435, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f Model-\u0441\u043b\u043e\u044f \u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b:  <\/p>\n<ul>\n<li>FragmentView + ViewInterface<\/li>\n<li>FragmentPresenter + PresenterInterface<\/li>\n<\/ul>\n<p>  \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u0430\u043a \u0440\u0430\u0434\u0443\u0436\u043d\u043e. \u041d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u043a \u043d\u0435\u043c\u0443, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u0443 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0432\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435, \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c View-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043a\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0443\u0441\u0442\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441 Presenter-\u043e\u043c. \u0410 \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u0435\u0449\u0435 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0441\u043a\u0438\u0434\u0430\u0442\u044c \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c, \u0432\u044b \u0436\u0435 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u043e\u0434\u043d\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c \u0430\u0434\u043e\u043c \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0432\u0435\u0440\u043d\u043e? \u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c View \u0438 Presenter, \u0447\u0442\u043e \u0442\u043e\u0436\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0440\u0443\u043a\u0430\u043c\u0438. \u0421\u043e \u0432\u0441\u0435\u043c \u044d\u0442\u0438\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0436\u0438\u0442\u044c, \u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0440\u0443\u0442\u0438\u043d\u0430 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0434\u043e\u0435\u0434\u0430\u0435\u0442. \u0422\u0443\u0442 \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b. \u0421 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u044b \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u0438 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432.<\/p>\n<h4>\u0427\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043d\u0438\u0438 \u043a \u0437\u0432\u0435\u0437\u0434\u0430\u043c<\/h4>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 template.xml. \u0418\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0432 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0445 \u043e\u043a\u043d\u0430\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 activity, \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442.\u043f. \u041c\u044b \u043f\u043e\u0439\u0434\u0435\u043c \u043f\u043e \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u043f\u0443\u0442\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0430\u0448 MVP-\u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0430 \u0431\u0430\u0437\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 EmptyActivity. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0431\u0435 \u044d\u0442\u043e\u0442 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0432 MVPActivity \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b <b>template.xml<\/b> \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">template.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot;?&gt; &lt;template     format=&quot;5&quot;     revision=&quot;1&quot;     name=&quot;MVP Activity&quot;     minApi=&quot;7&quot;     minBuildApi=&quot;14&quot;     description=&quot;Creates a new MVP activity&quot;&gt;      &lt;category value=&quot;MVP&quot; \/&gt;     &lt;formfactor value=&quot;Mobile&quot; \/&gt;      &lt;parameter         id=&quot;activityClass&quot;         name=&quot;Activity Name&quot;         type=&quot;string&quot;         constraints=&quot;class|unique|nonempty&quot;         suggest=&quot;${layoutToActivity(layoutName)}&quot;         default=&quot;MainActivity&quot;         help=&quot;The name of the activity class to create&quot; \/&gt;      &lt;parameter         id=&quot;generateLayout&quot;         name=&quot;Generate Layout File&quot;         type=&quot;boolean&quot;         default=&quot;true&quot;         help=&quot;If true, a layout file will be generated&quot; \/&gt;      &lt;parameter         id=&quot;generateView&quot;         name=&quot;Generate View&quot;         type=&quot;boolean&quot;         default=&quot;true&quot;         help=&quot;If true, a View interface will be generated&quot; \/&gt;     &lt;parameter         id=&quot;generatePresenter&quot;         name=&quot;Generate Presenter?&quot;         type=&quot;boolean&quot;         default=&quot;true&quot;         help=&quot;If true, a Presenter interface will be generated&quot; \/&gt;      &lt;parameter         id=&quot;generatePresenterImpl&quot;         name=&quot;Generate Presenter implementation?&quot;         type=&quot;boolean&quot;         default=&quot;true&quot;         help=&quot;If true, a Presenter implementation will be generated&quot; \/&gt;      &lt;parameter         id=&quot;layoutName&quot;         name=&quot;Layout Name&quot;         type=&quot;string&quot;         constraints=&quot;layout|unique|nonempty&quot;         suggest=&quot;${activityToLayout(activityClass)}&quot;         default=&quot;activity_main&quot;         visibility=&quot;generateLayout&quot;         help=&quot;The name of the layout to create for the activity&quot; \/&gt;      &lt;parameter         id=&quot;isLauncher&quot;         name=&quot;Launcher Activity&quot;         type=&quot;boolean&quot;         default=&quot;false&quot;         help=&quot;If true, this activity will have a CATEGORY_LAUNCHER intent filter, making it visible in the launcher&quot; \/&gt;      &lt;parameter         id=&quot;viewName&quot;         name=&quot;View Name&quot;         type=&quot;string&quot;         constraints=&quot;class|nonempty|unique&quot;         default=&quot;MainView&quot;         visibility=&quot;generateView&quot;         suggest=&quot;${underscoreToCamelCase(classToResource(activityClass))}View&quot;         help=&quot;The name of the View interface to create&quot; \/&gt;      &lt;parameter         id=&quot;presenterName&quot;         name=&quot;Presenter Name&quot;         type=&quot;string&quot;         constraints=&quot;class|nonempty|unique&quot;         default=&quot;MainPresenter&quot;         visibility=&quot;generatePresenter&quot;         suggest=&quot;${underscoreToCamelCase(classToResource(activityClass))}Presenter&quot;         help=&quot;The name of the Presenter interface to create&quot; \/&gt;      &lt;parameter         id=&quot;presenterImplName&quot;         name=&quot;Presenter Implementation Name&quot;         type=&quot;string&quot;         constraints=&quot;class|nonempty|unique&quot;         default=&quot;MainPresenterImpl&quot;         visibility=&quot;generatePresenterImpl&quot;         suggest=&quot;${underscoreToCamelCase(classToResource(activityClass))}PresenterImpl&quot;         help=&quot;The name of the presenter implementation class to create&quot; \/&gt;                  &lt;parameter         id=&quot;packageName&quot;         name=&quot;Package name&quot;         type=&quot;string&quot;         constraints=&quot;package&quot;         default=&quot;com.mycompany.myapp&quot; \/&gt;      &lt;!-- 128x128 thumbnails relative to template.xml --&gt;     &lt;thumbs&gt;         &lt;!-- default thumbnail is required --&gt;         &lt;thumb&gt;template_blank_activity.png&lt;\/thumb&gt;     &lt;\/thumbs&gt;      &lt;globals file=&quot;globals.xml.ftl&quot; \/&gt;     &lt;execute file=&quot;recipe.xml.ftl&quot; \/&gt;  &lt;\/template&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u044e\u0430\u043d\u0441\u0430\u0445 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u044f \u0436\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0441\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u044f\u0445. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0431\u043b\u043e\u043a\u0438 \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"xml\">    &lt;parameter         id=&quot;generateView&quot;         name=&quot;Generate View&quot;         type=&quot;boolean&quot;         default=&quot;true&quot;         help=&quot;If true, a View interface will be generated&quot; \/&gt; <\/code><\/pre>\n<p>  \u041a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0447\u0435\u043a\u0431\u043e\u043a\u0441\u043e\u0432, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0445 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c\/\u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0438\u043c\u0435\u043d \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 View \u0438 Presenter-\u043e\u0432:<\/p>\n<pre><code class=\"xml\">    &lt;parameter         id=&quot;viewName&quot;         name=&quot;View Name&quot;         type=&quot;string&quot;         constraints=&quot;class|nonempty|unique&quot;         default=&quot;MainView&quot;         visibility=&quot;generateView&quot;         suggest=&quot;${underscoreToCamelCase(classToResource(activityClass))}View&quot;         help=&quot;The name of the View interface to create&quot; \/&gt; <\/code><\/pre>\n<p>  \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <b>visibility<\/b>. \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u043d\u0435\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d id-\u0448\u043d\u0438\u043a \u0447\u0435\u043a\u0431\u043e\u043a\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0436\u0435 \u043c\u0430\u0433\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <b>suggest<\/b>. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f, \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u043c \u0441\u0443\u0444\u0444\u0438\u043a\u0441 \u2018Activity\u2019 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u0443\u0444\u0444\u0438\u043a\u0441 \u2018View\u2019. \u0421 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0434\u0443\u043c\u0430\u044e, \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0430\u043b\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041a\u0430\u043a \u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u043e \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <b>root\/src<\/b>. \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<ul>\n<li>root\/src<br \/> \n<ul>\n<li>app_package<br \/> \n<ul>\n<li>presentation<br \/> \n<ul>\n<li>implementation<\/li>\n<li>presenter<\/li>\n<li>view<\/li>\n<\/ul>\n<p>   <\/li>\n<li>ui<br \/> \n<ul>\n<li>activity<\/li>\n<\/ul>\n<p>   <\/li>\n<\/ul>\n<p>   <\/li>\n<\/ul>\n<p>   <\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438. \u041d\u0430\u0447\u043d\u0435\u043c \u0441 <b>SimpleActivity.java.ftl<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u043c \u043f\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0443 \u043e\u0442 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u0415\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 ui\/activity \u0438 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">SimpleActivity.java.ftl<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package ${packageName}.ui.activity;  import ${superClassFqcn}; import android.os.Bundle;  import ${packageName}.R; &lt;#if generateView&gt;import ${packageName}.presentation.view.${viewName};&lt;\/#if&gt; &lt;#if generatePresenter&gt;import ${packageName}.presentation.presenter.${presenterName};&lt;\/#if&gt; &lt;#if generatePresenterImpl&gt;import ${packageName}.presentation.implementation.${presenterImplName};&lt;\/#if&gt;  public class ${activityClass} extends ${superClass} &lt;#if generateView&gt;implements ${viewName}&lt;\/#if&gt;{ &lt;#if generatePresenter&gt;     private ${presenterName} mPresenter; &lt;\/#if&gt;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState); &lt;#if generateLayout&gt;         setContentView(R.layout.${layoutName}); &lt;\/#if&gt; &lt;#if generatePresenterImpl&gt; \tmPresenter = new ${presenterImplName}(this); &lt;\/#if&gt;     }  &lt;#if generatePresenter&gt;     @Override     protected void onDestroy() {         mPresenter.onDestroy();         super.onDestroy();     } &lt;\/#if&gt; } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 View, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u0435 Presenter-\u0430. \u0422\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u043d\u0435\u0435 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u0438 \u0432\u0435\u0449\u0438 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438, \u044d\u0442\u043e \u0438 \u0431\u044b\u043b\u043e \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u043e \u0432 \u043a\u043e\u0434\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 &lt;#if&gt;&#8230;&lt;\/#if&gt;.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0434\u0430\u0447\u043a\u0430 \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u043f\u043e\u0441\u043b\u043e\u0436\u043d\u0435\u0435: \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u043d\u0443\u043b\u044f. \u041d\u043e \u043d\u0435 \u043f\u0443\u0433\u0430\u0439\u0442\u0435\u0441\u044c, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0440\u0430\u043d\u0435\u0435 \u0437\u043d\u0430\u043d\u0438\u0439 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0423 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">SimpleView.java.ftl<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package ${packageName}.presentation.view;  public interface ${viewName} {  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">SimplePresenter.java.ftl<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package ${packageName}.presentation.presenter;  public interface ${presenterName} { \t \tvoid onDestroy(); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">SimplePresenterImpl.java.ftl<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package ${packageName}.presentation.implementation;  import ${packageName}.presentation.view.${viewName}; import ${packageName}.presentation.presenter.${presenterName};  public class ${presenterImplName} implements ${presenterName} {  \tprivate ${viewName} mView;  \tpublic ${presenterImplName}(final ${viewName} view) {         mView = view;     }      @Override     public void onDestroy() {         mView = null;     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0432\u043e\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u0435. \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u044b \u0433\u043e\u0442\u043e\u0432\u044b, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0440\u0435\u0446\u0435\u043f\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0440\u0430.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">recipe.xml.ftl<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">recipe.xml.ftl <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0437\u0434\u0435\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442. \u0424\u0430\u0439\u043b <b>globals.xml.ftl<\/b> \u043c\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u0438\u043b\u0438 \u0432\u0437\u044f\u0442\u044c \u043c\u043e\u044e.<\/p>\n<h4>The End<\/h4>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u044b\u043c. \u041f\u0440\u0438\u0448\u043b\u0430 \u043f\u043e\u0440\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0430\u0435\u043c \u0432 <i>ANDROID_STUDIO_DIR\/plugins\/android\/lib\/templates\/activities<\/i> \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441 \u043d\u0430\u0448\u0438\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c MVPActivity. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0442\u0443\u0434\u0438\u044e, \u0438\u0434\u0435\u043c \u0432 File -&gt; New, \u0438\u0449\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e MVP, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0438\u0437 \u043d\u0435\u0435 \u043d\u0430\u0448 \u0448\u0430\u0431\u043b\u043e\u043d \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u043c\u0443\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443.<\/p>\n<p>  \u0418 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u044f \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0438\u0445 \u0437\u0434\u0435\u0441\u044c \u043e\u0431\u0449\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c:  <\/p>\n<ul>\n<li><a href=\"http:\/\/freemarker.incubator.apache.org\/\">FreeMarker<\/a><\/li>\n<li><a href=\"https:\/\/android.googlesource.com\/platform\/sdk\/+\/refs\/heads\/master\/templates\/docs\/\">Android IDE Template Format<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Fi5t\/MVPActivity\">\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0448\u0430\u0431\u043b\u043e\u043d<\/a><\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/274897\/\"> http:\/\/habrahabr.ru\/post\/274897\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/274897\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b10\/66d\/afb\/b1066dafb3044162b3a41e94305f5e93.png\"\/><\/a><\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 <s>\u0441\u043e\u0431\u0430\u043a\u0435<\/s> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 \u043d\u0435\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043e\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u0441\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u043d\u0435 \u043f\u043e \u0440\u043e\u0434\u0443 \u0441\u0432\u043e\u0435\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435 \u0432\u0435\u0449\u0438 \u043e\u0431\u043e\u0431\u0449\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0434\u043b\u044f Android Studio. \u041e \u043d\u0438\u0445 \u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c.<\/p>\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-271977","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271977","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=271977"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271977\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}