一、布局文件相关定义
<?xml version="1.0" encoding="utf-8"?>
<!-- xmlns:android="http://schemas.android.com/apk/res/android" -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iv1"
android:src="@drawable/baiyang"
android:layout_width="100dp"
android:layout_height="150dp"
android:onClick="iv1click"/>
<ImageView
android:id="@+id/