0

我遇到了“文件意外结束”,我不知道为什么。我确定这很简单,但我还没有弄清楚。任何帮助或建议将不胜感激。这是我的代码,谢谢。

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.superjoe.practicecard.FullscreenActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:src="@drawable/goliath1"
    android:scaleType="centerCrop"
    android:id="@+id/imageGoliath"/>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Hello, I'm Goliath."
    android:textColor="#C62828"
    android:textSize="36dp"
    android:fontFamily="sans-serif-medium"
    android:textStyle="bold"
    android:id="@+id/ImGoliath"
    android:layout_centerInParent="true"
    android:layout_alignParentTop="true"
    android:padding="12dp"/>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Don't be afraid, I don't bite..."
    android:textSize="26dp"
    android:fontFamily="sans-serif-medium"
    android:textColor="#C62828"
    android:id="@+id/afraid"
    android:layout_below="@id/ImGoliath"
    android:textStyle="bold|italic"
    android:paddingLeft="12dp"
    android:paddingBottom="18dp"/>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/unless"
    android:text="Unless!"
    android:textColor="#C62828"
    android:textSize="52dp"
    android:textStyle="bold"
    android:layout_alignParentRight="true"
    android:layout_below="@id/afraid"
    android:padding="24dp"/>
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/Youreacricket"
    android:text="YOU'RE A CRICKET!"
    android:textColor="#C62828"
    android:layout_alignParentBottom="true"
    android:textSize="42sp"
    android:textStyle="bold"
    android:layout_centerInParent="true"
    android:paddingTop="60dp"/>
</RelativeLayout>
4

1 回答 1

0

您需要在 RelativeLayout 标签下关闭 FrameLayout 标签。

</FrameLayout>
于 2016-01-14T04:35:47.430 回答