You can use imageView and set its scaleType for fitXY. Here is an example:
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/blue_dark_background" android:scaleType="fitXY" /> <LinearLayout>....</LinearLayout> </FrameLayout>
Please let me know if this helps you. Hello!
EDIT
This is a clearer example.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="3" android:orientation="vertical"> <FrameLayout android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" > <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" android:src="@drawable/ic_menu_share" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > </LinearLayout> </FrameLayout> <FrameLayout android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" > <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" android:src="@drawable/ic_menu_share" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > </LinearLayout> </FrameLayout> <FrameLayout android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" > <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" android:src="@drawable/ic_menu_share" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > </LinearLayout> </FrameLayout> </LinearLayout>
Zadec source share