I want to change the Background of a FrameLayout. This is the code I use right now:
FrameLayout.setBackground(getResources().getDrawable(R.drawable.background));
But this error occurs:
Non-static method 'setBackground(android.graphics.drawable.Drawable)' cannot be referenced from a static context.
What is wrong there?