【发布时间】:2015-07-16 15:29:49
【问题描述】:
我用两个 textviews 制作了小部件,只有一个 TextView 在滚动...我该怎么做
滚动所有文本视图?
我使用另一个问题的这个解决方案,但它只适用于一个TextView..
链接:Is it possible for TextView Marquee in a Widget that extends AppWidgetProvider?
<TextView android:id="@+id/fact" android:layout_width="200dp"
android:text="Loading... More text to see if it spans or not and want more"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit ="marquee_forever"
android:scrollHorizontally="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:duplicateParentState="true">
<requestFocus android:focusable="true" android:focusableInTouchMode="true"
android:duplicateParentState="true" />
</TextView>
如何滚动所有文本视图?谢谢
【问题讨论】: