UnsupportedOperationException: addView(View, LayoutParams)

B

b18a9n

Neues Mitglied
1
Hallo bekomme beim erstellen meines Layoutes Folgende Meldung

UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView
Mein Layout sieht so aus

Code:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView  android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android">
    <ListView  android:layout_width="wrap_content" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android">
        <TextView android:text="@string/txt_bla_head_1"  android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/Head"/>
        <TextView android:text="@string/txt_bla_txt_1"  android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/txt"/>
        
    </ListView>
</ScrollView>
Hat jemand eine Idee wo der Fehler herkommt und was ich da gegen machen kann?

Edit:
Ich Tollpatsch ListView in in ScrollView geht nicht muss LinearLayout sein
 

Anhänge

  • Unbenannt.png
    Unbenannt.png
    10,1 KB · Aufrufe: 444
Zuletzt bearbeitet:

Ähnliche Themen

P
Antworten
0
Aufrufe
555
Pascppal
P
Tiefkuehlpizza
Antworten
2
Aufrufe
954
Tiefkuehlpizza
Tiefkuehlpizza
F
  • Fabicoe
Antworten
1
Aufrufe
918
jogimuc
J
Zurück
Oben Unten