今天在做有关二维码的项目时遇到android.view.inflateException:Binary XML file line #14.。。。的异常,查阅了很多资料最后发现是造成此异常的主要原因还是在XML文件中代码拼写错误造成的;
在引入
<com.example.zypos.view.ViewfinderView
android:id="@+id/viewfinder_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/transparent" />
时包名拼写错误造成