【发布时间】:2019-06-05 16:55:43
【问题描述】:
我将原色设置为某种橙色,我不明白为什么我的底部导航栏默认将白色而不是原色作为所选项目的颜色,如何解决?
底部导航栏的xml代码
<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:layout_marginStart="0dp"
android:layout_marginLeft="0dp"
android:layout_marginEnd="0dp"
android:layout_marginRight="0dp"
android:layout_marginBottom="0dp"
android:background="@color/colorAccent"
app:menu="@menu/bottom_navigation"/>
颜色(主要是某种橙色)
<color name="colorPrimary">#fb8c00</color>
<color name="colorPrimaryDark">#c25e00</color>
<color name="colorPrimaryLight">#ffbd45</color>
<color name="textOnPrimary">#000000</color>
<color name="colorAccent">#D81B60</color>
【问题讨论】:
标签: android colors bottomnavigationview