相对布局控件设置问题
<ImageButton
android:id="@+id/imageview2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/icon1"/>
<ImageButton
android:id="@+id/imageview1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/imageview2"
android:background="@drawable/icon2"/>
想让imageview1贴在imageview2的左边 使用layout_toLeftOf等语句 需要将参考的控件放在本控件之上(如例:将imageview2放的定义语句放在imageview1的上面) 否者会出现找不到源情况