0

i asked the question about haw to create a button by a text & an image

Button contains text & image from the Internet [android]

it was very helpful.But, the problem is : i want a button contains the image & under it the text (not as background) am looking how to add this image as the text and specify their place??

thanx

Community
  • 1
  • 1
ilredelweb
  • 3,091
  • 4
  • 17
  • 14

1 Answers1

0

You can try creating LayerDrawable with two layers: transparent (size of the button) and your image on top and set it as background. Then add text as a caption and use gravity = bottom to position it.

Asahi
  • 13,378
  • 12
  • 67
  • 87