F
flash2910
Neues Mitglied
- 0
Hallo,
hab schon wieder ein Problem. ich habe ein button und ein MView-Objekt (erbt von View). Nun will ich, dass bei druck auf den button eine funktion im MView-Objekt aufgerufen wird.
d.h. bei druck auf den button wird startIt(View e) ausgeführt. und darin steht=
das programm läuft, bis ich auf den button drücke, dann stürtzt es ab. hat irgendjemand eine idee, woran das liegt?
hab schon wieder ein Problem. ich habe ein button und ein MView-Objekt (erbt von View). Nun will ich, dass bei druck auf den button eine funktion im MView-Objekt aufgerufen wird.
Code:
<Button
android:id="@+id/btn1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:height="50px"
android:text="Klick mich"
android:onClick="startIt"
/>
Code:
MView t= (MView) findViewById(R.id.gui);
t.go();
das programm läuft, bis ich auf den button drücke, dann stürtzt es ab. hat irgendjemand eine idee, woran das liegt?