[Solved] Error parsing XML: unbound prefix in activity_main xml file


Use -1dp instead of only -1 for example

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:customview="http://schemas.android.com/apk/res-auto"
    android:background="#000000"
    android:layout_height="-1dp"
    android:layout_width="-1dp">

    <WebView
        android:id="@+id/webView1"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_height="-1dp"
        android:layout_width="-1dp" />

    <ProgressBar
        android:id="@+id/progressBar1"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:layout_height="-2dp"
        android:layout_width="-2dp" />

    <RelativeLayout
        android:id="@+id/RlayBotm"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_height="40dp"
        android:layout_width="-1dp">

        <WebView
            android:id="@+id/adsview"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:layout_height="-1dp"
            android:layout_width="-1dp"
            android:scrollbars="0" />
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/welcome"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:layout_height="-1dp"
        android:layout_width="-1dp">

        <ImageView
            android:background="#000000"
            android:id="@+id/img"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_height="-2dp"
            android:layout_width="-2dp"
            android:src="https://stackoverflow.com/questions/41039723/@drawable/star" />

        <ProgressBar
            android:id="@+id/progressBar3"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:layout_height="-2dp"
            android:layout_width="-2dp" />

        <TextView
            android:id="@+id/textView1"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_height="-2dp"
            android:layout_width="-2dp"
            android:text="Thank You For Using AbhiMovieDownload.com APP "
            android:textAlignment="4"
            android:textAppearance="?unknown_attr_ref: 1010041" />
    </RelativeLayout>
</RelativeLayout>

6

solved Error parsing XML: unbound prefix in activity_main xml file