This is an Android question.
How do I add a button to a frame layout, in the same location as my picture?
I am trying to add a button on top of a frame layout (which has a background image and no title bar) like so:
This is the entire code of my layout so far. What code do I add to put a button like in the picture?
activity_home_page.xml:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
tools:context=".HomePage">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/my_background_image"
android:scaleType="fitXY">
</ImageView>
</FrameLayout>
How do I add a button to a frame layout, in the same location as my picture?
I have tried & come up with a solution.