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 :
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.
It is not quite clear what you want to achieve, but the following may be helpful for you:
ImageButtonandroid:background) or in code (usingsetBackgroundResource)Update:
Looking at your updated requirements, it would be better to use a custom component to achieve what you want.