I Have made a xml file in my android app for the Custom Widget and the error is:
Error parsing XML: unbound prefix
Here is my xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.example.CustomWidget.MyView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/surface"
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_weight="1"/>
</LinearLayout>
com.example.CustomWidget is the name of my package and MyView is the name of my class file where I made the custom Widget.