Below is my layout. I'm having a problem getting it to "auto size" to
the height of the screen. When the soft keyboard is pressed, I want
the scrollview to decrease in height and the textview and button to
move up the screen. Right now it hides the textedit box and button
with the soft keyboard. Can anyone help? Thanks!
<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/chatprog"
android:background="@drawable/im911"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="3px"
android:orientation="horizontal">
<ScrollView
android:id="@+id/chatview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fadingEdge="none"
android:fillViewport="true">
<TextView
android:id="@+id/chatscreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
</ScrollView>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom">
<EditText
android:id="@+id/sendText"
android:inputType="textVisiblePassword"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:singleLine="true"
android:layout_weight="1"
android:layout_marginRight="3px" />
<Button
android:id="@+id/send"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="fill_parent" />
</LinearLayout>
</TableLayout>
--
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