SelectorViewDrawable is used to create selectors for views like Buttons,TextViews,RadioButtons, etc in runtime instead of adding multiple xml resources in the drawable folder.
For tutorials, please visit my blog http://takeoffandroid.com/uncategorized/creating-button-background-and-text-selector-in-android-programmatically/