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

Github地址

安装插件

Android Postfix Completion快速补全插件

按照提示重启studio

代码中使用插件

直接上图:
Android Postfix Completion快速补全插件

另附:

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
(function () {('pre.prettyprint code').each(function () { var lines = (this).text().split(\n).length;varnumbering = $('
    ').addClass('pre-numbering').hide(); (this).addClass(hasnumbering).parent().append(numbering); for (i = 1; i

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

Github地址

安装插件

Android Postfix Completion快速补全插件

按照提示重启studio

代码中使用插件

直接上图:
Android Postfix Completion快速补全插件

另附:

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

相关文章:

  • 2021-08-27
  • 2021-05-08
  • 2021-07-20
  • 2022-02-07
  • 2021-11-17
  • 2021-05-10
  • 2022-01-21
  • 2022-12-23
猜你喜欢
  • 2022-01-06
  • 2021-08-22
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-05-21
相关资源
相似解决方案