有如下log:
android.view.InflateException: Binary XML file line #2:
Error inflating class com.hankkin.SelectMutiImgDemo.view.SquareLayout
at com.king.photo.adapter.PictureAdapter.getView(PictureAdapter.java:65)
思路:
看logcat时,要注意到你比较熟悉的信息,比如:
[Binary XML file line #2]、[adapter.PictureAdapter.getView(PictureAdapter.java:65)]
从这里面你都能找到蛛丝马迹,问题就迎刃而解了