{"id":289512,"date":"2018-09-17T17:00:02","date_gmt":"2018-09-17T13:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=289512"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=289512","title":{"rendered":"\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"},"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=1RhB9No63B9Pvl7YdknjDFs2qQqGY5OSz\" alt=\"\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\"\/><\/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>. \u042d\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 <a href=\"https:\/\/developer.android.com\/reference\/android\/widget\/Toolbar\">Toolbar<\/a>. \u041d\u043e\u0432\u044b\u0439 BottomAppBar \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043e\u043a\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0442\u0443\u043b\u0431\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0435\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 Material Design \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 (UX). BottomAppBar \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0442\u0443\u043b\u0431\u0430\u0440\u043e\u043c. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u0435\u043d\u044e \u0432 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, BottomAppBar \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u0434\u043b\u044f Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u0435 \u0441 BottomAppBar \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <a href=\"https:\/\/material.io\/develop\/android\/components\/floating-action-button\/\">Floating Action Button (FAB)<\/a> (\u0440\u0443\u0441. <em>\u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/em>). \u0422\u0435\u043f\u0435\u0440\u044c FAB \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u043b\u0438\u0431\u043e \u00ab\u0432\u0440\u0435\u0437\u0430\u044f\u0441\u044c\u00bb \u0432 BottomAppBar, \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u044f \u0435\u0433\u043e.<\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0441\u043d\u043e\u0432 BottomAppBar \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f FAB.<\/p>\n<p>  <\/p>\n<h2 id=\"nastroyka\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c Material \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e Android \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/material-components\/material-components-android\/blob\/master\/docs\/getting-started.md\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435<\/a>. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 \u044d\u0442\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/developer.android.com\/studio\/preview\/\">Android Studio 3.2 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0448\u0430\u0433\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>1.\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Google Maven \u0432 \u0444\u0430\u0439\u043b\u0435 <code>build.gradle<\/code>.<\/p>\n<p>  <\/p>\n<pre><code>allprojects {     repositories {       jcenter()       maven {         url &quot;https:\/\/maven.google.com&quot;       }     }   }<\/code><\/pre>\n<p>  <\/p>\n<p>2.\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043b\u044f material \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>build.gradle<\/code>. \u0418\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<pre><code>implementation 'com.google.android.material:material:1.0.0-alpha1'<\/code><\/pre>\n<p>  <\/p>\n<p>3.\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <code>compileSdkVersion<\/code> \u0438 <code>targetSdkVersion<\/code> \u0432\u0435\u0440\u0441\u0438\u044e API \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043b\u044f Android P (\u0442.\u0435. 28 \u0438 \u0432\u044b\u0448\u0435).<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=19FUj1OxDEOZIcYdWo00CcOm1eIpo5Jij\" alt=\"compileSdkVersion \u0438 targetSdkVersion\"\/><\/p>\n<p>  <\/p>\n<p>4.\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0442\u0435\u043c\u0443 <em>Theme.MaterialComponents<\/em>, \u0447\u0442\u043e\u0431\u044b BottomAppBar \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u0430\u043c\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u044c \u0434\u043b\u044f BottomAppBar \u043f\u0440\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0432 XML-\u0444\u0430\u0439\u043b\u0435 \u043c\u0430\u043a\u0435\u0442\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">style=\u201d@style\/Widget.MaterialComponents.BottomAppBar\u201d<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"realizaciya\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c BottomAppBar \u0432 \u0441\u0432\u043e\u0439 \u043c\u0430\u043a\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u0422\u0430\u043a\u0436\u0435 BottomAppBar \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c <a href=\"https:\/\/developer.android.com\/reference\/android\/support\/design\/widget\/CoordinatorLayout\">CoordinatorLayout<\/a>.<\/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:backgroundTint=&quot;@color\/colorPrimary&quot;     app:fabAlignmentMode=&quot;center&quot;     app:fabAttached=&quot;true&quot;     app:navigationIcon=&quot;@drawable\/baseline_menu_white_24&quot;\/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1Tpb83Z8-AXoz7qUsdIJMNw8jcqlcCPqx\" alt=\"BottomAppBar\"\/><\/p>\n<p>  <\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c FAB \u043a BottomAppBar, \u0443\u043a\u0430\u0437\u0430\u0432 <code>id<\/code> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 BottomAppBar \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <code>app:layout_anchor<\/code> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 FAB. BottomAppBar \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0432\u043e\u043b\u0430\u043a\u0438\u0432\u0430\u0442\u044c FAB \u0438\u043b\u0438 FAB \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0442\u044c BottomAppBar.<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;com.google.android.material.floatingactionbutton.FloatingActionButton     android:id=&quot;@+id\/fab&quot;     android:layout_width=&quot;wrap_content&quot;     android:layout_height=&quot;wrap_content&quot;     android:src=&quot;@drawable\/baseline_add_white_24&quot;     app:layout_anchor=&quot;@id\/bottom_app_bar&quot; \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1QOxfW4rIXNGypv1Q9Ytz_NLC7GMC7Ecj\" alt=\"BottomAppBar \u043e\u0431\u0432\u043e\u043b\u0430\u043a\u0438\u0432\u0430\u0435\u0442 FAB\"\/><\/p>\n<p>  <\/p>\n<h2 id=\"atributy-bottomappbar\">\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b BottomAppBar<\/h2>\n<p>  <\/p>\n<p>\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b BottomAppBar.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1N8uMj8WRLpJA6cXaQLiHnbiScM9UcoKT\" alt=\"\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b BottomAppBar\"\/><\/p>\n<p>  <\/p>\n<h3 id=\"backgroundtint\">backgroundTint<\/h3>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430 BottomAppBar.<\/p>\n<p>  <\/p>\n<h3 id=\"fabalignmentmode\">fabAlignmentMode<\/h3>\n<p>  <\/p>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 FAB (\u043b\u0438\u0431\u043e \u0432 \u0446\u0435\u043d\u0442\u0440\u0435, \u043b\u0438\u0431\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 BottomAppBar). \u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 FAB \u0432 \u043a\u043e\u043d\u0446\u0435 BottomAppBar.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1KWsd53xYH-HdO58rqa0fi2Tkql4ZurEa\" alt=\"fabAlignmentMode: end\"\/><\/p>\n<p>  <\/p>\n<h3 id=\"fabattached\">fabAttached<\/h3>\n<p>  <\/p>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 FAB \u043a BottomAppBar \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <em>true<\/em> \u0438\u043b\u0438 <em>false<\/em>. \u0425\u043e\u0442\u044f \u043f\u043e <a href=\"https:\/\/material.io\/design\/components\/app-bars-bottom.html#anatomy\">\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443 \u043f\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0443<\/a> \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c FAB \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 BottomAppBar, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f. \u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <code>fabAttached<\/code> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>false<\/em>.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1Hd3OeOn8BAtQ3KvonaKRSRdH-rRlA-E0\" alt=\"fabAlignmentMode: end, fabAttached: false\"\/><\/p>\n<p>  <\/p>\n<h3 id=\"fabcradlediameter\">fabCradleDiameter<\/h3>\n<p>  <\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u0438\u0430\u043c\u0435\u0442\u0440 \u00ab\u043a\u043e\u043b\u044b\u0431\u0435\u043b\u0438\u00bb, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 FAB.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1_vOmI6ib0En3V3QIy_T4dkZfi01AC3KI\" alt=\"\u0414\u0438\u0430\u043c\u0435\u0442\u0440 \u00ab\u043a\u043e\u043b\u044b\u0431\u0435\u043b\u0438\u00bb\"\/><\/p>\n<p>  <\/p>\n<h3 id=\"fabcradleroundedcornerradius\">fabCradleRoundedCornerRadius<\/h3>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0451\u0442 \u0440\u0430\u0434\u0438\u0443\u0441 \u0443\u0433\u043b\u0430 \u0432 \u0442\u043e\u0447\u043a\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0438 \u00ab\u043a\u043e\u043b\u044b\u0431\u0435\u043b\u0438\u00bb \u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 BottomAppBar.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=1xsLPnUv6ZdVED3sFMJ6cQ574oNCsE81N\" alt=\"\u0420\u0430\u0434\u0438\u0443\u0441 \u0443\u0433\u043b\u0430 \u00ab\u043a\u043e\u043b\u044b\u0431\u0435\u043b\u0438\u00bb\"\/><\/p>\n<p>  <\/p>\n<h3 id=\"fabcradleverticaloffset\">fabCradleVerticalOffset<\/h3>\n<p>  <\/p>\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u00ab\u043a\u043e\u043b\u044b\u0431\u0435\u043b\u0438\u00bb \u0441\u043d\u0438\u0437\u0443.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/drive.google.com\/uc?id=19t0OrMzst6D4Q2Ci6Dc7zWvcxvrjUYX2\" alt=\"\u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u00ab\u043a\u043e\u043b\u044b\u0431\u0435\u043b\u0438\u00bb\"\/><\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0432\u0435\u0441\u044c XML-\u0444\u0430\u0439\u043b \u043c\u0430\u043a\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432.<\/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:layout_width=&quot;match_parent&quot;     android:layout_height=&quot;match_parent&quot;     tools:context=&quot;.MainActivity&quot;&gt;      &lt;TextView         android:layout_width=&quot;wrap_content&quot;         android:layout_height=&quot;wrap_content&quot;         android:text=&quot;Hello World!&quot;         app:layout_constraintBottom_toBottomOf=&quot;parent&quot;         app:layout_constraintLeft_toLeftOf=&quot;parent&quot;         app:layout_constraintRight_toRightOf=&quot;parent&quot;         app:layout_constraintTop_toTopOf=&quot;parent&quot; \/&gt;      &lt;androidx.coordinatorlayout.widget.CoordinatorLayout         android:layout_width=&quot;match_parent&quot;         android:layout_height=&quot;match_parent&quot;&gt;          &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:backgroundTint=&quot;@color\/colorPrimary&quot;             app:fabAlignmentMode=&quot;center&quot;             app:fabAttached=&quot;true&quot;             app:navigationIcon=&quot;@drawable\/baseline_menu_white_24&quot;\/&gt;          &lt;com.google.android.material.floatingactionbutton.FloatingActionButton             android:id=&quot;@+id\/fab&quot;             android:layout_width=&quot;wrap_content&quot;             android:layout_height=&quot;wrap_content&quot;             android:src=&quot;@drawable\/baseline_add_white_24&quot;             app:layout_anchor=&quot;@id\/bottom_app_bar&quot; \/&gt;      &lt;\/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;  &lt;\/androidx.constraintlayout.widget.ConstraintLayout&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043c\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 Android Material \u2014 BottomAppBar, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u043e\u0432\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 FAB. \u0412\u0438\u0434\u0436\u0435\u0442 BottomAppBar \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Toolbar, \u043d\u043e \u043e\u043d \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u0412\u0442\u043e\u0440\u0430\u044f \u0438 \u0442\u0440\u0435\u0442\u044c\u044f \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u043f\u0440\u043e BottomAppBar \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043c\u0435\u043d\u044e \u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0435\u0439 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0439 BottomAppBar \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c\u0438 Material Design.<\/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\/421879\/\"> https:\/\/habr.com\/post\/421879\/<\/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=1RhB9No63B9Pvl7YdknjDFs2qQqGY5OSz\" alt=\"\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\"\/><\/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>. \u042d\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 <a href=\"https:\/\/developer.android.com\/reference\/android\/widget\/Toolbar\">Toolbar<\/a>. \u041d\u043e\u0432\u044b\u0439 BottomAppBar \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043e\u043a\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0442\u0443\u043b\u0431\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0435\u0433\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 Material Design \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 (UX). BottomAppBar \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0442\u0443\u043b\u0431\u0430\u0440\u043e\u043c. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u0435\u043d\u044e \u0432 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, BottomAppBar \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u0434\u043b\u044f Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/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-289512","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289512","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=289512"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289512\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}