I put a background image to my Relative layout using android:background="@drawable/rajat2", where rajat2 is an image in all the drawable folders.
It sets the background to my layout but the background comes stretched to the whole screen.
I’ve tried putting the wallpaper through java code too but it still behaves the same!
use draw9patch for the background image. it well help you.