Search code examples
androidandroid-layoutandroid-widgetmarquee

android widget text view marquee scroll


can a widget have a marquee textview? if so how would i implement it?

i have tried the following:

<TextView

        android:id="@+id/followers"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_gravity="center_vertical|center_horizontal"
        android:layout_weight="10"
        android:ellipsize="marquee"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:marqueeRepeatLimit="marquee_forever"
        android:singleLine="true"
        android:text="@string/load"
        android:textColor="@color/white"
        android:textSize="24dip"
        android:textStyle="bold"
    android:scrollHorizontally="true" >
    </TextView>

i know this marquee works as i have made this same textview for a normal app activity and the marquee is working. it just isnt working for the widget side. the size of the text is longer that the width so that should work.

any help as usual would be much appreciated


Solution

  • i believe this is already answered on Stackoverflow,do take a look

    Is it possible for TextView Marquee in a Widget that extends AppWidgetProvider?