you can’t use android:text
for the ImageButton. so just use a button and set background for it.
For example:
<Button
android1:id="@+id/btnShowLocation"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:padding="10dp"
android1:text = "@string/here_and_now"
android:background="https://stackoverflow.com/questions/13067637/@drawable/blue_button"/>
9
solved I can not see text on the Image button? [duplicate]