Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Position Label (or any text) on top of an Image

$
0
0

I have an image of a blue circle, and it needs to be displayed in my app with a number inside of it. The number can be anywhere from 1 to 99. I'd like to be able to just use my one background image and overlay the number on top of it (as opposed to having 99 images - each with a different number).

I've created a RelativeLayout that contains both the Imageand a Label(positioned such that the label would appear in the middle of the image). However, I can't see any text from the Label (image is covering it up); and I can't find any settings to achieve my desired results.

Anyone have experience with this or able to help?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>