Reputation: 43
I have this xml but i cant compile the file, i cant recognize the error. It says Error parsing XML: mismatched tag, i made it with material design and CoordinatorLayout. My current version of Android Studio is 2.2.3 and im using the AppCompat so i can use Material Design in versions of Android previously of Lollipop
<?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>
Upvotes: 1
Views: 2048
Reputation: 2568
You have not closed the include
tag
So the error is simply at the line
<include layout="@layout/actionbar_toolbar">
Close this tag and you should be good
Upvotes: 3