问题描述
我使用androidx.appcompat.widget.Toolbar获取布局
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
tools:context=".Activity.Home">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
app:layout_constraintTop_toTopOf="parent"
android:backgroundTint="#4862ed"
app:titleTextColor="#ffff"/>
</androidx.constraintlayout.widget.ConstraintLayout>
因此,我想更改工具栏中设置的三点菜单图标的颜色,但是我没有找到能正常工作的解决方案。
我试图定义一种新样式,可以从活动中设置样式,也可以在xml声明中更改它,但是没有任何效果。
有人可以帮助我吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)