Text is showing through into new fragment android
up vote
0
down vote
favorite
I'm new to Android and I'm making an alarm clock for practice. I have my MainActivity which shows a digital clock like this - The add sign in the top right corner opens a new fragment to be able to set a new alarm but the problem is that the white digital clock text (shown in the first image) is peaking through into my fragment. I have tried to follow other suggestions that I've found on here such as setting the background to white on the fragment and also setting statelistanimator to @null but nothing has changed it. Here is the image(the overlap is on the text)- Here is the XML for the fragment. (I have included only the parts that I believe are relevant, but i could be wrong). <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android....