Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error parsing XML: unbound prefix Android

I get an error in my XML code when I add the opencv:show_fps="true" to my XML code (cause i want to be able to see the FPS on the screen)

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" &gt;<="" p="">

<org.opencv.android.JavaCameraView
    android:id="@+id/java_surface_view"
    android:layout_width="0dp"
    android:layout_height="fill_parent"
    android:layout_weight="0.80"
    opencv:show_fps="true" />

<Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="match_parent" 
    android:drawableLeft="@drawable/camera"
    android:gravity="left|center_vertical"/>

</linearlayout>

When I delete the line, the error also disappears, but I couldn't find another good alternative to read out the FPS. What am I doing wrong here?

Error parsing XML: unbound prefix Android

I get an error in my XML code when I add the opencv:show_fps="true" to my XML code (cause i want to be able to see the FPS on the screen)

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" &gt;<="" p="">

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <org.opencv.android.JavaCameraView
     android:id="@+id/java_surface_view"
     android:layout_width="0dp"
     android:layout_height="fill_parent"
     android:layout_weight="0.80"
     opencv:show_fps="true" />

 <Button
     android:id="@+id/button2"
     android:layout_width="wrap_content"
     android:layout_height="match_parent" 
    android:drawableLeft="@drawable/camera"
    androi*emphasized text*d:drawableLeft="@drawable/camera"
        android:gravity="left|center_vertical"/>

</LinearLayout>

</linearlayout>

When I delete the line, the error also disappears, but I couldn't find another good alternative to read out the FPS. What am I doing wrong here?