Skip to content
Advertisement

In Android Studio, text does not appear on top of an image

I’m doing a small project on Android Studio, and I’ve put a picture as a dark blue background. I inserted white text on top of this dark blue figure, but the white color in the letters still doesn’t show. The Graphical Interface. See that I put the color white, but it still doesn’t show up. Please, check out:

Please, can anyone help to [1]: https://i.stack.imgur.com/iTtiS.png

Source-code in the XML: [2]: https://i.stack.imgur.com/u6AIU.png

Please, what to do to the white text appear on the top of the image in Android Studio?

Whole XML Layout:

JavaScript

Advertisement

Answer

Ok I think the problem is that you’ve set the foreground of the constraint layout instead of the background.

Try this:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement