So and I say this uncle if ever I can actually with my logic here.
So here I am.
For example I want to actually change the text of this text view so I can't just typing in the.
So when a user clicks on this button this and click if it is going to be executed.
So excited that said text and instead of double quotes I can't just say the text.
The text is changed.
For example I want to actually change the value of this checkbox so I can just say I can see a text
that's set checked.
For example true.
OK so now let's actually run our project and see what happens.
So as you can see here inside this activity underlying minute example.
So here let me actually click on this clear cashier here.
We have this include file inside our main activity here.
OK.
Inside that inside our activity underline minute example.
So now if I run my project we should see this include exemplified here.
OK.
So now as you can see here our application is actually running on this emulator and this is our include
exemplified right.
These are the user interface components that are inside.
It includes vide.
So now let's actually click on the spot in here.
This is button and now as you can see the text is changed here and the value of this checkbox is true.
This is checkbox.
I can even actually change the text of this checkbox here so I can just typing or see a text that said
text and I can actually to change the text of this checkbox to another value for example I can say that
the value of this checkbox is true now.
So let's run our project again and see what happens.
So now as you can see here our application is running on this emulator here.
So let's actually click on the spot in here and now as you can see the text is changed.
And here we can see that the text of this checkbox is actually changed the values of this text box.
That is true now.
So I actually tightened values I should type value here.
And as you can see here the search box is actually checked.
So this means that disembarks the value of the search box is actually true.
OK.
So this is how you actually use the include files in your projects.
And now I want to do another thing here.
So look look at this.
Look at that application now here on the simulator.
So let's actually use Let's see how our application.
See the design of our application in landscape mode.
OK.
So here as you can see I just need to rotate my device by clicking on the spot in here and I can see
my device is rotated.
And now as you can see the design of my user interface is actually changed and I cannot see the user
interface components properly here.
So there is a problem here so we should actually design our user interface to be good or to be nice
in land in landscape mode.
OK.
So let's see how we can do that.
So in our project structure as you can see in our project structure just click on this layout folder
here.
So I want to actually change the design of my user interface when the device is actually in the landscape
mode.
OK.
So right click on this layout folder new and then click on layout resource file.
So for the file name the name of your file they must be the same as this activity underline minute example
because I want to actually change the design of my activity underline minute example when the device
is actually in the landscape mode.
So the name of my file must be the same as this in here.
Activity underline made.
OK that example.
And here as you can see here we can't see these qualifiers here.
So just select selectees orientation qualifier here and then click on this button here as you can see
and here choose our this screen orientation to landscape identical.
OK so now as you can see here I actually created another example file with this thing name as activity
underline mean that exemption.
So now it's actually DoubleClick and is laid layout directly here.
And as you can see the ID actually created another directory with this name activity underlined made
that example.
And as you can see here inside the prentices we have disvalue number two.
So this means we have two exemplifies with the same name.
The first one is going to be for the device.
Orientation is actually vertical.
OK that this is the design of our user interface here a device orientation is vertical right.
So what happens then the device orientation is landscape as you can see here when a device is actually
in landscape mode what is going to happen.
So now I can actually design the user interface of my application.
Relativize is landscape as you can see here we have this linearly aesthetical as the that.
Right.
So if you click on this tapes stop here at the bottom we can see that we can see that we have a linear
layout and the orientation is vertical and the lay out which is much Pallant and the layer of height
is much parallel.
Right.
So let's actually go back to the Design tab.
And now let's actually track and scroll view of vertical scroll view into this linearly Ellsworthy call.
So just select this scroll view here inside this container's folder as you can see just selectees scroll
view and put it at the center of this linearly aesthetical.
OK.
Soon as you can see here we have this scroll view that is actually inside is linearly earthwork to cut
right.
So now let's actually put our include file into this scroll view.
So here as you can see inside this custom folder we have this include.
OK so now I can actually search for my include file as you can see here this is my include underlined
text underlined button underlined checkbox underlined panel.
I just need to select it and then click on it.
OK so now as you can see that I actually selected the include file I can actually put it inside this
scroll view.
I just need to click on the scroll and as you can see here my include file is actually now inside this
scroll view.
OK so now let's actually run our project and see what happens.
So as you can see here our application is running on this emulator here and this is the design of the
user interface of our application of this main activity here.
This activity underline minute example of any device orientation is vertical.
So let's see what happens then I actually rotated this device and that device is going to be in in the
landscape mode.
So just click on this rotate here and now you can see Mike the device is actually there in the landscape
mode.
And now as you can see it does include file is actually inside a scroll view or you can actually scroll
and see these values right.
So if I click on the spot in here now you can see that I can actually scroll and these values changed.
The text is changed and the value of the checkbox is true now.
So if you have two XML files for two different modes of any device orientation is vertical and when
the device is actually in the landscape mode when the device orientation is actually vertical we don't
have any scroll of use here.
OK.
But when the device is actually in the landscape mode we have actually of scroll view and this includes
file is actually inside the scroll view.
So I can scroll now.
OK.
So this is how you act how you can actually design the user interface of your application when the device
orientation is actually vertical and when the device orientation is actually horizontal like this.
So now hopefully that makes sense.
I can I can even actually change the design here.
I can actually select these include and put it at the center of these linearly out here on inside this
scroll view as you can see.
I have this include So as you can see here.
Now these included is actually inside this linearly as vertical.
So I just need to select it here and put it inside this scroll view here as you can see.
And now as you can see here our include file is actually at the center of this scroll view so we can
actually change this includes flight.
And for example put it here at the right hand side.
And again this include file is inside the cylinder linearly as vertical.
So again I just need to select it and put it inside this scroll view.
OK.
Now as you can see here our include file is actually at the right hand side here.
Inside this scroll view OK and this scroll as you can see is actually inside this linearly I-30 card.
So now let's actually change this position the position of this include file and put it at the center
of the city nearly vertical.
And let's actually select it again and put it inside the scroll view.
So let's actually run our project now and see what happens.
So now as you can see here our application is running on the emulator here.
So this is the design of my application.
When the device orientation is actually vertical right so let's see what happens when a device orientation
is actually horizontal or when the device is actually in the landscape mode.
So I just need to click on this rotates button here rotate.
Right.
And now as you can see here my include file is actually at the center of this linearly out vertical
as you can see here and I can actually scroll down here or scroll up as you can see and if I click on
the spot.
Now these values changed.
The text is changed.
This is button the value of this checkbox is true now.
Right.
So hopefully that makes sense and I think that's enough for this tutorial.
So now you guys know how you can actually design the user interface of your applications when the device
orientation is vertical or when the device is actually in landscape mode.
So if you have any questions please post the discussion in the course and then I'll do my best to answer
all of your questions.
Thank you very much for watching and I'll see you in the next year.
Tauriel.