助けが必要です... 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.
前もって感謝します..