How to add button caption on image button
android, caption, imagebutton, text
Solution
Use `Button` instead of `ImageButton`.
There use:
android:drawableTop="@drawable/image"
android:text="@string/text"
FYI by using `drawableTop`, the drawable will be drawn above the text.
Problem
I am going to use image button in my app And I need to display button caption on the button I'm using this code but it did not show caption ``` <ImageButton android:id="@+id/try_button" android:background="@drawable/custom_button" android:layout_width="match_parent" android:layout_height="60dp" android:layout_margin="10dp" android:text="@string/trybutton_caption" /> ``` How can I do this? Thank you.