I have this difficulty to have both rounded corner and a background image in my LinearLayout.
LinearLayout
I know I can achive the rounded corner by using the shape
You could use LayerDrawable, which could contain as many layers(shapes or images) as you need. You can create it either as resource or programmatically.