Has anyone ever come across a UI issue submitted by a user where UI elements are just bizarrely miss...
r
Has anyone ever come across a UI issue submitted by a user where UI elements are just bizarrely missing from the layout? I can't reproduce an issue a user from a Samsung Galaxy S8 has sent me where entire ui elements are missing. I've tested display sizes, text sizes, and more but still no way to reproduce it.
z
That’s the problem with `FrameLayout`s – if you don’t secure them to the wall well enough they fall off if the user drops their phone.
😂 3
r
Lol. It's a constraint layout
I'm losing my mind trying to reproduce the issue
d
By saying "entire ui elements are missing", do you mean also system bars, etc? Or is it just blank activity/fragment?
r
In this case, a text view and a button are missing from the screenshot
System ui looks in tact
d
Does it happens every time?
r
for this particular user, they say that it does. but haven't been able to reproduce the issue on any of my test devices
d
Yeah, that's strange. Not much help, but my point is that it's pretty unlikely that your layout was accidentally not inflated or smth like that. I could only assume that maybe you have fragment which was not committed or restored on user device by some reason. This might happen to fragments.
r
hmm interesting theory. for it to be so consistent though seems strange
d
It is funny that usually a samsung devices has weird behavior like that
r
i swear, Samsung has it out for Android developers 🤦🏻
i keep hoping it's something i'm doing wrong...but i'm running out of things to check
i came across some conversations around this topic of constraint layout messing up with devices like the Samsung Galaxy S8 that have dynamic resolutions
apparently some versions of Constraint Layout will render things incorrectly if the user's device is set to a different resolution than the out-of-box resolution
gonna try to confirm this myself
d
Sounds familiar to me, actually. I might ran in some issues with constraint acting weird long time ago. I'm not a ConstraintLayout fan though
You might want to set explicitly some params to constraint layouts childrens. Some that you usually don't set, like constrainedHeight/Width or similar.
That could help
r
hmm, yeah maybe. thanks for the ideas
b
you should be able to put it in the debugger and look at the view hierarchy
r
yeah i just don't have the exact device on hand to test the user's issue
i can't reproduce it on my test devices