May I know how to set background images to a Button in Blackberry?
Share
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.
Try following links:
You can get your customized button by extending ButtonField or Field. In case of ButtonField you have to override default paint(…), paintBackground(…), drawFocus(…), applyTheme(…) etc.
paint(…) – can draw image or other geometric figures instead of text
paintBackground(…) – define how should your button’s background look
drawFocus(…) – define how the button looks when it got focus
applyTheme(…) – do nothing if you want to remove default styling
If you extend Field, you will get more option for customization.