Sajmon

Example of ScrollView in Android

Oct 30th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3.     android:layout_width="fill_parent"
  4.     android:layout_height="wrap_content"
  5. >
  6. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7.     android:orientation="vertical"
  8.     android:layout_width="fill_parent"
  9.     android:layout_height="fill_parent"
  10.     >
  11.  
  12.     <Button
  13.     android:layout_width="fill_parent"
  14.     android:layout_height="wrap_content"
  15.     android:text="Button 1"
  16.     />
  17.     <Button
  18.     android:layout_width="fill_parent"
  19.     android:layout_height="wrap_content"
  20.     android:text="Button 2"
  21.     />
  22. </LinearLayout>
  23. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment