Development/Android
[Material Design] 호환성 유지
코드의추억
2016. 12. 16. 16:34
- 호환성 유지
원문 - https://developer.android.com/training/material/compatibility.html#CheckVersion
// Check if we're running on Android 5.0 or higher
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// Call some material design APIs here
} else {
// Implement this feature without material design
}