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

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -