java - The following classes could not be found: - ImageButton (Change to android.widget.ImageButton, Fix Build Path, Edit XML) -


the following classes not found: - imagebutton (change android.widget.imagebutton, fix build path, edit xml)

this happens when use android:src="@drawable/change_button" point selector xml file define button's state when button press or not press!

*"this happens when use android:src="@drawable/change_button"*

the image on surface of button defined either android:src attribute in xml element or setimageresource(int) method.

so, try second method. if error persists, checkout *change_button.xml*


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -