2016-06-19 8 views
1

Dies ist das erste Mal, dass ich auf Android Studio bin und ich bin sehr neu in der Programmierung. Ich erhalte eine Fehlermeldung das Linearlayout TagFehler: (30) Fehler beim Parsen von XML: nicht übereinstimmendes Tag

enter image description here

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"> 

    <TextView 
     android:text="Quantity" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_margin="16dp" 
     android:textSize="24sp" /> 

    <TextView 
     android:text="0" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_margin="16dp" 
     android:textSize="24sp" 
     android:id="@+id/numbers"> 

    <Button 

     android:id="@+id/next_button" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_margin="16dp" 
     android:text="Order" /> 

</LinearLayout> 

Antwort

2
<TextView 
      android:text="0" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_margin="16dp" 
      android:textSize="24sp" 
      android:id="@+id/numbers"> 

Sie fehlt am Ende dieses Tags einen / beim Schließen. Sollte android:id="@+id/numbers"/> sein

Entweder das oder schließen Sie das Tag richtig mit </TextView>.

+0

danke für schnelle Antwort Problem gelöst :) –

+0

@ZeeShanAli Kein Problem, Kumpel. Überlegen Sie, die Antwort zu akzeptieren, um die Frage zu beenden. Vielen Dank :) – Vucko