I have run into a similar problem.  Apparently focus is required to
get ellipsize="marquee" or scrollHorizontal="true" to operate.  I
haven't found where that is documented?  Can anyone point that out?

Bigger problem is I have one line TextView and even giving it focus
doesn't allow it to scroll. What am I doing wrong here:

        <TextView
        android:id="@+id/wanttoscrollt"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:singleLine="true"
        android:ellipsize="marquee"
        android:text="Blah blah andlongwordandmore"
        ></TextView>

I tried setting <requestFocus/> in the layout and also tried calling
requestFocus() in onCreate().  I always wind up with static text that
is truncated.  :(

My objective is to put some wide text into a narrow TextView and allow
the user to see (but not change) the part that is not initially
visible.


On Dec 17 2009, 9:47 pm, sathya subbiah <[email protected]>
wrote:
> Hi,
>
> I am trying to draw a text view which always scroll though it does not have
> focus in it.  But the text view does not support the same. Have any one
> tried such thing? Pls let me know if any thing can be done for the same.
>
> Thanks & Regards,
> Sathya

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to