Skip to content
Advertisement

ConstraintLayout braking after displaying Android Studio

I am currently working on an android app, and I’m having an issue with displaying XML layout In Android Studio, everything looks fine, but in the VM it doesn’t look too good.

This is how it looks in Android Studio:

Screenshot here

And here is how it looks like when it’s displayed in VM:

Screenshot here

I should probably mention that it is supposed to be a pop up window

Here is XML code:

JavaScript

Here is code from the Main Activity:

JavaScript

Advertisement

Answer

Try adding,

JavaScript

to your last TextView(@+id/secondValue) component.

Advertisement