set view background using drawable in android code example
Example: image background drawable android studio
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/image_name_here" />
</layer-list>