Android Postfix Completion
可根据后缀快速完成代码,系统已经有这些功能,如sout、notnull等,这个插件在原有的基础上增添了一些新的功能。
Postfix Expression | Description | Example |
---|---|---|
.toast | Create and show Toast. | Toast.makeText(context, expr, Toast.LENGTH_SHORT).show() |
.log | Logging. If there is constant variable "TAG", it use "TAG" . Else it use class name. | Log.d(TAG, expr) |
.logd | Logging. If BuildConfig.DEBUG is true, Log message. | if (BuildConfig.DEBUG) Log.d(TAG, expr) |
.find | Typed FindView | (ViewType) findViewById(expr) |
.isemp | Check empty. | TextUtils.isEmpty(expr) |
.vg | Divide view visible or gone. | (expr) ? View.VISIBLE : View.GONE |