Android 綠豆湯

command + option + F ->抽取區域變數成為field

command + option + M ->抽取出方法

command + P -> 再次顯示參數

option + enteer -> 抽取字串資源

option + shift + 上/下 ->挪動程式碼

寫boolean判斷若要加上!,直接打上再按tab就可以到前面

Android Studio 3.6 ViewBinding

1.去最上層的 build.gradle 修改 dependencies的classpath

2. app層級的build.gradle加上

viewBinding.enabled = true

Last updated