A couple of IntelliJ live templates for Android developers
Thursday, November 3, 2011 at 02:50AM IntelliJ is very good at making developers type less. When developing Android however; I find myself typing a couple of lines over and over. I have created a few Live templates to save some finger work.
This Live template creates a static TAG string than can be used for logging
private static String TAG = $className$.class.getName();
This Live tmplate creates a Toast.
Toast.makeText(this,"$TEXT$", Toast.LENGTH_LONG).show();
Do you have any Live templates for Android that you want to share?
Glenn Bech |
2 Comments | 






Reader Comments (2)
The A1c level is the gold standard in determination of chronic glycemic control in people with diabetes. It is important to keep the A1c level as low as possible to control risks associated with diabetes. As the final slide points out, According to Centers of Disease Control and Prevention:
columbia sportswear
Om du toaster ofte, bør vel kanskje DRY si at du skal dra den ut i en util-klasse:
public static void toast(final Context ctx, String message) {
toast(ctx, message, Toast.LENGTH_LONG);
}
public static void toast(final Context ctx, String message, int length) {
Toast.makeText(ctx, message, length).show();
}