十-android ImageView 图片视图

10-android ImageView 图片视图目标:? ? ?掌握ImageView组建的使用? ? ?掌握图片的保存?? ? ?如果说RadioG

10-android ImageView 图片视图

目标:

? ? ?掌握ImageView组建的使用

? ? ?掌握图片的保存

?

? ? ?如果说RadioGroup提供商的是一个RadioButton的容器,那么ImageView所提供的就是一个专门用来存放图片的容器

? ? ?但是所有的图片都应该保存在res/drawable-xx文件夹之中,ImageView组件本身定义很简单

?

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

? ? android:layout_width="fill_parent"

? ? android:layout_height="fill_parent"

? ? android:orientation="vertical" >


? ? <ImageView

? ? ? ? android:id="@+id/img"

? ? ? ? android:layout_width="fill_parent"

? ? ? ? android:layout_height="wrap_content"

? ? ? ? android:src="@drawable/logo" />


</LinearLayout>