Android postfix plugin for AndroidStudio
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 |
- Clone
- Run Gradle Wrapper In project root.
./gradlew runIdea
This project is released under the Apache License, Version 2.0.