All Projects → takahirom → Android Postfix Plugin

takahirom / Android Postfix Plugin

Licence: apache-2.0
Android postfix plugin for AndroidStudio

Programming Languages

java
68154 projects - #9 most used programming language

android-postfix-plugin

build status

Android postfix plugin for AndroidStudio

image image image

Available templates:

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
.vsb .invsb .gone Change View's visibility. view.setVisibility(View.VISIBLE) view.setVisibility(View.INVISIBLE) view.setVisibility(View.GONE)
.snack .snackaction Show a Snackbar with or without an anction. Snackbar.make(view, expr, Snackbar.LENGTH_SHORT).show()
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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].