【发布时间】:2017-02-20 02:17:19
【问题描述】:
通过 Android Studio 从 png 文件创建九个补丁图像。在 ImageView 上将补丁图像设置为背景,但 ImageView 按预期显示更大的尺寸。 Studio 显示图像的大小为 117*95,但显示的 imageView 显示的大小接近 334*266。 请帮助如何解决它。附有PNG和屏幕。
<ImageView android:background="@drawable/new_sent_bubble_edit1" android:layout_width="wrap_content" android:layout_height="wrap_content" />
【问题讨论】:
-
你是如何测量 android 屏幕上的尺寸以及在 android studio 中如何测量的?
-
Adroid Studio 仅在打开图像时显示分辨率和图像大小信息。还通过 Android Studio 从手机截取屏幕截图并在 PC 上的任何编辑器中打开。
标签: android android-layout nine-patch