简体   繁体   English

ActionBarSherlock 4 ScrollingTextView

[英]ActionBarSherlock 4 ScrollingTextView

I recently upgraded my project from ABS 3.5 to ABS 4 but I've run into a problem that has had me pulling my hair out for a few days now. 我最近将我的项目从ABS 3.5升级到ABS 4,但是现在遇到了一个问题,我不得不花了几天的时间。 The main activity contains three tabs wit text. 主要活动包含三个选项卡和文本。 In 3.5 the text would scroll horizontally in their respective tabs, as the text is too long to fit in the tab at any one time. 在3.5版本中,文本会在其各自的选项卡中水平滚动,因为文本太长而无法在任何时候容纳在选项卡中。 Since I upgraded to ABS 4 the text no longer scrolls, it instead shortens the word eg "Messa...". 自从我升级到ABS 4以来,该文本不再滚动,而是缩短了单词“ Messa ...”。

I can see that the ScrollingTextView class has been removed from com.actionbarsherlock.internal.widget. 我可以看到ScrollingTextView类已从com.actionbarsherlock.internal.widget中删除。 I can see that the ScrollingTabContainerView has been added to this package but I don't know if this is provided as an alternative. 我可以看到ScrollingTabContainerView已添加到此程序包中,但我不知道是否提供了此功能。

I have tried setting the android:ellipsize to marquee and setting the marqueeRepeatLimit to marquee_forever but it does not seem to work for me. 我已经尝试设置android:ellipsizemarquee并设置marqueeRepeatLimitmarquee_forever ,但它似乎并没有为我工作。

Does anyone know how to get this feature back running as I assume that it is still possible. 有人知道我仍然可以重新启动此功能吗?

By the way, I mean that the text should scroll automatically, the user does not click and drag the tabs to scroll. 顺便说一句,我的意思是文本应自动滚动,用户无需单击并拖动选项卡即可滚动。 Just to be clear :) 只是要清楚:)

Thanks 谢谢

Ok, as far as I can tell this feature has been completely removed in ABS 4 and has been replaced with the scrolling tabs. 好的,据我所知,此功能已在ABS 4中完全删除,并已替换为滚动选项卡。 This is slightly disappointing as it gave a nice effect to the tabs to have the text scroll. 这有点令人失望,因为它使选项卡的文本滚动效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM