我需要帮助...我的 android xml 出现错误...这是代码:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference
android:key="music"
android:title="Music"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:summary="Play Music for each screen"
android:defaultValue="true" />
<CheckBoxPreference
android:key="hints"
android:title="Hints"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:summary="Enable hints during gameplay"
android:defaultValue="true" />
</PreferenceScreen>
这是错误消息:
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
You must supply a layout_width attribute.
You must supply a layout_height attribute.
提前致谢..