In my Android project, I’ve a image button whose background is set to some image. I want so set some text on the image button. How do i do that/
I want to set the text because localization would be used in the project….
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An ImageButton is not supposed to have text, that’s why it’s called ImageButton.
Try to use Button, which inherits from TextView and does have the android:text attribute.
Is there any particular reason why you want to use ImageButton over Button?