问答

android BottomAppBar里面item位置

作者:admin 2021-04-21 我要评论

下面用BottomAppBar做的导航栏 下面是代码 androidx.coordinatorlayout.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height=...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

下面用BottomAppBar做的导航栏
image
下面是代码
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="80dp">

<com.google.android.material.bottomappbar.BottomAppBar

android:layout_gravity="bottom"
app:fabAlignmentMode="center"
android:id="@+id/bottom_app_bar"
app:contentInsetStartWithNavigation="0dp"
style="@style/Widget.MaterialComponents.BottomAppBar.Colored"
app:menu="@menu/draw_menu"
android:layout_width="match_parent"
android:layout_height="wrap_content">

</com.google.android.material.bottomappbar.BottomAppBar>
<com.google.android.material.floatingactionbutton.FloatingActionButton

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/fab"
app:layout_anchor="@id/bottom_app_bar"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
怎么让右边的item平分分布在底部而不是都挤在右边

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • android BottomAppBar里面item位置

    android BottomAppBar里面item位置

  • 这是采用了哪种语言的编码 如何转码?

    这是采用了哪种语言的编码 如何转码?

  • uniapp 字节跳动小程序复选框样式如何

    uniapp 字节跳动小程序复选框样式如何

  • docker环境下的PyCharm 如何进行断点调

    docker环境下的PyCharm 如何进行断点调

腾讯云代理商
海外云服务器