Android 远程视图的文本视图未滚动
我曾提到过如何使我的文本视图可滚动,但它似乎不适合我。我做错了什么?我的文本视图是Android 远程视图的文本视图未滚动,android,xml,scroll,textview,remoteview,Android,Xml,Scroll,Textview,Remoteview,我曾提到过如何使我的文本视图可滚动,但它似乎不适合我。我做错了什么?我的文本视图是远程视图的一部分,如果它有任何意义的话 代码 将文本视图更改为: <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="1" android:duplicateParentState="true" android:ellipsize="marq
远程视图的一部分,如果它有任何意义的话
代码
将文本视图更改为:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:duplicateParentState="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:fadingEdge="horizontal"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:scrollHorizontally="false"
android:singleLine="true"
>
<requestFocus android:duplicateParentState="true"
android:focusable="true"
android:focusableInTouchMode="true" />
</TextView>
将文本视图更改为:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:duplicateParentState="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:fadingEdge="horizontal"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:scrollHorizontally="false"
android:singleLine="true"
>
<requestFocus android:duplicateParentState="true"
android:focusable="true"
android:focusableInTouchMode="true" />
</TextView>