In der ersten Activity funktioniert alles ganz normal, doch wenn ich im Emulator auf die zweite Activity wechsle, zeigt mir die ImageView kein Bild mehr an, EditText, Spinner und Cardview jedoch werden ganz normal angezeigt. Hat jemand eine Idee woran das liegen könnte?
PHP:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="0dp"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:paddingTop="0dp"
tools:context="com.lukasgehring.spots.SpeicherActivity"
android:padding="0dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/urlaub"
android:id="@+id/Hintergrund2"
android:scaleType="centerCrop" />
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:id="@+id/CvSpeichern"
android:layout_marginTop="54dp"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_height="300dp" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:id="@+id/EtName"
android:text="Geben Sie den Namen ein"
android:elevation="1dp"
android:layout_marginTop="14dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_width="300dp"
android:gravity="center" />
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:id="@+id/spinnerAnfahrt"
android:gravity="center"
android:layout_below="@+id/EtName"
android:layout_centerHorizontal="true" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>
PHP:
public class SpeicherActivity extends Activity {
public Spinner sAnfahrt;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_speichern);
sAnfahrt = (Spinner) findViewById(R.id.spinnerAnfahrt);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.Spinner_Anfahrt, android.R.layout.simple_spinner_dropdown_item);
sAnfahrt.setAdapter(adapter);
}