摘要:
写dialog一直报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments (Str... 阅读全文
摘要:
引用自定义控件时 比如文中的 base.pulltorefreshview ,adt一直报错The following classes could not be instantiated,定位到pulltorefreshview类中,代码也没错,检查XML文件,发现又黄色叹号警告,把黄色叹号警告去掉后正常。android:text="@string/testex"一开始没用这样,直接写的字符串导致叹号。android:text="123123"以后要养成好的习惯,把字符串都写放到STRNG里 阅读全文
摘要:
从别的地方复制过来XML时,layout预览时提示解析错误。提示:org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown @1:5 in java.io.InputStreamReader@47ec2770)org.xml.sax.SAXParseException: PI must not start with xml (position:unknown xm@3:5 in java.io.InputStreamReader@43e4b480)经 阅读全文