2017-08-03 18 views
1

私はこのxmlを持っていますが、ファイルをコンパイルできません。エラーを認識できません。 XMLの解析でエラーが発生しました:タグが一致しません。マテリアルデザインとCoordinatorLayoutで作成しました。 Androidのメーカーの私の現在のバージョンでは、あなたがエラーXMLを解析中にエラーが発生しました:不一致のタグ

のでincludeタグが閉じられていない

<?xml version="1.0" encoding="utf-8"?> 
<android.support.design.widget.CoordinatorLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:fitsSystemWindows="true" 
    tools:context="com.isalvinator.platzigram.view.CreateAccountActivity"> 

    <include layout="@layout/actionbar_toolbar"> 

    <ScrollView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:fillViewport="true" 
     app:layout_behavior="@string/appbar_scrolling_view_behavior"> 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:orientation="vertical" 
      android:padding="@dimen/activity_vertical_margin"> 

      <android.support.design.widget.TextInputLayout 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:theme="@style/TextEditBlack" 
       android:layout_marginTop="10dp"> 

       <android.support.design.widget.TextInputEditText 
        android:id="@+id/email" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:hint="Correo" 
        android:inputType="textWebEmailAddress"/> 
      </android.support.design.widget.TextInputLayout> 

      <android.support.design.widget.TextInputLayout 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:theme="@style/TextEditBlack" 
       android:layout_marginTop="10dp"> 

       <android.support.design.widget.TextInputEditText 
        android:id="@+id/name" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:hint="Nombre" 
        /> 
      </android.support.design.widget.TextInputLayout> 

      <android.support.design.widget.TextInputLayout 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:theme="@style/TextEditBlack" 
       android:layout_marginTop="10dp"> 

       <android.support.design.widget.TextInputEditText 
        android:id="@+id/username" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:hint="Usuario"/> 
      </android.support.design.widget.TextInputLayout> 

      <android.support.design.widget.TextInputLayout 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:theme="@style/TextEditBlack" 
       android:layout_marginTop="10dp"> 

       <android.support.design.widget.TextInputEditText 
        android:id="@+id/password_createaccount" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:hint="Contraseña" 
        android:inputType="textPassword"/> 
      </android.support.design.widget.TextInputLayout> 

      <android.support.design.widget.TextInputLayout 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:theme="@style/TextEditBlack" 
       android:layout_marginTop="10dp"> 

       <android.support.design.widget.TextInputEditText 
        android:id="@+id/confirmPassword" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:hint="Confirma contraseña" 
        android:inputType="textPassword"/> 
      </android.support.design.widget.TextInputLayout> 

      <Button 
       android:id="@+id/joinUs" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:text="Únete" 
       android:theme="@style/RaisedButtonDark" /> 

     </LinearLayout> 
    </ScrollView> 

    </android.support.design.widget.CoordinatorLayout> 

答えて

3

ので、私は、Androidのバージョン以前のロリポップに材料設計を使用することができますAPPCOMPATを使用して2.2.3とイムですライン

<include layout="@layout/actionbar_toolbar"> 

閉じるこのタグで単純であり、あなたは良いことがあります

関連する問題