android - 如何更改 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
所有默认属性吗?
解决方案
推荐阅读
- scala - Scala:找不到 ContextShift [cats.effect.IO] 的隐式值
- java - 如何通过其参数查找和收集要映射的对象?
- amazon - 亚马逊 MWS 终端节点获取每个商品的价格和卖家名称的 ASIN 的所有商品?
- python - 如何使用具有固定长度数据的 Keras 进行序列到序列模型 (RNN / LSTM)?
- mysql - 仅在活动设备 mySQL 上强制执行 UNIQUE KEY
- c# - 在 C# 中的重写方法中捕获异常
- javascript - 如何使用钩子在反应组件中使用日期选择器
- ruby-on-rails - Activestorage、Devise、Rails 5.2 信息为零
- swift - 是否可以将输入的文本保存到 SwiftUI 中的警报文本字段中,并像这样在应用程序中显示 -> Text("alert text input here")?
- hibernate - Hibernate 未正确将对象保存在数据库中(?,?,?,?)