使用自定义ImageView时,出现error: Error parsing XML: unbound prefix错误。
命名空间问题大概:添加xmlns:customProperty="http://schemas.android.com/apk/res/com.muaijie.weishang"即可。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:customProperty="http://schemas.android.com/apk/res/com.muaijie.weishang"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:orientation="vertical"
android:padding="10dp" >