I tried adding a scroll around everything on the activity layout, but that gave me an error saying that it can only be placed on one thing.
My activity has a text image of the title, then an image, then a text representation of the description, and you cannot read the entire description because it is long and goes below the edge of my screen. How can I make a scrollable face?
My xml looks like this:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/beerTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:textSize="40sp" android:textStyle = "bold" > </TextView> <ImageView android:id="@+id/image" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_margin="10dip"/> <Button android:id="@+id/buttonBrewery" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="" /> <Button android:id="@+id/buttonStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="" /> <TextView android:id="@+id/beerDEscriptionTitle" android:textStyle = "bold" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:textSize="20sp" android:text="Description" ></TextView> <TextView android:id="@+id/beerDescription" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:textSize="15sp" ></TextView> </LinearLayout>
source share