android: I want a(n) (Image)Button with two images on it

rileyand

New Member
I am designing a calculator in android, and for that I need buttons with two images on them, one image for the button main function and the other for the button second function. I cant collapse them into one image because those two functions of the button have to be separately replacable.Currently I 'solved' this with coding a layer-list and using it as the android:src for an ImageButton, but this seems clumsy and has issues when resizing.Is there a better solution?I am trying to stick with xml, by the way
 
Back
Top