Inflate Exception android.view.InflateException: Binary XML file line #76: Error inflating classが発生し、XML に AdWhirl Layout を追加し、この XML をダイアログの Content-View として設定しているときに、この例外が発生する理由がわかりません発生しており、それを解決する方法は、この問題を解決するために私を案内してください、次のコードは、問題が存在する場所を診断するのに役立つと思います:
これは、Adwhirl レイアウトを追加した私の XML です。
<LinearLayout
android:id="@+id/LinearLayout04"
android:layout_marginBottom="20dip"
android:gravity="center"
android:layout_height="250dip"
android:layout_gravity="center"
android:layout_width="fill_parent"
>
<com.adwhirl.AdWhirlLayout <!-- Exception occurred on this line-->
android:id="@+id/adwhirl_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
そしてJavaコードでは:
runOnUiThread(new Runnable() {
@Override
public void run() {
isShowed = true;
dialog = new Dialog(getApplicationContext());
dialog.setContentView(R.layout.replay_screen);//Exception occurred on this line
}
});