Android:从底部导航中删除阴影 [英] Android: remove shadow from bottom navigation

查看:190
本文介绍了Android:从底部导航中删除阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将容器放置在我的底部导航下方时,即使在向容器添加内容之后,导航的灰色阴影也会部分覆盖该容器.如何去除阴影?

When placing a container below my bottom navigation, it is partly covered by the gray shadow from the navigation, even after adding content to the container. How do I remove the shadow?

推荐答案

使用 app:elevation="0dp" 隐藏来自底部导航的阴影

Use app:elevation="0dp" to hide shadow from from bottom navigation

<android.support.design.widget.BottomNavigationView
    android:id="@+id/bottom_navigation"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:background="@android:color/white"
    app:elevation="0dp"
    app:menu="@menu/bottom_navigation_main" />

这篇关于Android:从底部导航中删除阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆