Can you put try with just the EditText inside the ScrollView? <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <View android:layout_width="fill_parent" android:layout_height="100dp" /> <ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxLines="5"/> </ScrollView> </LinearLayout>
On Jul 21, 3:47 pm, mongd <[email protected]> wrote: > Hi all, I have an issue with EditText when it's wrapped in ScrollView. > > Please see the following layout setup: > <?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="wrap_content" > android:layout_height="wrap_content"> > <View > android:layout_width="fill_parent" > android:layout_height="100dp" /> > <EditText > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:maxLines="5"/> > </LinearLayout> > </ScrollView> > > 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

