图像显示在模拟器上,7英寸平板电脑但不在10英寸Android平板电脑上(华硕变压器)

时间:2014-02-13 06:24:17

标签: android image android-layout user-interface layout

该应用在7英寸平板电脑,10英寸仿真器和三星10英寸设备上正常运行。 除了一个大图像(2048 X 1200)之外,sw720dp中的其他图像显示在10英寸平板电脑中。 图像是静态的意思是在应用程序中,而不是通过Web服务下载。

代码是

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/background_repet_"
    android:orientation="vertical" >

    <include layout="@layout/header" />

    <ImageView android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:src="@drawable/dashboard_background"
        android:background="@null"
        android:scaleType="fitXY"/>

</LinearLayout>

,问题在于

<ImageView android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:src="@drawable/dashboard_background"
            android:background="@null"
            android:scaleType="fitXY"/>

但标题图片显示。

0 个答案:

没有答案
相关问题