You should either define the gradient in XML or use an image (which will include the rounded corners). You can't easily mix both an XML shape with an image (at least, as you are a beginner, I would recommend to go with simple stuff first).
For instance:
Then you can define your button's background using the android:background="@drawable/bg_custom_button"
You should learn about nine-patches, they allow you to define strechable images for your backgrounds and will save you when the design is not feasible with XML.