1
00:00:01,000 --> 00:00:04,560
All right, so let's get started billing this little quiz application.

2
00:00:06,120 --> 00:00:10,350
Therefore, I'm going to create a new project with an empty activity here.

3
00:00:10,800 --> 00:00:15,880
I'm going to call this one my quiz app and everything else can stay the same.

4
00:00:16,260 --> 00:00:18,000
And the default settings are fine here.

5
00:00:20,000 --> 00:00:24,770
The first thing that you might recognize or realize is that we don't have an action bar here at the

6
00:00:24,770 --> 00:00:25,070
top.

7
00:00:25,310 --> 00:00:28,130
And I want to get rid of that straight from the start.

8
00:00:28,490 --> 00:00:32,960
Therefore, we can go to our manifest here and Route Manifest XML file.

9
00:00:33,110 --> 00:00:37,040
And in this file you do the setup for the different activities that you have.

10
00:00:37,050 --> 00:00:42,830
You define which activity is going to be the starting activity when you open up the app, which activity

11
00:00:42,830 --> 00:00:43,670
should be displayed.

12
00:00:43,670 --> 00:00:47,960
In our case, we only have one activity, but we're going to see how to have multiple activities.

13
00:00:48,320 --> 00:00:53,090
And then you can also define what style you want to have, for example.

14
00:00:53,480 --> 00:00:59,660
So you see here on the application, there is a theme defined already, and it created a theme called

15
00:00:59,660 --> 00:01:00,810
My Quest app.

16
00:01:00,860 --> 00:01:07,670
But I want to instead use material components that day night that no action bar.

17
00:01:08,510 --> 00:01:13,850
So what that will do is it will make sure that we don't have an action bar in our application.

18
00:01:13,880 --> 00:01:18,740
Let's try this out because usually what you would see is a big action bar here at the top.

19
00:01:19,070 --> 00:01:21,350
And now we see we don't have an action bar.

20
00:01:21,650 --> 00:01:29,150
So if we were to go back in these settings here and run it again, you would see what this action bar

21
00:01:29,150 --> 00:01:29,910
actually looks like.

22
00:01:29,930 --> 00:01:33,230
So here this marqués app, I want to get rid of that.

23
00:01:35,520 --> 00:01:41,370
Which is why I have the major components, they need no action bar style from the themes.

24
00:01:41,820 --> 00:01:47,460
So this is the theme that I'm setting up and it is inside of my themes folder here.

25
00:01:47,910 --> 00:01:51,750
And there is this accent L and XML might in there.

26
00:01:52,050 --> 00:01:54,060
These styles are defined.

27
00:01:54,060 --> 00:01:59,490
So here, for example, this theme My Quest Ever had something set up with dark action bar.

28
00:01:59,700 --> 00:02:06,690
So instead of setting it up directly here where I said no action bar, I could have left it with a theme

29
00:02:06,690 --> 00:02:07,590
that we had there.

30
00:02:07,890 --> 00:02:14,910
So the one that we had for our application name and that was, I believe, my quiz app and I could have

31
00:02:15,150 --> 00:02:20,580
also just said that we want to have no action bar here.

32
00:02:20,670 --> 00:02:25,170
OK, so these are the two ways that this will probably be the better one, because now you can define

33
00:02:25,170 --> 00:02:30,870
all of your style settings inside of your style file, which means the theme file where you have this

34
00:02:30,870 --> 00:02:32,220
style setting.

35
00:02:32,820 --> 00:02:35,670
OK, so let's run it again just to see if this actually worked.

36
00:02:36,320 --> 00:02:38,250
You could see we have no action bar.

37
00:02:38,550 --> 00:02:42,690
So we looked at how we can change that directly in the manifest.

38
00:02:42,690 --> 00:02:46,560
But then we saw how we can do it in the Styles file, which is better practice.

39
00:02:48,110 --> 00:02:53,720
Now, the next thing that I would like to set up is that my application cannot rotate, so the screen

40
00:02:53,720 --> 00:02:56,540
orientation should always stay in portrait mode.

41
00:02:56,930 --> 00:03:03,680
Therefore, under the activity settings, so these are my activity settings for the main activity.

42
00:03:04,070 --> 00:03:11,360
I will add a setting here called orientation, so screen orientation.

43
00:03:11,630 --> 00:03:15,590
You can just enter Orient and you will find the screen orientation setting.

44
00:03:15,920 --> 00:03:18,590
And here you can select from different settings.

45
00:03:18,590 --> 00:03:19,850
You can see there are plenty.

46
00:03:20,000 --> 00:03:25,580
And the one that I want to use is going to be portrait because I want to make sure that the only portrait

47
00:03:25,580 --> 00:03:29,330
is going to be accepted as the screen orientation for my application.

48
00:03:29,480 --> 00:03:33,790
So now, even if I rotate the phone, it will always have this portrait mode.

49
00:03:35,640 --> 00:03:40,490
OK, so this was the first set up for this application in the next video, we're going to set up the

50
00:03:40,680 --> 00:03:45,420
are using car to you and we're going to see how we can disable the status bar at the top.

51
00:03:45,630 --> 00:03:46,500
So see you there.

