Tollas
Lurker
I'm having troubles getting an image to display as an ImageButton.
The button is there, but no image is displayed. This is true on another screen that uses the image as well. It's just a blank spot.
Eclipse layout shows the button image, but the emulator does not. I've used a different @drawable and it works fine in both layout and the emulator. I tried recreating the image (delete, refresh Eclipse, recreate, refresh) but it's still not displayed. I also tried renaming the image, but the problem persists. I've tried the image in other locations and removed the background. Still no image.
This is the source for the ImageButton
The button is there, but no image is displayed. This is true on another screen that uses the image as well. It's just a blank spot.
Eclipse layout shows the button image, but the emulator does not. I've used a different @drawable and it works fine in both layout and the emulator. I tried recreating the image (delete, refresh Eclipse, recreate, refresh) but it's still not displayed. I also tried renaming the image, but the problem persists. I've tried the image in other locations and removed the background. Still no image.
This is the source for the ImageButton
Code:
<ImageButton
android:id="@+id/attack_ability_button"
android:layout_width="52px"
android:layout_height="52px"
android:layout_x="15px"
android:layout_y="72px"
android:background="@color/clear"
android:src="@drawable/attack"/>