views:

18

answers:

0

When I am trying to add properties to a view, I get an error; it seems like it can't find dropDownAnchor and popupBackground. Why is that, I have seen other examples that use these properties?

android:dropDownAnchor="@id/search_plate"
android:popupBackground="@android:drawable/search_dropdown_background"

My second questions is I have created a search_bar.xml, and Iam trying to use it, but there is some error with it: It contains a <View> and other stuff </View>.

This is the messge is shown in the layoutview (in eclipse):

ClasscastException: android.view.View cannot cast to android.view.ViewGroup.

What does thie error mean, And how can I make it work?