有人可以告诉我为什么我ImageButton
在使用此布局时没有显示:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main"
android:orientation="vertical" >
<ImageButton
android:id="@+id/continuebutton"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.02"
android:background="@android:color/transparent"
android:src="@drawable/continuebutton"
android:visibility="visible" />
</RelativeLayout>
当我使用 aLinearLayout
时,它显示得很好。谁能澄清我做错了什么?