首页 > 解决方案 > 如何更改 ActionBar 中的字体?

问题描述

我有这种风格themes.xml

<style name="Theme.Test" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="colorPrimary">#42A5F5</item>
    <item name="colorPrimaryDark">#42A5F5</item>
</style>

我正在尝试更改默认 ActionBar 中的字体,但我认为除了创建自定义工具栏之外没有其他方法可以做到这一点,那么我可以将默认 ActionBar 中的所有属性放入自定义工具栏中,例如textSize, elevation, width and height所有默认属性吗?

标签: androidandroid-actionbarandroid-toolbarandroid-styles

解决方案


推荐阅读