0
我似乎无法弄清楚我在XML中遗漏了什么,但是我在最后一行发现“文件意外结束”。意外的文件结尾 - Android布局
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
card_view:cardCornerRadius="4dp"
android:layout_margin="5dp">
<LinearLayout
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="48dp" >
<TextView
android:id="@+id/listText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
android:layout_marginLeft="72dp"
android:layout_gravity="center_vertical"
android:text="Dummy Text"/>
</LinearLayout>