Próbowałem dodać widok przewijania wokół wszystkiego w układzie działania, ale dało mi to błąd, mówiąc, że można go umieścić tylko wokół jednej rzeczy.Jak dodać widok przewijania do całej aktywności?
Moja aktywność, ma tytułowy widok tekstowy, a następnie obraz, a następnie opisowy opis tekstu, a nie można przeczytać całego opisu, ponieważ jest długi i znajduje się poniżej krawędzi ekranu. Jak mogę przewinąć rzeczy whoela?
Moje XML wygląda następująco:
<?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>
wystarczy dodać linearlayout nadrzędnej wewnątrz widoku przewijania \ – abhi