버터나이프 GitHub 사이트

https://github.com/inmite/android-butterknife-zelezny


How to install

  • in Android Studio: go to Preferences → Plugins → Browse repositories and search forButterKnife Zelezny

or

  • download it and install via Preferences → Plugins → Install plugin from disk


사용법

1. build.gradle에서 compile 'com.jakewharton:butterknife:6.1.0' 추가

 dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])

    compile 'com.android.support:appcompat-v7:21.0.3'

    compile 'com.jakewharton:butterknife:6.1.0'

}


2. Edit창에서 오른쪽 버튼 클릭하고 Generate -> Generate ButterKnife Injections 클릭

혹시나 Generate ButterKnie Injections가 안보일 경우 컴파일 후 다시 시도.


+ Recent posts