I have downloaded an example of searchview. The class doesn't seem to have addtoparent in it. I wonder if I have downloaded the wrong version. Does anyone know where I can download a version containing addtoparent?
It is implemented as a custom view which you should add with the visual designer. Even if you don't use the visual designer for your layout (which is a mistake), you can create a layout file with only SearchView and load it.