Android Postfix Completion快速补全插件

来源:互联网 发布:win32串口编程 编辑:程序博客网 时间:2024/04/28 11:07

Android Postfix Completion是一款通过.XXX快速补全的Android studio插件.

Github地址

安装插件

这里写图片描述

按照提示重启studio

代码中使用插件

直接上图:
这里写图片描述

另附:

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
2 0