{"id":289826,"date":"2018-09-24T17:00:02","date_gmt":"2018-09-24T13:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=289826"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=289826","title":{"rendered":"\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BottomAppBar. \u0427\u0430\u0441\u0442\u044c 3: \u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f Android"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1A5NqD41YVdm24UtSUV-ia8TNkp6l63PE\" alt=\"\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BottomAppBar. \u0427\u0430\u0441\u0442\u044c 3: \u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f Android\"\/><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/material.io\/develop\/android\/components\/bottom-app-bar\/\">BottomAppBar<\/a> \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u043e\u0432\u044b\u0445 Android Material \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 <a href=\"https:\/\/events.google.com\/io\/\">Google I\/O 2018<\/a>. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044e Navigation Drawer \u0438 \u043c\u0435\u043d\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u044d\u043a\u0440\u0430\u043d\u0430, BottomAppBar \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/post\/421879\/\">\u043f\u0435\u0440\u0432\u043e\u0439<\/a> \u0438 <a href=\"https:\/\/habr.com\/post\/421881\/\">\u0432\u0442\u043e\u0440\u043e\u0439<\/a> \u0447\u0430\u0441\u0442\u044f\u0445 \u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e BottomAppBar \u043c\u044b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441 BottomAppBar \u0438 \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438 \u0435\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043b\u0438, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c Navigation Drawer \u0438 \u043c\u0435\u043d\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 BottomAppBar.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"povedenie\">\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e Material Design, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u043c\u0438. \u041e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0442.\u0435. \u0438\u043c\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. Material Design \u0442\u0430\u043a\u0436\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u043a\u0438\u0435 \u0440\u0430\u043c\u043a\u0438 \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u043c \u0434\u0435\u0442\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f BottomAppBar, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/material.io\/design\/components\/app-bars-bottom.html#behavior\">\u0433\u0430\u0439\u0434\u043b\u0430\u0439\u043d\u043e\u0432 \u0434\u043b\u044f BottomAppBar<\/a>.<\/p>\n<p>  <\/p>\n<h3 id=\"maket\">\u041c\u0430\u043a\u0435\u0442<\/h3>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0433\u0430\u0439\u0434\u043b\u0430\u0439\u043d \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043c\u0430\u043a\u0435\u0442 BottomAppBar. \u0412\u043e\u0442 <a href=\"https:\/\/material.io\/design\/assets\/1KJSld6h82fzkcafrHCDFPOITibpWxF-5\/behavior-layout-primary.mp4\">\u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f<\/a>:<\/p>\n<p>  <\/p>\n<blockquote><p><em>\u0414\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0430\u043a\u0435\u0442 \u0438 \u043d\u0430\u0431\u043e\u0440 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043c\u0435\u043d\u044e \u0432 BottomAppBar. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043c\u0435\u043d\u044e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430.<\/em><\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1qOT38Cm7aYBoSdbIQPylhwJfIJhdkuIe\" alt=\"\u0413\u0430\u0439\u0434\u043b\u0430\u0439\u043d \u043c\u0430\u043a\u0435\u0442\u0430\"\/><\/p>\n<p>  <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u043c \u0433\u0430\u0439\u0434\u043b\u0430\u0439\u043d\u0435, \u043d\u0430 <em>\u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u0430\u0445<\/em> \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u043a\u0435\u0442 BottomAppBar, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0432 \u043c\u0435\u043d\u044e \u0438 \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e FAB (Floating Action Button). \u041d\u0430 <em>\u0432\u0442\u043e\u0440\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u0430\u0445<\/em>, \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u0445, \u043c\u0430\u043a\u0435\u0442 BottomAppBar \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0432\u044b\u0440\u043e\u0432\u043d\u0435\u043d\u043d\u043e\u0439 \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e FAB \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0432 \u043c\u0435\u043d\u044e. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u044b \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u044d\u043a\u0440\u0430\u043d\u0430\u043c\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. Gif \u0441\u0432\u0435\u0440\u0445\u0443 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0433\u0430\u0439\u0434\u043b\u0430\u0439\u043d.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 xml-\u0444\u0430\u0439\u043b\u0430 \u0432 \u043f\u0430\u043f\u043a\u0435 <code>res\/menu<\/code> \u0434\u043b\u044f \u043c\u0435\u043d\u044e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;menu xmlns:tools=&quot;http:\/\/schemas.android.com\/tools&quot;     xmlns:app=&quot;http:\/\/schemas.android.com\/apk\/res-auto&quot;     xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;&gt;      &lt;item         android:id=&quot;@+id\/app_bar_search&quot;         android:icon=&quot;@drawable\/baseline_search_white_24&quot;         android:title=&quot;@string\/action_search&quot;         app:showAsAction=&quot;ifRoom&quot;\/&gt;  &lt;\/menu&gt;<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;menu xmlns:tools=&quot;http:\/\/schemas.android.com\/tools&quot;     xmlns:app=&quot;http:\/\/schemas.android.com\/apk\/res-auto&quot;     xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;&gt;      &lt;item         android:id=&quot;@+id\/app_bar_mail&quot;         android:icon=&quot;@drawable\/baseline_mail_white_24&quot;         android:title=&quot;@string\/action_mail&quot;         app:showAsAction=&quot;ifRoom&quot;\/&gt;      &lt;item         android:id=&quot;@+id\/app_bar_delete&quot;         android:icon=&quot;@drawable\/baseline_delete_white_24&quot;         android:title=&quot;@string\/action_delete&quot;         app:showAsAction=&quot;ifRoom&quot;\/&gt;      &lt;item         android:id=&quot;@+id\/app_bar_archieve&quot;         android:icon=&quot;@drawable\/baseline_archive_white_24&quot;         android:title=&quot;@string\/action_archieve&quot;         app:showAsAction=&quot;ifRoom&quot;\/&gt;  &lt;\/menu&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u044d\u043a\u0440\u0430\u043d\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043d\u043e\u043f\u043a\u0438 <em>TOGGLE SCREEN<\/em> \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u0430\u043a\u0435\u0442 BottomAppBar, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043c\u0435\u043d\u044e \u0438 FAB, \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f. \u0412\u043e\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043c\u0430\u043a\u0435\u0442\u0430 BottomAppBar:<\/p>\n<p>  <\/p>\n<pre><code>\/\/ Hide navigation drawer icon bottom_app_bar.navigationIcon = null  \/\/ Move FAB from the center of BottomAppBar to the end of it bottom_app_bar.fabAlignmentMode = BottomAppBar.FAB_ALIGNMENT_MODE_END  \/\/ Replace the action menu bottom_app_bar.replaceMenu(bottomappbar_menu_secondary)  \/\/ Change FAB icon fab?.setImageDrawable(baseline_reply_white_24)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b, \u043d\u0443\u0436\u0435\u043d \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0451\u043d\u043d\u044b\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0439\u0434\u0451\u0442\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  <\/p>\n<h3 id=\"skrollirovanie\">\u0421\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<p>\u0421\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u2014\u00a0\u0432\u0430\u0436\u043d\u044b\u0439 \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u0430\u043a BottomAppBar. \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0433\u0430\u0439\u0434\u043b\u0430\u0439\u043d\u043e\u0432 Material Design \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f:<\/p>\n<p>  <\/p>\n<blockquote><p><em>\u041f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 BottomAppBar \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442\u044c:<br \/>  \u2014\u00a0\u0421\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0438\u0437 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 BottomAppBar. \u0415\u0441\u043b\u0438 \u043d\u0430 \u043d\u0451\u043c \u0431\u044b\u043b\u0430 FAB, \u043e\u043d\u0430 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<br \/>  \u2014\u00a0\u0421\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0432\u0435\u0440\u0445 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 BottomAppBar \u0438 \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u043a FAB, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0442\u0430\u043c \u0431\u044b\u043b\u0430.<\/em><\/p><\/blockquote>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f BottomAppBar \u043f\u0440\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1CKxIFgoMuXIZePHZ-kRPBsjgbK05hvp7\" alt=\"\u0421\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 BottomAppBar\"\/><\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, BottomAppBar \u0438 FAB \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 <a href=\"https:\/\/developer.android.com\/reference\/android\/support\/design\/widget\/CoordinatorLayout\">CoordinatorLayout<\/a>. \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c <em>hideOnScroll<\/em> \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0444\u043b\u0430\u0433\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f BottomAppBar:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;com.google.android.material.bottomappbar.BottomAppBar     android:id=&quot;@+id\/bottom_app_bar&quot;     android:layout_width=&quot;match_parent&quot;     android:layout_height=&quot;wrap_content&quot;     android:layout_gravity=&quot;bottom&quot;     app:fabAlignmentMode=&quot;center&quot;     app:hideOnScroll=&quot;true&quot;     app:layout_scrollFlags=&quot;scroll|enterAlways&quot;\/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f BottomAppBar.<\/p>\n<p>  <\/p>\n<h3 id=\"vozvyshenie\">\u0412\u043e\u0437\u0432\u044b\u0448\u0435\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<p>\u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0432 \u043c\u0438\u0440\u0435 Material Design \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u0432\u044b\u0448\u0435\u043d\u0438\u0435, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u043d\u0430\u0448\u0435\u043c\u0443 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043c\u0438\u0440\u0443. \u0423 BottomAppBar \u0432\u043e\u0437\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u2014 <em>8dp<\/em>, \u0430 \u0441\u0430\u043c\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u0432\u043e\u0437\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <em>0dp<\/em>. FAB \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0432\u043e\u0437\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <em>12dp<\/em>. \u0414\u0432\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0435\u0449\u0451 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, Navigation Drawer \u0438 Snackbar, \u0432\u043e\u0437\u0432\u044b\u0448\u0430\u044e\u0442\u0441\u044f \u043d\u0430 <em>16dp<\/em> \u0438 <em>6dp<\/em> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, Snackbar \u2014 \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043b\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0432\u044b\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0438\u0437 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430. \u041d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0435\u0441\u0442\u044c BottomAppBar \u0438\u043b\u0438 Navigation Drawer, \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 Snackbar \u0434\u043e\u043b\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f. \u0412 \u044d\u0442\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 Snackbar \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c <strong>\u043d\u0430\u0434<\/strong> \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438. \u0412\u043e\u0442 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1duPRNVKW1eaCYp5QZqbqH8-v5MEakfLV\" alt=\"Snackbar \u0438 BottomAppBar\"\/><\/p>\n<p>  <\/p>\n<pre><code>private fun displayMaterialSnackBar() {         val marginSide = 0         val marginBottom = 550         val snackbar = Snackbar.make(                 coordinatorLayout2,                 &quot;FAB Clicked&quot;,                 Snackbar.LENGTH_LONG         ).setAction(&quot;UNDO&quot;) {  }         \/\/ Changing message text color         snackbar.setActionTextColor(ContextCompat.getColor(this, R.color.colorSnackbarButton))          val snackbarView = snackbar.view         val params = snackbarView.layoutParams as CoordinatorLayout.LayoutParams          params.setMargins(                 params.leftMargin + marginSide,                 params.topMargin,                 params.rightMargin + marginSide,                 params.bottomMargin + marginBottom         )          snackbarView.layoutParams = params         snackbar.show() }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438, Navigation Drawer \u0432\u043e\u0437\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <em>16dp<\/em>, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u2014 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0433\u0430\u0439\u0434\u043b\u0430\u0439\u043d\u0443 \u2014<\/p>\n<p>  <\/p>\n<blockquote><p><em>\u041c\u0435\u043d\u044e, \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0438\u0437 BottomAppBar (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Navigation Drawer), \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u043a\u043d\u0430 \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u0441\u0430\u043c BottomAppBar.<\/em><\/p><\/blockquote>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e Navigation Drawer:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1DDDGP-FT0Ylb269JZpS0xKX2L51uWPi1\" alt=\"\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 Navigation Drawer\"\/><\/p>\n<p>  <\/p>\n<p>Navigation Drawer \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <a href=\"https:\/\/material.io\/develop\/android\/components\/bottom-sheet-dialog-fragment\/\">\u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u043a\u043d\u043e\u043c<\/a> \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u043c\u0443 \u0432\u044b\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  <\/p>\n<p>\u0414\u0435\u0442\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u0412 \u043f\u0430\u043f\u043a\u0435 <code>res\/menu<\/code> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d xml-\u0444\u0430\u0439\u043b \u043c\u0435\u043d\u044e \u0434\u043b\u044f <a href=\"https:\/\/developer.android.com\/reference\/android\/support\/design\/widget\/NavigationView\">Navigation View<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0432 Navigation Drawer:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;menu xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;     xmlns:app=&quot;http:\/\/schemas.android.com\/apk\/res-auto&quot;&gt;     &lt;group android:checkableBehavior=&quot;none&quot;&gt;         &lt;item             android:id=&quot;@+id\/nav1&quot;             android:icon=&quot;@drawable\/baseline_mail_white_24&quot;             android:title=&quot;@string\/nav_item1&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav2&quot;             android:icon=&quot;@drawable\/baseline_bookmark_white_24&quot;             android:title=&quot;@string\/nav_item2&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav3&quot;             android:icon=&quot;@drawable\/baseline_message_white_24&quot;             android:title=&quot;@string\/nav_item3&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav4&quot;             android:icon=&quot;@drawable\/baseline_note_white_24&quot;             android:title=&quot;@string\/nav_item4&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav5&quot;             android:icon=&quot;@drawable\/baseline_location_on_white_24&quot;             android:title=&quot;@string\/nav_item5&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav6&quot;             android:icon=&quot;@drawable\/baseline_sync_white_24&quot;             android:title=&quot;@string\/nav_item6&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav7&quot;             android:icon=&quot;@drawable\/baseline_cloud_upload_white_24&quot;             android:title=&quot;@string\/nav_item7&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav8&quot;             android:icon=&quot;@drawable\/baseline_favorite_white_24&quot;             android:title=&quot;@string\/nav_item8&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav9&quot;             android:icon=&quot;@drawable\/baseline_chrome_reader_mode_white_24&quot;             android:title=&quot;@string\/nav_item9&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav10&quot;             android:icon=&quot;@drawable\/baseline_select_all_white_24&quot;             android:title=&quot;@string\/nav_item10&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav11&quot;             android:icon=&quot;@drawable\/baseline_sort_white_24&quot;             android:title=&quot;@string\/nav_item11&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav12&quot;             android:icon=&quot;@drawable\/baseline_access_time_white_24&quot;             android:title=&quot;@string\/nav_item12&quot; \/&gt;         &lt;item             android:id=&quot;@+id\/nav13&quot;             android:icon=&quot;@drawable\/baseline_data_usage_white_24&quot;             android:title=&quot;@string\/nav_item13&quot; \/&gt;      &lt;\/group&gt; &lt;\/menu&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d \u0444\u0430\u0439\u043b \u043c\u0430\u043a\u0435\u0442\u0430 \u0434\u043b\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0433\u043e Navigation Drawer:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;     xmlns:app=&quot;http:\/\/schemas.android.com\/apk\/res-auto&quot;     xmlns:tools=&quot;http:\/\/schemas.android.com\/tools&quot;     android:id=&quot;@+id\/navigation_view_layout&quot;     android:layout_width=&quot;match_parent&quot;     android:layout_height=&quot;wrap_content&quot;     app:behavior_hideable=&quot;true&quot;     app:layout_behavior=&quot;@string\/bottom_sheet_behavior&quot;&gt;      &lt;com.google.android.material.navigation.NavigationView         android:id=&quot;@+id\/navigation_view&quot;         android:layout_width=&quot;match_parent&quot;         android:layout_height=&quot;wrap_content&quot;         android:layout_gravity=&quot;bottom&quot;         android:layout_marginTop=&quot;4dp&quot;         android:paddingBottom=&quot;40dp&quot;         app:layout_constraintEnd_toEndOf=&quot;parent&quot;         app:layout_constraintHorizontal_bias=&quot;0.0&quot;         app:layout_constraintStart_toStartOf=&quot;parent&quot;         app:layout_constraintTop_toBottomOf=&quot;@+id\/view2&quot;         app:menu=&quot;@menu\/bottom_nav_drawer_menu&quot;         app:theme=&quot;@style\/NavigationDrawerStyle&quot; \/&gt;      &lt;TextView         android:id=&quot;@+id\/textView&quot;         android:layout_width=&quot;wrap_content&quot;         android:layout_height=&quot;wrap_content&quot;         android:layout_marginStart=&quot;12dp&quot;         android:layout_marginTop=&quot;16dp&quot;         android:fontFamily=&quot;@font\/rubik_medium&quot;         android:text=&quot;@string\/bottom_sheet_name&quot;         android:textColor=&quot;@color\/colorAccent&quot;         android:textSize=&quot;18sp&quot;         android:textStyle=&quot;bold&quot;         app:layout_constraintStart_toEndOf=&quot;@+id\/imageView&quot;         app:layout_constraintTop_toTopOf=&quot;parent&quot; \/&gt;      &lt;TextView         android:id=&quot;@+id\/textView2&quot;         android:layout_width=&quot;wrap_content&quot;         android:layout_height=&quot;wrap_content&quot;         android:layout_marginTop=&quot;2dp&quot;         android:text=&quot;@string\/bottom_sheet_email&quot;         android:textColor=&quot;@color\/colorAccent&quot;         app:layout_constraintStart_toStartOf=&quot;@+id\/textView&quot;         app:layout_constraintTop_toBottomOf=&quot;@+id\/textView&quot; \/&gt;      &lt;ImageView         android:id=&quot;@+id\/imageView&quot;         android:layout_width=&quot;48dp&quot;         android:layout_height=&quot;48dp&quot;         android:layout_marginStart=&quot;24dp&quot;         android:background=&quot;@drawable\/baseline_account_circle_black_48&quot;         app:layout_constraintStart_toStartOf=&quot;parent&quot;         app:layout_constraintTop_toTopOf=&quot;@+id\/textView&quot; \/&gt;      &lt;View         android:id=&quot;@+id\/view2&quot;         android:layout_width=&quot;match_parent&quot;         android:layout_height=&quot;2dip&quot;         android:layout_marginTop=&quot;15dp&quot;         android:background=&quot;#447e7e7e&quot;         app:layout_constraintEnd_toEndOf=&quot;parent&quot;         app:layout_constraintHorizontal_bias=&quot;0.0&quot;         app:layout_constraintStart_toStartOf=&quot;parent&quot;         app:layout_constraintTop_toBottomOf=&quot;@+id\/textView2&quot; \/&gt;      &lt;ImageView         android:id=&quot;@+id\/close_imageview&quot;         android:layout_width=&quot;24dp&quot;         android:layout_height=&quot;24dp&quot;         android:layout_marginTop=&quot;8dp&quot;         android:layout_marginEnd=&quot;16dp&quot;         android:layout_marginBottom=&quot;8dp&quot;         android:background=&quot;@drawable\/baseline_close_black_24&quot;         android:visibility=&quot;gone&quot;         app:layout_constraintBottom_toBottomOf=&quot;@+id\/textView2&quot;         app:layout_constraintEnd_toEndOf=&quot;parent&quot;         app:layout_constraintTop_toTopOf=&quot;@+id\/textView&quot; \/&gt;  &lt;\/androidx.constraintlayout.widget.ConstraintLayout&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043c\u0430\u043a\u0435\u0442\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 Navigation View \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043c\u0430\u043a\u0435\u0442 \u0434\u043b\u044f Navigation Drawer. \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0430\u043a\u0435\u0442, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043a\u043b\u0430\u0441\u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430, \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0438\u0439 BottomSheetDialogFragment:<\/p>\n<p>  <\/p>\n<pre><code>class BottomNavigationDrawerFragment: BottomSheetDialogFragment() {      override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {         return inflater.inflate(R.layout.fragment_bottom_navigation_drawer, container, false)     }      override fun onActivityCreated(savedInstanceState: Bundle?) {         super.onActivityCreated(savedInstanceState)          navigation_view.setNavigationItemSelectedListener { menuItem -&gt;             \/\/ Bottom Navigation Drawer menu item clicks             when (menuItem.itemId) {                 \/\/ R.id.nav1 -&gt; context!!.toast(getString(R.string.nav1_clicked))             }             \/\/ Add code here to update the UI based on the item selected             \/\/ For example, swap UI fragments here             true         }     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u0437\u043d\u0430\u0447\u043a\u0443 Navigation Drawer \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u044d\u0442\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430:<\/p>\n<p>  <\/p>\n<pre><code>override fun onOptionsItemSelected(item: MenuItem?): Boolean {         when (item!!.itemId) {             android.R.id.home -&gt; {                 val bottomNavDrawerFragment = BottomNavigationDrawerFragment()                 bottomNavDrawerFragment.show(supportFragmentManager, bottomNavDrawerFragment.tag)             }         }         return true }<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u043d\u0430\u0448\u0443 \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e BottomAppBar. \u041d\u0430\u0439\u0442\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/github.com\/firatkarababa\/BottomAppBarBehaviour\">Github<\/a>. \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/habr.com\/post\/421879\/\">\u2190 \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BottomAppBar. \u0427\u0430\u0441\u0442\u044c 1: Material \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f Android<\/a><br \/>  <a href=\"https:\/\/habr.com\/post\/421881\/\">\u2190 \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BottomAppBar. \u0427\u0430\u0441\u0442\u044c 2: \u041c\u0435\u043d\u044e \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Navigation Drawer<\/a><\/p>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <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\/post\/422445\/\"> https:\/\/habr.com\/post\/422445\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1A5NqD41YVdm24UtSUV-ia8TNkp6l63PE\" alt=\"\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f BottomAppBar. \u0427\u0430\u0441\u0442\u044c 3: \u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f Android\"\/><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/material.io\/develop\/android\/components\/bottom-app-bar\/\">BottomAppBar<\/a> \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u043e\u0432\u044b\u0445 Android Material \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 <a href=\"https:\/\/events.google.com\/io\/\">Google I\/O 2018<\/a>. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044e Navigation Drawer \u0438 \u043c\u0435\u043d\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u044d\u043a\u0440\u0430\u043d\u0430, BottomAppBar \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u0412 <a href=\"https:\/\/habr.com\/post\/421879\/\">\u043f\u0435\u0440\u0432\u043e\u0439<\/a> \u0438 <a href=\"https:\/\/habr.com\/post\/421881\/\">\u0432\u0442\u043e\u0440\u043e\u0439<\/a> \u0447\u0430\u0441\u0442\u044f\u0445 \u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e BottomAppBar \u043c\u044b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441 BottomAppBar \u0438 \u043e\u0431\u0441\u0443\u0434\u0438\u043b\u0438 \u0435\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043b\u0438, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c Navigation Drawer \u0438 \u043c\u0435\u043d\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 BottomAppBar.<\/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-289826","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289826","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=289826"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289826\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}