石头毛毛 2016-05-25 14:00 采纳率: 25%
浏览 6362

android imageview为什么不能显示这张图片?

图片说明
布局文件
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >

<ImageView
    android:id="@+id/iv"
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    android:background="@drawable/aa"/>

谁能个我解释下原因~~~

  • 写回答

8条回答 默认 最新

  • 恋恋西风 2016-05-26 01:14
    关注

    图片太大了?
    改一下宽高试试
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

    评论

报告相同问题?