Hi Matthias.

I've just the same problem, but I could check some things.

First all, if I define my "long text" in my xml file, my textView
scroll the contents.
However, if I update text content (with setText()) or if I define a
textView in a java class,
I'm not able to scroll the contents.



On 10 nov, 17:36, Matthias <m.kaepp...@googlemail.com> wrote:
> It was my understanding that even thoughTextViewis not a ScrollView,
> it has scrolling functionality built-in.
>
> However, I'm not able to scroll the contents of aTextView(that's on
> 1.6). I've reduced my code to the most trivial example:
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>   android:layout_height="fill_parent"
>   android:layout_width="fill_parent"
>   android:orientation="vertical">
>
>   <TextView
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:inputType="text|textMultiLine"
>     android:singleLine="false"
>     />
>
> </LinearLayout>
>
> I then defined a really long string for testing, which I set on this
> text view usingsetText().
>
> The text is too long for theTextView, but there is no way to scroll
> it. So do I need to wrap it in a ScrollView after all?
>
> Cheers,
> Matthias

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

Reply via email to