I have an ImageButton and I want to show a text and an image on it. But when I try on emulator:
ImageButton
Actually, android:text is not an argument accepted by ImageButton but, If you're trying to get a button with a specified background (not android default) use the android:background xml attribute, or declare it from the class with .setBackground();
android:text
android:background
.setBackground();