Some of the Live Templates of Android Studio for speed coding are collected here.
These are meant for Quick reference.

newInstance- Generates the staticnewInstancefunction inside a FragmentToast- GeneratesToast.makeText(context, "", Toast.LENGTH_SHORT).show();fbc- findViewById with castconst- Define a android style int constantlogd- GeneratesLog.d(TAG, "");logm- Log current method name and its arguments.logr- Log result of the current methodlogt- static logtaf with current classnamepsf- public static finalsout- Prints a string to System.outsoutm- Prints current class and method names to System.outsoutp- Prints method parameter names and values to System.outvisible- Set view visibility to VISIBLEgone- Set view visibility to GONEnoInstance- private empty constructor to prohibit instance creation
We can create more as per our use cases.
List of all Live Templates here!!
Icons made by Freepik from www.flaticon.com
0 coment�rios: