[TOC]
1、在项目的build.gradle中添加android-apt插件
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}2、在app/build.gradle中添加如下代码
apply plugin: 'android-apt'
android {
...
}
dependencies {
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
}Java中的native关键字浅析(Java Native Interface)
- View是怎样被显示到屏幕上的?
- 自定义View大小
- View的生命周期


