scrollHorizontally enables user scrolling for editable text fields. If
you want automatic scrolling, use android:ellipsis="marquee"

On Mon, Feb 1, 2010 at 3:11 PM, jotobjects <[email protected]> wrote:
> Is there a way to put a single line of static text into a TextView and
> allow the user to scroll over the part that is not initially visible?
> I have tried scrollHorizontally, but I get text that
> is truncated.   This is the layout (that doesn't scroll).
>
>        <TextView
>        android:id="@+id/wanttoscrollt"
>        android:layout_width="fill_parent"
>        android:layout_height="wrap_content"
>        android:singleLine="true"
>        android:ellipsize="end"
>        android:scrollHorizontally="true"
>        android:text="Blah blah andlongwordandmore"
>        ></TextView>
>
> I tried setting <requestFocus/> in the layout and also tried calling
> requestFocus() in onCreate().
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
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