读书人

11-android ImageButton 图片旋钮

发布时间: 2012-07-26 12:01:08 作者: rapoo

11-android ImageButton 图片按钮

?

目标:掌握ImageBotton的使用<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"? ? android:layout_width="fill_parent"? ? android:layout_height="fill_parent"? ? android:orientation="vertical" >
? ? <ImageButton? ? ? ? android:id="@+id/rig"? ? ? ? android:layout_width="wrap_content"? ? ? ? android:layout_height="wrap_content"? ? ? ? android:src="@drawable/right" />
? ? <ImageButton? ? ? ? android:id="@+id/wro"? ? ? ? android:layout_width="wrap_content"? ? ? ? android:layout_height="wrap_content"? ? ? ? android:src="@drawable/wrong" />
</LinearLayout>
这个类的目的是:1.TextView 和Button 的关系==ImageView和ImageButton的关系

读书人网 >图形图像

热点推荐