<view android:layout_marginLeft="10dp" android:layout_width="match_parent" android:layout_height="1dp" android:background="#ff0000" />
以上代码报Unable to inflate view tag without class attribute异常,不仔细看还找不到问题所在,view不小心小写了,应该大写,特此记录一下。
<View android:layout_marginLeft="10dp" android:layout_width="match_parent" android:layout_height="1dp" android:background="#ff0000" />