Skip to content

Instantly share code, notes, and snippets.

@davidwparker
Created August 26, 2011 04:29
Show Gist options
  • Save davidwparker/1172700 to your computer and use it in GitHub Desktop.
Save davidwparker/1172700 to your computer and use it in GitHub Desktop.
Android scroll and window resizing
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:id="@+id/scrollview"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:isScrollContainer="true">
<TableLayout
android:layout_height="match_parent"
android:layout_width="fill_parent"
android:padding="0dp"
android:background="#000000"
android:stretchColumns="*">
...
</TableLayout>
</ScrollView>
<activity
android:name=".Activities.MainActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment