在 ActionBar 上显示选项卡和进度条
我的应用程序使用操作栏(通过actionbarsherlock),并且某些屏幕使用选项卡式导航。加载数据时,操作栏最右侧会显示不确定的进度条,加载完成后会隐藏。这会导致选项卡(看起来填满可用空间)在加载完成时展开。这使得操作栏看起来像是在跳跃。
我尝试为选项卡提供固定宽度并将其权重设置为 @null
但这似乎不会影响任何内容。
有谁知道如何避免在进度条隐藏时使这些选项卡增长?或者是否有一个既定的替代方案可以避免将进度条放在操作栏中?谢谢。
My app is using an action bar (through actionbarsherlock) and some screens are using tabbed navigation. An indeterminate progress bar is shown on the far right of the action bar while loading data and is hidden when loading is complete. This causes the tabs (which appear to fill the available space) to expand when the loading is completed. This makes the action bar look like it's jumping.
I've tried giving the tabs a fixed width and setting their weight to @null
but that doesn't appear to affect anything.
Does anyone have any idea of how to avoid making these tabs grow when the progress bar is hidden? Or is there an established alternative that avoids putting the progress bar in the action bar? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论