lang
1 2 View infoView = getLayoutInflater().inflate(R.layout.activity_arpreview, null); 3 addContentView(infoView, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT)); 4 View imageView = getLayoutInflater().inflate(R.layout.start_image, null); 5 addContentView(imageView, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
と書いてviewを重ねているのですがLGL22(issai androidOS 4.4)では
lang
1java.lang.RuntimeException: Unable to start activity ComponentInfo{jp.***.***/jp.app.***.testActivity}: android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRoot=true 2E/AndroidRuntime(2948): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2200) 3 4※"*"の部分は隠してあります
とエラーが出てしまいアプリが起動せずに落ちてしまいます
SHL22(AQUOS PHONE androidOS 4.2)とGALAXY(androidOS4.4)では動作します
何が原因だと思いますか?
あなたの回答
tips
プレビュー