我使用样式文件为相同的布局设置独特的样式,
风格:
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- User form layout style -->
<style name="UserFormLayoutRow">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">horizontal</item>
<item name="android:paddingBottom">@dimen/padding_small</item>
</style>
</resources >
//在布局文件中
<LinearLayout
style="@style/UserFormLayoutRow" >
//contents
</LinearLayout>
Error:(design time)
运行时出错:
06-13 05:58:14.506: E/AndroidRuntime(936): Caused by: java.lang.RuntimeException: Binary XML file line #105: You must supply a layout_width attribute.
我哪里错了?TIA