很簡單, 圖像視圖(ImageView)就是顯示圖像的視圖. 圖像視圖類可以從不同來源加載圖像, 如資源(resources)或內容提供商(內容提供商).

加載圖片來自不同來源(如資源或內容提供商)
佈局(main.xml)
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon"
/>
http://androidbiancheng.blogspot.com/
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon"
/>
沒有留言:
發佈留言