Setting an ImageView to the background Android
问题 I have found many similar questions and answers, but I was unsuccessful with those fixes. I want to set an ImageView to the background so that everything else I am doing is in front of it. (I do not want to use the xml background option because I will be changing my background within the activity and I cannot figure out how to prevent it from stretching.) Thanks! bg = (ImageView) findViewById(R.id.bg); bg.setImageResource(R.drawable.marbles); <ImageView android:id="@+id/bg" android:layout