Welcome back.
Before we add the features that I told you we put in this video, I would like to show you one little
thing that is pretty important, and that's the difference between gone and invisible, because here
you can see that there is no space for the fields that should be in here because I made them gone.
So when you use gone, then the space that would be required for this layout is not used.
But when you use invisible, then it's there and it still takes the space that it requires when it is
visible.
All right.
So that's really the difference.
Let's look at it, because the thing that we made invisible is our.
Actual field here at the very bottom, which is this linear layout which displays the PMI result, and
I made this invisible in the XML code, so that's fine, but I made it gone into the code here.
So if we look at it, we had.
This I love this play, BMI results view said to gone instead, it should be invisible.
And the same thing goes for our display BMI result here.
It should also be said to invisible.
OK, so now let's test it again and see if that's going to impact our UI directly.
And there you are, you can see that now, the space that we wanted to be available for, all of those
texts will be made available and once we enter something in here.
Then you can see.
That the data is displayed correctly.
OK, so that was just very quickly the difference between gone and invisible.
You can see the other elements are still gone because we don't want them to interfere with our metric
unit elements.
And the same goes the other way around as we did here.
All right, so see you in the next video.