Android-Gerät zeigt kein Hintergrundbild an
Ich habe ein Projekt mit Ausrichtung erstelltandroid 4.4 - API Level 19
, wie von Eclipse vorgeschlagen.
Wie auch immer, auf dem Emulator sieht alles perfekt aus - hier ist ein Screenshot:
Die Probleme treten auf, wenn ich es auf meinem realen Gerät installiere - mit Android4.1.2
. Alles ist einfach perfekt und funktioniert wie ein Zauber, mit Ausnahme des Hintergrundbildes. Es zeigt einen weißen Hintergrund, als ob das Bild nicht existiert.
Hier ist meine XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
android:orientation="vertical"
android:gravity="center"
android:padding="30dp"
android:background="@drawable/wg_blurred_backgrounds_12"
>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/btnTopJokes"
android:onClick="showTopJokes"
android:gravity="center"
/>
<Button
android:layout_marginTop="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/btnNewJokes"
android:onClick="showNewJokes"
android:gravity="center"
/>
<Button
android:layout_marginTop="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/btnAllJokes"
android:onClick="showAllJokes"
android:gravity="center"
/>
<Button
android:layout_marginTop="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/btnMyFavorites"
android:onClick="showFavorites"
android:gravity="center"
/>
<Button
android:layout_marginTop="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/btnCategories"
android:onClick="showCategories"
android:gravity="center"
/>
<Button
android:layout_marginTop="10dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/btnAddNewJoke"
android:gravity="center"
/>
</LinearLayout>
Nichtandroid:background="@drawable/wg_blurred_backgrounds_12
Arbeiten an Android4.1.2
?
Muss ich irgendetwas an den Prämissen ändern? Folgendes habe ich jetzt:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Ich weiß, dass ich etwas sehr Kleines vermisse, aber ich kann es als Anfänger nicht erkennen.