Android 如何在小部件中滚动TextView?

Android 如何在小部件中滚动TextView?,android,scroll,textview,android-widget,Android,Scroll,Textview,Android Widget,这是我的widget.xml代码: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widgetLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#80DDDDDD"> <TextView

这是我的widget.xml代码:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widgetLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80DDDDDD">

<TextView
    android:id="@+id/widgetText"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:textColor="#a9010101"
    android:textSize="15sp"/> </RelativeLayout>
但小部件仍然无法滚动。既然小部件中不支持scrollView,我该怎么做呢?
谢谢。

我不太明白你在问什么。。你能更清楚一点吗?你使用的是一个垂直滚动的小部件吗?@FarbodSalamat Zadeh我有一个由textview格式化的小部件。在textView中可能有更多的文本行。如果小部件的大小很小,我看不到所有文本行,所以我想滚动它以显示所有内容。@Adi你是什么意思?小部件可以包含列表视图(例如),允许用户滚动。这意味着文本视图可以是您想要的大小,因为用户可以向下滚动。如果其他方法都不起作用,我想您可能希望在小部件中放入一个listview,以便只使用一个textview。不是最好的,但我不相信还有其他解决办法。
android:scrollbars="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:isScrollContainer="true"
android:overScrollMode="always"