views:

44

answers:

1

I have...

  • PNG file for Background
  • PNG file for Icon (drawableTop)
  • Text I want to put underneath this Button

It's similar to a Menu Icon. How to do that? I only found following ways. Both of them arent very nice:

  • Make two Buttons, one for Text one for the Picture
  • The Background PNG File needs a transparent area at the bottom in the size of the text.
A: 

Set the text as the button text via the attribute android:text. Use the android:drawableTop attribute to set an icon that will appear above the text.

mbaird
but the background image shall be just behind the icon
OneWorld
Oh I see what you're saying. That just sounds like a TextView below an ImageView.
mbaird