igoticecream
05/18/2017, 11:49 PMdrew
05/18/2017, 11:50 PMigoticecream
05/18/2017, 11:51 PMvyacheslav.gerasimov
05/18/2017, 11:52 PMvyacheslav.gerasimov
05/18/2017, 11:53 PMigoticecream
05/18/2017, 11:56 PMccrowe
05/19/2017, 12:50 AMalex2069
05/19/2017, 12:55 AMdrew
05/19/2017, 12:56 AMalex2069
05/19/2017, 1:05 AMprivate val titleView by lazy { customViewTitle }igoticecream
05/19/2017, 1:56 AMblakelee
05/19/2017, 4:38 AMgitanshu
05/19/2017, 6:13 AMkalpeshp0310
05/19/2017, 6:25 AMbutterknife you do this.
@BindView(R.id.title) lateinit var title: TextView
and with kotterknife you do this.
val title: TextView by bindView(R.id.title) See there is less code you have to write with kotterknife, also you can make your views val where as you can't make your views final with butterknife.kingsley
05/19/2017, 11:36 AMby lazy as it could cause potential memory leaks in your code.
Rotating a retained fragment for instance, the lazy inited variable will be pointing to an already disposed view