Home

Awesome

android-postfix-plugin

build status

Android postfix plugin for AndroidStudio

image image image

Available templates:

Postfix ExpressionDescriptionExample
.toastCreate and show Toast.Toast.makeText(context, expr, Toast.LENGTH_SHORT).show()
.logLogging. If there is constant variable "TAG", it use "TAG" . Else it use class name.Log.d(TAG, expr)
.logdLogging. If BuildConfig.DEBUG is true, Log message.if (BuildConfig.DEBUG) Log.d(TAG, expr)
.findTyped FindView(ViewType) findViewById(expr)
.isempCheck empty.TextUtils.isEmpty(expr)
.vgDivide view visible or gone.(expr) ? View.VISIBLE : View.GONE
.vsb </br>.invsb </br>.goneChange View's visibility.view.setVisibility(View.VISIBLE)</b> view.setVisibility(View.INVISIBLE)</b> view.setVisibility(View.GONE)
.snack </br>.snackactionShow a Snackbar with or without an anction.Snackbar.make(view, expr, Snackbar.LENGTH_SHORT).show()<br/> Snackbar.make(view, expr, Snackbar.LENGTH_LONG).setAction(...).show()

Plugin page

JetBrains plugin page

Contributors

How to run the repository code

  1. Clone
  2. Run Gradle Wrapper In project root.
./gradlew runIde

Thanks

guava-postfix-plugin

License

This project is released under the Apache License, Version 2.0.