image on top of button android

Posted by N-AccessDev on Stack Overflow See other posts from Stack Overflow or by N-AccessDev
Published on 2012-06-25T13:05:55Z Indexed on 2012/06/25 15:16 UTC
Read the original article Hit count: 198

Is it possible to add an image(view) on top of a button (which as a background image)?

I'm porting an iOS app to Android and it wasn't a problem on iOS, but I'm wondering if it is the right approach on Android because of layouts.

Edit :

To clarify, check this screen shot :

http://a4.mzstatic.com/us/r1000/062/Purple/v4/7c/4b/cd/7c4bcd53-ba55-94d7-a26c-ce1bfe040003/mza_2736801523527387264.320x480-75.jpg

I need to do the bottom left button "carte" (card in french)

I need :

  • a button with a background image
  • an image displayed on top of the button which is loaded from internet (a card , there is a lot of different and news cards are added daily, in the screnshot it s "MIDI PASS" )
  • a text localised on the button , so I cant use Imagebutton class.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-layout