如何解决此栏中的矢量图标显示为黑色我需要改变颜色
我使用的是白色但显示为黑色的矢量图标。有没有办法在 xml 中或以编程方式更改图标颜色。 Kotlin,使用 Android Studio
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/bottomAppBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:backgroundTint="#136127"
app:fabCradleMargin="4dp"
app:fabCradleRoundedCornerRadius="20dp">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigationView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginEnd="16dp"
android:background="@android:color/transparent"
app:menu="@menu/bottom_nav_menu" />
</com.google.android.material.bottomappbar.BottomAppBar>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/_fab_board_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_four_squares_white"
android:backgroundTint= "@color/brown_rust"
app:tint="@color/white"
app:layout_anchor="@id/bottomAppBar" />
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。