There is nothing tricky. There is a common root container - RelativeLayout . It has 2 more views, an ImageView and a ScrollView container. By how much ScrollView installed last, it will "overlap" on the ImageView . Next you need a container for text and buttons in any case - it will be LinearLayout . So what would our text with the button be under the picture, put the padding for their container's root, in my example it is equal to the height of the image + indent 428dp . So that our good scrolls up, you need to install padding from the bottom. Good luck!
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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" tools:context="com.example.chaynik.myapplication.MainActivity"> <ImageView android:layout_width="match_parent" android:layout_height="420dp" android:src="@mipmap/ic_launcher" /> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingBottom="372dp" android:paddingTop="428dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/holo_red_dark" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="128dp" android:gravity="center" android:text="Chaynik The Best" android:textSize="36sp" /> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Подтверждаю!" /> </LinearLayout> </LinearLayout> </ScrollView> </RelativeLayout>
CoordinatorLayoutfor such cases specifically. - pavlofff