Working till Android Studio 1 rc2

gradle plugin upgraded to 0.14.4
gradle updtaed to 2.2.1
project backported to work on kitkat and above
You might as well call setBackgroundDrawable() on all versions, with an @SuppressWarning to remove the deprecated warnings.