
hunter123
Neues Mitglied
- 0
Hallo alle zusammen ich bin neu hier und bin noch anfänger in apps programmieren

Ich hab eine frage about den ScrollView und nämlich das Problem ist ich kann nur 1 Sache in den ScrollView in eclipse einbauen mehr geht da ürgendwie nicht...
Frage was muss ich machen damit ich dort eine überschrift ein Bild und eine kurze beschreibung einfügen kann?
Weil wenn ich z.b den code <ImageView> reinbauen will kommt dann ein fehler oben da steht "A ScrollView can have one child"
Der Code steht grad drin:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@string/test1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="5dp"
android:text="@string/zz1"
android:textAppearance="?android:attr/textAppearanceLarge" />
</ScrollView>
---------------------------------------------------------------------



Ich hab eine frage about den ScrollView und nämlich das Problem ist ich kann nur 1 Sache in den ScrollView in eclipse einbauen mehr geht da ürgendwie nicht...
Frage was muss ich machen damit ich dort eine überschrift ein Bild und eine kurze beschreibung einfügen kann?

Weil wenn ich z.b den code <ImageView> reinbauen will kommt dann ein fehler oben da steht "A ScrollView can have one child"
Der Code steht grad drin:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@string/test1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="5dp"
android:text="@string/zz1"
android:textAppearance="?android:attr/textAppearanceLarge" />
</ScrollView>
---------------------------------------------------------------------

Zuletzt bearbeitet: