How do I set the android:scaletype
attribute for the background image of a RelativeLayout
? The XML code is below:
<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"
android:background="@drawable/background"
android:gravity="center_vertical"
tools:context=".MainActivity" >