android.widget.TableRow cannot be cast to android.widget.TextView

H

h00ligan

Neues Mitglied
0
Hey Leute,

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ß
 
ich würde mal project -> clean durchführen
 
oh man...

ich daaaaanke dir :D:D
jetzt klappt wieder alles

magst du mir vielleicht verraten was das problem war?
 

Ähnliche Themen

Horstmann365
Antworten
1
Aufrufe
1.057
jogimuc
J
Muecke1982
Antworten
8
Aufrufe
1.027
Skyhigh
Skyhigh
D
Antworten
17
Aufrufe
384
datNeMo
D
Zurück
Oben Unten