Maintaining compatibility with JAVA
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){ // Call some material design API's here } else { // Implement this feature without material design }