ImageView导致应用程序崩溃在2.3.1而不是2.2

时间:2011-02-06 23:18:25

标签: android imageview

布局:

<LinearLayout android:id="@+id/layoutLogo"
    android:layout_width="match_parent"
    android:layout_height="70.0sp">
    <ImageView android:layout_width="wrap_content"
        android:id="@+id/imageLogo"
        android:src="@drawable/nglogo"
        android:layout_weight="3"
        android:layout_height="wrap_content"></ImageView>
    <ImageView android:layout_width="match_parent"
        android:id="@+id/imageLogoWords"
        android:layout_height="wrap_content"
        android:scaleType="fitXY"
        android:src="@drawable/audioportaltext"
        android:layout_weight="1"
        android:layout_gravity="center_horizontal"></ImageView>
</LinearLayout>

导致我的应用崩溃。导致它崩溃的确切行:

   <ImageView android:layout_width="wrap_content"
       android:id="@+id/imageLogo"
       android:src="@drawable/nglogo"
       android:layout_weight="3"
       android:layout_height="wrap_content"></ImageView>

它只在2.3.1崩溃,而不是2.2

0 个答案:

没有答案