Limit ScrollView/List height inside a pre-defined image background

view story

http://stackoverflow.com – I have a design for an android app which has big tables images (see A,B screen below) this means I already have A and B as images with all sizes that i need (mdpi, hdpi, xhdpi): My problem is that inside A I need to put a scrollview or a list of items but I don't want them to be bigger than A image. My current layout is something like the following: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" an (HowTos)