H
h00ligan
Neues Mitglied
- 0
Hey Leute,
ich bekomme beim Aufruf einer Activity folgenden Error:
Der Error-Log springt zu folgender Zeile:
Hier noch ein Auszug aus der XML-Datei:
Was hat dieser Fehler zu bedeuten?
Ich kann einfach keine Lösung finden.
Gruß
ich bekomme beim Aufruf einer Activity folgenden Error:
Code:
android.widget.TableRow cannot be cast to android.widget.TextView
Der Error-Log springt zu folgender Zeile:
Code:
mDateDisplay = (TextView) findViewById(R.id.datumGesetztText);
Hier noch ein Auszug aus der XML-Datei:
Code:
<TableRow
android:id="@+id/datumRow"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/datumBeschr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="25"
android:text="Datum"
android:textColor="@drawable/red" />
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_span="2"
android:layout_weight="75"
android:orientation="vertical" >
<TextView
android:id="@+id/datumGesetztText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="01. Januar 1970"
android:textSize="16dp" />
<Button
android:id="@+id/datumSetzen"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="Datum setzen" />
</LinearLayout>
</TableRow>
Was hat dieser Fehler zu bedeuten?
Ich kann einfach keine Lösung finden.
Gruß