I'm trying to get scrollable text widgets for a "chat" like app. One would be sued to view the chat history, the other would be used to enter new messages in. The ONLY way I ever got scrollable text widgets to work is to use the ScrollView layout and place either a EditText widget or a TextView widget inside of it. the The following is my current best guess as how to do this the right way:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/widget271" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" > <Button android:id="@+id/ok" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="OK" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" > </Button> <ScrollView android:id="@+id/widget278" android:layout_width="319px" android:layout_height="171px" android:layout_alignParentTop="true" android:layout_alignParentRight="true" > <TextView android:id="@+id/TV1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ff9999ff"> </TextView> </ScrollView> <ScrollView android:id="@+id/widget281" android:layout_width="319px" android:layout_height="196px" android:layout_below="@+id/widget278" android:layout_alignParentRight="true" > <EditText android:id="@+id/ET2" android:textSize="18sp" android:layout_width="fill_parent" android:layout_height="fill_parent"> </EditText> </ScrollView> </RelativeLayout> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---