如何更改底部导航Android中文本的大小

发布于 2025-01-24 06:01:01 字数 143 浏览 7 评论 0原文

我想更改textSize bottonsNavigationView
但是找不到任何方法可以更改bottom bottonsnavigation菜单项的textsize

I want to change the textSize in bottomNavigationView
But could not find any way to do that is there any way to change the textSize of menu item in bottomNavigation

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷雾森÷林ヴ 2025-01-31 06:01:01

res> values> dimens 中创建以下资源文件,

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <dimen name="design_bottom_navigation_text_size" tools:override="true">12sp</dimen>
    <dimen name="design_bottom_navigation_active_text_size" tools:override="true">12sp</dimen>
</resources>

这将覆盖bottom> bottomnavigationView

您还可以更改textSize >在选定和未选择的项目中

重复自定义Textsize of BottomNavigationView Support android android android android android

Create following resource file in res>values>dimens

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <dimen name="design_bottom_navigation_text_size" tools:override="true">12sp</dimen>
    <dimen name="design_bottom_navigation_active_text_size" tools:override="true">12sp</dimen>
</resources>

This will override the attributes of BottomNavigationView

You can also change the textSize in selected and unselected items

Duplicate Custom TextSize of BottomNavigationView support android

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文