Set a background image on LinearLayout

android

Solution

You can use the xml-Tag `android:background="@drawable/yourbackground"` or set it via code through `setBackgroundResource(int)`

Problem

Is there a way I could add a background image to a LinearLayout, so the button-controls would be drawn onto it? I was trying to see if there was a way to have the bitmap as a background to a LinearLayout, but could not find a way to do it.

Original source