I have an ImageButton and I want to show a text and an image on it. But when I try on emulator:
As you can't use android:text I recommend you to use a normal button and use one of the compound drawables. For instance:
You can put the drawable wherever you want by using: drawableTop, drawableBottom, drawableLeft or drawableRight.
UPDATE
For a button this too works pretty fine. Putting android:background is fine!
I just had this issue and is working perfectly.