android - How to achieve text over semitransparent image on a button -
I am trying to write the text above the image on my image button.
I am looking around the internet and I know that you can not set the imagebutton text. Everyone suggests that I use a button instead and set its background, but they ignore the fact that if I do this, the button is going to be a clickable image (I am a The image is to be dragged above the Android button image, not just an image) Is there any other way to do this? I would also like to avoid framelay if possible.
Framelay is the best way to do this. This code should be done
Android: Frame_Loutout Android: Layout_wind = "wrap-content" Android: layout_height = "wrap_content" Android: background = "something else" & gt; & Lt; Android: Eddie = "@ + ID / Button 1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: text = "button" Android: background = "somewhat" /> & Lt; / FrameLayout & gt;
Comments
Post a Comment