Welcome back.
And this video, we are going to make some minor design improvements to our app, so for example, at
the top, I want to have the action bar as we had it before, but as you can see here, we have this
little border.
And only within that white area is working roll.
OK, so this gray border that we have here is not available for drawing.
All right.
So let's add this to our app in order to do so.
I'm going to go to my activity main example, because that's where the drawing view is displayed and
I'm going to add a little margin.
So I'm going to say that I want to have a margin towards all directions of five density pixels.
And then I want to have a background, so I'm going to say background, and here I'm going to use ETS
draw bill and here I'm just going to enter a name of something that doesn't exist yet.
So I'm just going to say background underscore drawing on the score view on the score layout.
OK, pretty long name, but that's what it is.
And as you can see, this rather resource file doesn't exist yet.
And that is cool because now I can just go ahead and say, create drop resource file.
And it's just going to create this file for me so I can just leave it as it is now.
Selector main trouble.
That's fine.
But then once I'm here, I can adjust it.
So now let me adjust it real quick.
So, for example, I want this not to be a selector, but I want this to be a shape.
So let this be a shape, and the shape should be a rectangle.
So here I'm going to use.
Shape, rectangle.
So there's this property called Android Shape.
And then within that, I would like to have a solid color.
So I'm going to create a solid in there with a color of white.
So I'm just going to use white here.
And then surrounding it, I would like to have a stroke.
OK, so this is this gray border that we have, so I'm going to create this stroke with a width of zero
point five density pixels and a color of nine A to a F..
All right.
So there's going to be this grayish color.
Now let's look at the activity.
You can see the error disappeared because the file does exist now, and we created the file.
And before we test it, we of course, need to make sure that it's either.
Six deaths or eight deaths.
And of course, this color also needs a hashtag at the start so that we can go ahead and test this application.
And as you can see, we get this little border which surrounds our canvas, so now we can only draw
within that canvas.
All right.
So that's already it for this video.
See you in the next one.