Coder Social home page Coder Social logo

android-postfix-plugin's Introduction

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.

android-postfix-plugin's People

Contributors

axlchen avatar kikuchy avatar takahirom avatar thagikura avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.