底部导航栏:文字大小在按下时会增加? [英] Bottom Navigation Bar: Text size is increasing on pressing?

查看:324
本文介绍了底部导航栏:文字大小在按下时会增加?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android中使用底部导航栏。默认情况下,当我选择项目时,该项目标签的文本大小会增加。正如锦标赛标签所示。

I am using the Bottom Navigation Bar in Android. By default when I select an item the text size of the label of that item increases. As seen here by the 'tournaments' label.

有没有办法将其删除,以便锦标赛一词保持相同的尺寸?

Is there a way to remove this so the word 'tournaments' stays the same size?

推荐答案

尝试在 dimens.xml中添加此代码 file

<dimen name="design_bottom_navigation_text_size" tools:override="true">10sp</dimen>
<dimen name="design_bottom_navigation_active_text_size" tools:override="true">10sp</dimen>

这篇关于底部导航栏:文字大小在按下时会增加?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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