This worked for me, wrapping it in a ScrollView:

        <ScrollView
                android:id="@+id/sv"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                >
                <TextView
                android:id="@+id/tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
               </TextView>
        </ScrollView>
and then call scrollView.smoothScrollTo(....) to scroll down.

On Dec 19, 10:41 pm, Dan <[email protected]> wrote:
> I have seen several posts in here about this discussion but haven't
> come across one dealing with how to get the textview to actually
> scroll.
>
> I have a textview widget on my screen (along with other controls) and
> have it to where the vertical scrollbar for the textview shows up
> whenever there is too much text to be contained within the region
> showing. My problem is that I cannot get the view to actually scroll.
> I have tried scrolling it using touch as well as the trackball but
> with no luck. It looks as if the textview is not even getting focus. I
> have tried all the different properties (Clickable = true, Enabled =
> true, Focusable = true, Focusable in touch mode = true, Single line =
> false, Scrollbars = vertical) all with no luck. I was wondering if
> anyone else has encountered this.
>
> This is a fairly simple implementation in that I am periodically
> calling append() on the textview to insert text into the control and I
> need to be able to scroll the textview when I get more text in the
> control than can be seen onscreen.
>
> Thanks In Advance,
> Dan
--~--~---------~--~----~------------~-------~--~----~
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