Ich versuche, mich Layout nach unten scrollen lassen. Ich habe einige Posts mit diesem Thema gesehen und ich habe versucht, das zu tun, was sie erklärt haben, aber es hat nicht funktioniert. Dies ist, was ich jetzt habe, und jetzt wird mein Projekt nicht einmal starten, wahrscheinlich weil es fehlplatziert ist. DieseHinzufügen von Scrollview in Android Projekt Layout
ist, wie mein Code wie folgt aussieht:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.rodekruis.Bezoek" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginBottom="20dp"
android:src="@drawable/rkz_logo" />
<ScrollView
android:id="@+id/scrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/textView1"
android:layout_width="244dp"
android:layout_height="276dp"
android:layout_gravity="center"
android:text="@string/title_activity_contact"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/black" />
<TextView
android:id="@+id/textView2"
android:layout_width="244dp"
android:layout_height="42dp"
android:layout_gravity="center"
android:layout_weight="0.39"
android:text="Klik hier voor de uitgebreide contactgegevens."
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/black" />
</ScrollView>
</LinearLayout>
Scroll nur ein Kind hat, die eine Ansicht Gruppe sein kann –