Skip to content

dinhhieuac/android-postfix-plugin

 
 

Repository files navigation

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

Plugin page

JetBrains plugin page

Contributors

How to run the repository code

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

Contribution

  1. Fork it ( http://github.com/takahirom/android-postfix-plugin/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Thanks

guava-postfix-plugin

License

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

About

Android postfix plugin for AndroidStudio

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.0%
  • HTML 1.0%