gpt4 book ai didi

android - 在支持库 28.0.0 中禁用 BottomNavigationView 的 ShiftNode

转载 作者:行者123 更新时间:2023-11-29 18:42:28 25 4
gpt4 key购买 nike

将支持库升级到 v-28.0.0BottomNavigationView shift 模式未禁用。即使我正在使用 app:labelVisibilityMode="labeled" 但项目正在移动并且项目文本在选择时被剪切。

以前我使用反射来做到这一点。有没有其他方法可以禁用移位模式。

最佳答案

对我来说,在 XML 中启用使用的移动模式,具有 match_parent 宽度

            app:labelVisibilityMode="selected"

禁用使用的换档模式

            app:labelVisibilityMode="labeled"

& 删除你的想法。我的工作正常。

关于android - 在支持库 28.0.0 中禁用 BottomNavigationView 的 ShiftNode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52816275/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com