Android 如何使用Kotlin删除底部导航栏顶部的边框或线条?
我需要得到我的底部导航栏,没有在导航栏顶部的线条或边框。它需要作为主屏幕的一部分。帮助我使用Kotlin,提前谢谢大家!Android 如何使用Kotlin删除底部导航栏顶部的边框或线条?,android,kotlin,navigation,Android,Kotlin,Navigation,我需要得到我的底部导航栏,没有在导航栏顶部的线条或边框。它需要作为主屏幕的一部分。帮助我使用Kotlin,提前谢谢大家! 在底部导航视图上非常简单只需添加app:elevation=“0dp”: 这将使其改变: 为此: <com.google.android.material.bottomnavigation.BottomNavigationView android:id="@+id/nav_view" android:layout_width=
在
底部导航视图上非常简单
只需添加app:elevation=“0dp”
:
这将使其改变:
为此:
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/bottom_nav_menu"
app:elevation="0dp" />