I want to put an ImageView on top of (over) another view which is derived from SurfaceView using percentages for width and height. But no idea how to achieve that. Any help?
That's my code so far:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<MyOwnView
android:id="@+id/my_own_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight=".20"
android:contentDescription="@string/imageview_description"
android:src="@drawable/background_picture" />
</RelativeLayout>
And that's what I want: