【发布时间】:2012-06-05 21:20:30
【问题描述】:
所以我在这些目录中有以下文件:
res/drawable-hdpi/icon_logo.png
res/drawable-xhdpi/icon_logo.png
在我的 XHDPI 布局 res/layout-xlarge/main.xml 中,我在图像中引用了 icon_logo,但是显示的是 HDPI 分辨率资源而不是 XHDPI 资源。
<ImageView
android:layout_width="229.50dp"
android:layout_height="42.50dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="13dp"
android:contentDescription="@string/cd_header_text"
android:src="@drawable/icon_logo" />
为什么会这样,过去一个小时我一直在用头撞墙试图弄清楚这一点。
附注我正在测试的平板电脑是 Galaxy Tab 10.1 Running HoneyComb 3.2
【问题讨论】: