Android 개발에 도움이 되는 Library 2015년 07월 12일 | 이철혁
이 문서는 나눔글꼴로 작성되었습니다. 설치하기
01 Boilerplate
02 Butter Knife
03 Lombok
정의 The sections of code that have to be included in many places with little or no
alteration. – 출처 <https://en.wikipedia.org/wiki/Boilerplate_code>
Boilerplate
Boilerplate 유래
출처 : http://whatis.techtarget.com/definition/boilerplate
Boilerplate 유래
출처 : http://www.cmrp.com/blog/bending/steel-plate-rolling-to-enclose-a-spent-nuclear-reactor.html
Boilerplate 유래
출처 : https://en.wikipedia.org/wiki/Boilerplate_code
Boilerplate code의 예 ( Perl )
출처 : https://en.wikipedia.org/wiki/Boilerplate_code
Boilerplate code의 예 ( HTML )
출처 : https://en.wikipedia.org/wiki/Boilerplate_code
Boilerplate code의 예 ( JAVA )
출처 : https://en.wikipedia.org/wiki/Boilerplate_code
Android의 Boilerplate는?
출처 : http://www.ukmarketingnews.com/wp-content/uploads/2015/05/KitKat-vs-Android-Lollipop.jpg
Android 개발의 Boilerplate
출처 : https://en.wikipedia.org/wiki/Boilerplate_code
Android 개발의 Boilerplate
Android 개발의 Boilerplate
Android 개발의 Boilerplate
정의 Field and method binding for Android views.
Butter Knife
01 02 03 04
05 06 07 08
레시피
Butter Knife 다운로드 IDE 설정 Activity일 경우
ButterKnife.bind(this);
Activity가 아닌 경우
ButterKnife.bind(this, view);
Binding
@Bind(R.id.title) TextView title;
Listener Binding
@OnClick(R.id.submit)
Proguard
keepclasseswithmembernames
License
Apache License, Version 2.0
Butter Knife 다운로드
http://jakewharton.github.io/butterknife/ https://github.com/JakeWharton/butterknife
Butter Knife 다운로드
http://jakewharton.github.io/butterknife/ https://github.com/JakeWharton/butterknife
Butter Knife 다운로드
Duplicate files copied in APK META-INF/services/javax.annotation.processing.Processor
OnClickListener Binding
OnClickListener Binding
OnClickListener Binding
OnClickListener Binding
기타 Listener Binding
기타 Listener Binding
기타 Listener Binding
기타 Listener Binding
Butter Knife 의 장점
정의 Spice up your java
Lombok
01 02
레시피
Lombok 설정 IDE 설정 사용하기
03
Lombok 설정
https://projectlombok.org/
최신버전은 1.16.4
Lombok Plug-in
http://jakewharton.github.io/butterknife/ https://github.com/JakeWharton/butterknife
Views
OnClickListeners
Getter/setter
Boilerplate 코딩을 줄이자!
01
끝
이 문서는 나눔글꼴로 작성되었습니다. 설치하기