Can someone please tell me why my ImageButton
is not showing when I use this layout:
<?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>
When I use a LinearLayout
, it shows up just fine. Can anyone please clarify what I am doing wrong?