Ich habe versucht, eine Bildlaufansicht um alles auf einem Aktivitätslayout hinzuzufügen, aber es gab mir eine Fehlermeldung, dass es nur um eine Sache herum platziert werden kann.Wie fügt man eine Scroll-Ansicht zu einer gesamten Aktivität hinzu?
Meine Aktivität, hat einen Titel Textview dann ein Bild, dann eine Beschreibung Textansicht, und Sie können nicht die ganze Beschreibung lesen, weil es zu lang ist und unter dem Rand meines Bildschirms geht. Wie kann ich die Whoel-Sache scrollbar machen?
Meine xml sieht wie folgt aus:
<?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>
nur Ihre Eltern Linearlayout innerhalb Scroll-Ansicht \ – abhi