SimonVT/android-menudrawer — pull request #41 by iontech (2012-11-30 20:38:48+00:00)
Title: Handling the deprecation of setBackgroundDrawable in MenuDrawer.

```
int sdkVersion = android.os.Build.VERSION.SDK_INT;

if(sdkVersion < android.os.Build.VERSION_CODES.JELLY_BEAN) {
mMenuContainer.setBackgroundDrawable(menuBackground);
} else {
mMenuContainer.setBackground(menuBackground);
}
```
Similar for mContentContainer.

``` setBackgroundDrawable() ``` has been deprecated in API level 16: JELLY_BEAN.
> ``` setBackground() ``` is called when the device sdk version is JELLY_BEAN or higher, and ``` setBackgroundDrawable() ``` is called when the device sdk version is less than JELLY_BEAN.