AppCompat工具栏字体大小在纵向与横向不一致 [英] AppCompat Toolbar Font Size Inconsistent in Portrait vs. Landscape

查看:96
本文介绍了AppCompat工具栏字体大小在纵向与横向不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用: https://xisberto.wordpress.com/2014/11/08/how-to-combine-actionbar-and-preferenceactivity-headers-with-appcompat/

设置"字体大小在纵向和横向之间变化.如何保持一致?

The "Settings" font size changes between portrait and landscape. How do I keep it consistent?

推荐答案

正常,纵向模式下的工具栏高度为56 dp,横向模式下的工具栏高度为48 dp,操作系统会调整其高度.如果要更改横向的标题大小,请当心,因为可以将其设置为高于工具栏.

It is normal, the toolbar height in portrait mode have 56 dp, in landscape 48 dp, the OS resize its height. Take care if you change the title size in landscape because you can put it higher than the toolbar.

这篇关于AppCompat工具栏字体大小在纵向与横向不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆