如何将按钮置于图片之上

<RelativeLayout ...>
<ImageView (image) ...>
<Button (button)
android:layout_alignParentBottom="true"
android:layout_centerInParent="true" />
</RelativeLayout>

关键点在于,android中的布局,后面的元素会覆盖前面的元素,例如上例中的button会覆盖imageview

posted @ 2015-11-08 18:28  lych2e  阅读(634)  评论(0)    收藏  举报