在大多数模拟器中,您将注意到旋转视窗后将向外扩展图像以匹配设备的480像素的新宽度。
On most of the simulators, you'll notice that rotating the viewport causes the image to be scaled out to match the new 480-pixel width of the device.
对话窗口图像高度和宽度(64和64像素)。
图像的高度和宽度的最大值被设置为 150 像素,但是保持高宽比例不变,因此图像没有变形。
The height and width are maxed out at 150 pixels, but the ratio of the height-to-width is preserved so the images are not distorted.
应用推荐