All right, so let's get started billing this little quiz application.
Therefore, I'm going to create a new project with an empty activity here.
I'm going to call this one my quiz app and everything else can stay the same.
And the default settings are fine here.
The first thing that you might recognize or realize is that we don't have an action bar here at the
top.
And I want to get rid of that straight from the start.
Therefore, we can go to our manifest here and Route Manifest XML file.
And in this file you do the setup for the different activities that you have.
You define which activity is going to be the starting activity when you open up the app, which activity
should be displayed.
In our case, we only have one activity, but we're going to see how to have multiple activities.
And then you can also define what style you want to have, for example.
So you see here on the application, there is a theme defined already, and it created a theme called
My Quest app.
But I want to instead use material components that day night that no action bar.
So what that will do is it will make sure that we don't have an action bar in our application.
Let's try this out because usually what you would see is a big action bar here at the top.
And now we see we don't have an action bar.
So if we were to go back in these settings here and run it again, you would see what this action bar
actually looks like.
So here this marqués app, I want to get rid of that.
Which is why I have the major components, they need no action bar style from the themes.
So this is the theme that I'm setting up and it is inside of my themes folder here.
And there is this accent L and XML might in there.
These styles are defined.
So here, for example, this theme My Quest Ever had something set up with dark action bar.
So instead of setting it up directly here where I said no action bar, I could have left it with a theme
that we had there.
So the one that we had for our application name and that was, I believe, my quiz app and I could have
also just said that we want to have no action bar here.
OK, so these are the two ways that this will probably be the better one, because now you can define
all of your style settings inside of your style file, which means the theme file where you have this
style setting.
OK, so let's run it again just to see if this actually worked.
You could see we have no action bar.
So we looked at how we can change that directly in the manifest.
But then we saw how we can do it in the Styles file, which is better practice.
Now, the next thing that I would like to set up is that my application cannot rotate, so the screen
orientation should always stay in portrait mode.
Therefore, under the activity settings, so these are my activity settings for the main activity.
I will add a setting here called orientation, so screen orientation.
You can just enter Orient and you will find the screen orientation setting.
And here you can select from different settings.
You can see there are plenty.
And the one that I want to use is going to be portrait because I want to make sure that the only portrait
is going to be accepted as the screen orientation for my application.
So now, even if I rotate the phone, it will always have this portrait mode.
OK, so this was the first set up for this application in the next video, we're going to set up the
are using car to you and we're going to see how we can disable the status bar at the top.
So see you there.