有谁知道android中TitleBar和TitleBarText的默认大小是多少?
解决方法:
您可以在此处找到默认高度
以下是4.0.3
48dip
18dp
检查各个res / values文件夹下的dimens.xml
来自Gopal Rao的评论
?textColorPrimary
?textColorHighlight
?textColorHint
?textColorLink
16sp // its is in sp not dp
normal
如果你看一下主题最佳实践.
Quoting “you should prefer the sp (scale-independent pixel) to
define text sizes. The sp scale factor depends on a user setting and
the system scales the size the same as it does for dp”.
标签:android,android-titlebar
来源: https://codeday.me/bug/20190629/1323467.html