1
00:00:00,150 --> 00:00:06,180
Welcome back and this video, we are going to make some minor design improvements to our ABSOL, for

2
00:00:06,180 --> 00:00:10,680
example, at the top, I want to have the action bar as we had it before.

3
00:00:10,680 --> 00:00:20,590
But as you can see here, we have this little border and only within that wide area is where control.

4
00:00:20,940 --> 00:00:26,400
OK, so this great border that we have here is not available for drawing.

5
00:00:27,270 --> 00:00:27,570
All right.

6
00:00:27,570 --> 00:00:29,610
So let's add this to our map.

7
00:00:30,270 --> 00:00:36,840
In order to do so, I'm going to go to my activity, main example, because that's where the drawing

8
00:00:36,840 --> 00:00:37,920
view is displayed.

9
00:00:38,280 --> 00:00:40,740
And I'm going to add a little margin.

10
00:00:41,220 --> 00:00:46,620
So I'm going to say that I want to have a margin towards all directions of five density pixels.

11
00:00:48,190 --> 00:00:55,390
And then I want to have a background, so I'm going to say background, and here I'm going to use at

12
00:00:55,420 --> 00:01:02,400
drawable and here I'm just going to enter a name of something that doesn't exist yet.

13
00:01:02,650 --> 00:01:08,770
So I'm just going to say background, underscore drawing, underscore view, underscore layout.

14
00:01:09,070 --> 00:01:11,290
OK, pretty long name, but that's what it is.

15
00:01:11,530 --> 00:01:15,130
And as you can see, this drawable resource file doesn't exist yet.

16
00:01:15,500 --> 00:01:20,320
And that is cool because now I can just go ahead and say create a resource file and it's just going

17
00:01:20,320 --> 00:01:24,760
to create this file for me so I can just leave it as it is now.

18
00:01:24,940 --> 00:01:26,230
Selecter main drawable.

19
00:01:26,230 --> 00:01:26,800
That's fine.

20
00:01:27,100 --> 00:01:29,510
But then once I'm here, I can adjust it.

21
00:01:29,560 --> 00:01:31,600
So now let me adjust it real quick.

22
00:01:31,900 --> 00:01:38,250
So for example, I want this not to be a selector, but I want this to be a shape.

23
00:01:38,770 --> 00:01:44,500
So let this be a shape and the shape should be a rectangle.

24
00:01:44,740 --> 00:01:46,450
So here I'm going to use.

25
00:01:48,140 --> 00:01:50,160
Shape rectangle.

26
00:01:50,870 --> 00:01:57,710
So there's this property called Handwrote Shape, and then within that I would like to have a solid

27
00:01:57,710 --> 00:01:58,120
color.

28
00:01:58,670 --> 00:02:02,670
So I'm going to create a solid in there with a color of white.

29
00:02:02,870 --> 00:02:06,500
So I'm just going to use white here.

30
00:02:08,310 --> 00:02:15,450
And then surrounding it, I would like to have a stroke, OK, so this is this gray so border that we

31
00:02:15,450 --> 00:02:15,710
had.

32
00:02:16,170 --> 00:02:25,650
So I'm going to create this stroke with a whiff of zero point five density pixels and a color of nine

33
00:02:25,690 --> 00:02:27,390
A to F..

34
00:02:29,370 --> 00:02:29,790
All right.

35
00:02:29,790 --> 00:02:31,830
So there's going to be this grayish color.

36
00:02:32,730 --> 00:02:34,690
Now, let's look at the activity.

37
00:02:35,040 --> 00:02:39,840
You can see the error disappeared because the file does exist now and we created the file.

38
00:02:41,550 --> 00:02:44,550
And before we test that, we, of course, need to make sure that it's either.

39
00:02:45,580 --> 00:02:53,170
Six or eight F's and of course, discolor also needs a hashtag at the start so that we can go ahead

40
00:02:53,170 --> 00:02:54,450
and test this application.

41
00:02:55,420 --> 00:03:03,310
And as you can see, we get this little border which surrounds our canvas, so now we can only draw

42
00:03:03,340 --> 00:03:04,300
within that canvas.

43
00:03:06,300 --> 00:03:08,280
All right, so that's already it for this video.

44
00:03:08,610 --> 00:03:09,500
See you in the next one.

