Hi mongd,

I did not have a problem getting your view to work on Nexus One with
2.2. The text area scrolls just fine when I use the trackball on my
Nexus. I can also see a scrollbar when selecting text from the
EditView. The whole screen also scrolls fine since it is a ScrollView.
Here is the layout I tested:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <LinearLayout
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">

                <View
                        android:layout_width="fill_parent"
                        android:layout_height="100dp" />

                <EditText
                        
android:text="Lorem\nipsum\ndolor\nsit\namet,\nconsectetur
\nadipisicing\nelit,\nsed\ndo\neiusmod\ntempor\nincididunt\nut\nlabore
\net\ndolore\n"
                        android:lines="5"
                        android:gravity="top"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"/>

                <TextView
                        
android:text="Lorem\nipsum\ndolor\nsit\namet,\nconsectetur
\nadipisicing\nelit,\nsed\ndo\neiusmod\ntempor\nincididunt\nut\nlabore
\net\ndolore\n"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content" />
        </LinearLayout>
</ScrollView>


Claes Huittinen - http://code.google.com/p/leapconfigurator/

On Jul 21, 9:47 am, mongd <[email protected]> wrote:
> Hi all, I have an issue with EditText when it's wrapped in ScrollView.
>
> Please see the following layout setup:
> ... ...
> There's nothing special about this layout.
> I just want the EditText inside ScrollView to be scrollable when I
> entered more than 5 lines of text.
>
> I tested this layout with both Eclair and Froyo and Eclair seemed
> working fine, but Froyo didn't really work at all.
> Was there any change on ScrollView?
>
> ScrollView api says that I can put EditText(or TextView) inside of
> ScrollView to have this kind of functionality, so I guess that I did
> make a mistake or missed something important.
> If there's anyone who knows about this issue, please help me!!
>
> Thanks in advance!!

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