Add in the ImageView.
Android:scaletype= "Fitxy"
On it, it will not be left up and down.
Explain what ScaleType means.
Scaletype= "Matrix" is to keep the original size, starting at the point in the upper left corner, drawing in matrix form.
Scaletype= "Fitxy" is drawn after stretching the original image in a transverse direction (that is, the xy direction).
Scaletype= "Fitstart" is a scaled original drawing of the original image along the upper-left corner (that is, the point at which the matrix mode drawing starts).
Scaletype= "Fitcenter" is the point at which the original image is centered along the top (that is, the center point of the first line of the Matrix Drawing), and the original drawing is scaled proportionally.
Scaletype= "Fitend" is the point at which the original image is centered along the bottom (that is, the center point of the last line of the matrix drawing), scaled by the original drawing.
The scaletype= "center" is the size of the original image, with the geometric center point of the original and the geometric center point of the Imagview as the benchmark, drawing only the Imagview size.
Scaletype= "Centercrop" does not maintain the original size, with the geometric center point of the original image and the geometric center point of the Imagview as the benchmark, only the Imagview-sized images are drawn (to fill
Imagview as the target, crop the original image).
Scaletype= "Centerinside" does not maintain the original size, and is based on the geometric center point of the original image and the geometric center point of the Imagview, drawing only images of the Imagview size (to show
The full picture is the target and the original image is scaled).
Android makes ImageView fill the entire control method