android.view.InflateException: Binary XML file line
以下のエラーが出たとき、idをつけたら治った。
android.view.InflateException: Binary XML file line
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayoutMain" <==この行を入れたら治った。 android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <fragment android:name="jp.co.android.app.FragmentSize" android:layout_width="match_parent" android:layout_height="wrap_content" > <!-- Preview: layout=@layout/size --> </fragment> <fragment android:name="jp.co.android.app.FragmentLog" android:layout_width="match_parent" android:layout_height="wrap_content" > <!-- Preview: layout=@layout/log --> </fragment> </LinearLayout>