Thursday, October 29, 2015

How To Add Design Support Library To Android Project


Google's Design Support Library includes a navigation drawer view, floating labels, floating action buttons, snackbars, and a new framework to tie motion and scroll events. The library is supported for Android version 2.1 and higher.

Make sure that you have at least the Android Gradle plugin v1.2.3 supported. (Read on how to check the Gradle Version of your Android Project here).

Add the required compiledSdkVersion and dependencies as follow...


android {
   compileSdkVersion 23  // needs to be consistent with support libs used
}

dependencies {
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
}



Read further elaboration on Design Support Library here.

No comments:

Post a Comment