Wie zu Strecken, ein einzelnes Bild als hintergrund in android-layout?

Homescreen diese enthält nur suchen, und ich will das hintergrund Bild für mein logo.

<RelativeLayout 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:background="@drawable/image"
tools:context=".MainActivity" >

<EditText
    android:id="@+id/editText1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:inputType="text"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_marginBottom="178dp"
    android:layout_marginLeft="40dp"
    android:ems="10" />

<SearchView
    android:id="@+id/searchView1"
    android:layout_width="300dp"
    android:layout_height="wrap_content"
    android:layout_alignTop="@+id/editText1" >

</SearchView>

Ich brauche das Bild in voller Größe angezeigt werden, dieser code zeigt zahlreiche Kopien von meinem logo in einer Kachel-format.

  • was ist das problem mit diesem code.
InformationsquelleAutor infosec | 2013-09-16
Schreibe einen Kommentar