Break into 4 elements:
Red background - background
Black Manchester Logo - ImageView
White lettering - TextView
The white icon at the bottom - ImageView
- image .9.png, with stretching ends, where there is no image. Android Studio has a built-in tool for working with 9patch images.
All this is LinearLayout
into a vertical LinearLayout
, you specify the vertical margin (margin) for the Manchester logo from the top and paddings (indents) for all elements. For the Manchester logo, text and icon below the text, the horizontal size indicates - match_parent
- to occupy the entire width, position the text inside with the help of gravity in the center and in general it is ready.
ImageView
done with a transparent background.
For the preparation of two ImageView
you can use the built-in Android Studio Asset Manager. Make one image under the maximum resolution (the largest picture), add to the project, then в IDE правый клик по картинке -> New -> Image Asset
.
There you will understand - the tool will prepare images for the desired density of the screen and will scatter itself on the necessary folders.
If you are not familiar with the support of different screen resolutions in android, you need to be familiar with , in particular, the choice of an appropriate system for a particular device image.
For TextView
specify the font size in sp
- this should be enough for scaling