-3
試圖顯示簡單的手機圖像。我得到錯誤。Imageview不適用於我的測試手機和模擬器
這裏是ImageView的
<ImageView
android:layout_width="400px"
android:layout_height="400px"
android:id="@+id/imageView"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="172dp"
android:src="@drawable/img1"
android:background="#ffffff" />
我的照片是在繪製文件夾中的XML代碼。我看到幾篇關於同樣問題的帖子,但無法解決。試圖減少寬度和高度從包裝角度400px和試圖把白色背景,但我仍然得到同樣的錯誤。當我嘗試使用模擬器或手機打開應用程序時,我收到了錯誤消息:不幸的是,DajanaGallery已經停止。
你怎麼知道ImageView是問題?請閱讀這篇文章,然後顯示logcat。 http://stackoverflow.com/questions/23353173/uncomfort-myapp-has-stopped-how-can-i-solve-this –
你得到什麼錯誤? –
在這裏添加logcat –